Trying to build L4 on NixOS

Mateusz Czaplinski <[email protected]>
Newsgroups gmane.comp.micro-kernel.l4.devel
Message-ID <CACZYt3RBSLZtXnaDLNXGyOjVG-=QfXd3GSXToxfSQqtYi-Jerg@mail.gmail.com>
I'm trying to build L4 on NixOS in a VM (long term goal: try to learn how
to replace NixOS's kernel with L4Linux, then maybe Genode). I'm getting an
error like below:

  undefined reference to `__stack_chk_fail'

during linking of bootstrap.elf - in a GCC's error-barf just after:

  [bootstrap] ==> Linking bootstrap.elf

I've put up the precise Nix expression/script I'm using to build it on
github - at:

https://github.com/akavel/l4.nix/blob/0108dfcf8d84780e1ba884c41ece0d2dbf4ddd84/l4re.nix
but what it generally boils down to is a sequence of commands like this:

  $ wget
http://os.inf.tu-dresden.de/download/snapshots/l4re-core-2016082114.tar.xz
  $ tar xf l4re-core-2016082114.tar.xz
  $ cd l4re-core-2016082114
  $ mkdir out
  $ cp src/l4/mk/defconfig/config.amd64 out/l4/.kconfig
  $ make -C src/l4 O=out/l4 olddefconfig
  $ make -C out/l4

I've tried various additional changes, based on some snippets found here
and there on teh Internets, like:
  - adding V=0 to the last make (no idea what it does yet, just some cargo
culting)
  - adding NIX_CFLAGS_COMPILE = "-fno-stack-protector"; to the Nix
expression/script (also not really sure where it applies in the stack);
but none of the above helped.

Any idea what I could try doing to push it further?

Thanks,
/Mateusz.

_______________________________________________
l4-hackers mailing list
[email protected]
http://os.inf.tu-dresden.de/mailman/listinfo/l4-hackers
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.