failed to build bootstrap-stage0-stdenv-linux.drv due to signal 11 (Segmentation fault)。
I confirm this will happen on arrch64 platform,but without problem on x86_64 platform.
Steps To Reproduce
rebuild the nginx
run nix-build '<nixpkgs>' --check -A nginx
it will start to build package relative to bootstrap before rebuilding the nginx
Expected behavior
successfully building the bootstrap-stage0-stdenv-linux.drv file and the other boostrap derivation .
I assume your system is using 64k page. The issue is related to
patchelf, for some reason, in bootstrap-tools, it seems to have been
compiled with 4k page size.
Indeed, the current system is using 64k page. So,this problem was also happend to you.Thanks for you solution, I’ll try it later.
And I really want to know how did you discover or think about this problem? The error reported from nix tool was not clear to identify the real location of error.
I would appreciate if you can share me someting about this,thank you again.
And I really want to know how did you discover or think about this
problem? The error reported from nix tool was not clear to identify
the real location of error.
Was not ease to diagnose but I end up by running
$ /lib/ld-linux-aarch64.so.1 ./bash
./bash: error while loading shared libraries: ./bash: ELF load command alignment not page-aligned
bash comming from bootstrap-tools derivation… so the 2 patches