building fiasco on alpine linux

Adam Lackorzynski adam at os.inf.tu-dresden.de
Wed Jun 22 00:18:56 CEST 2016


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                 adam at os.inf.tu-dresden.de
  Lackorzynski         http://os.inf.tu-dresden.de/~adam/




More information about the l4-hackers mailing list