Re: building fiasco on alpine linux

Adam Lackorzynski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <[email protected]>
Hi,

On Tue Jun 21, 2016 at 22:32:24 +0200, Michael Schnupp wrote:
> I tried to build fiasco on alpine linux.
> This will fail with the following line:
> 
>   auto/jdb_ktrace.cc:1:0: error: code model kernel does not support PIC mode

Just this file or more/all files?

> Their gcc enables PIC per default for security reasons. Since fiasco seems to need PIC disabled I have to tell the build system either to add -fno-PIC explictly, or to -D__KERNEL__ in any way.
> (I already tried DEFINES += -D__KERNEL__ or CFLAGS := -fno-PIC in Makeconf without success.)
> 
> What is the correct way to add such an option to the fiasco build system?
> Would it hurt to add -D__KERNEL__ per default on future releases? (After all it *is* a kernel.)

I'd add this to src/Makeconf:
SHARED_FLAGS            += -fno-pic

Does this fix it?

> BTW, the above file looks very much like a jdb file. Is it correct that this file is compiled even when I configured fiasco to not include jdb?

This is file defines an API between kernel and user, and does not
contain code.



Adam
-- 
Adam                 [email protected]
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.