> Wild guess: you’re building outside of a chroot, and Perl’s configure > found /usr/lib/libgdbm.so, so it decided to link against it, which > didn’t work because our linker doesn’t look for libraries there.
> Can you confirm? > Solution: add “build-use-chroot = true” in nix.conf. Everything I tried failed. First attempt: # cat /usr/local/etc/nix/nix.conf build-users-group = nixbld build-use-chroot = true # ./pre-inst-env guix-build -K \ -e '(@ (gnu packages make-bootstrap) %bootstrap-tarballs)' \ --system=mips64el-linux [...] @ build-started /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 mips64el-linux /nix/var/log/nix/drvs/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv.bz2 build error: mounting /proc: No such file or directory builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed; keeping build directory `/tmp/nix-build-md9lfvkydyapd3pji76gg1blsgs37a4m-perl-5.16.1.drv-0/nix-build-1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv-0' builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed with exit code 1 @ build-failed /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 1 builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed with exit code 1 cannot build derivation `/nix/store/666x2bd8bsc8sk3wvdr67j02pvc8ad5i-glibc-2.17.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/c2aap304bzqf3amx1q6zl067d6j5dwpx-guile-2.0.7.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built error: build failed: build of `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootstrap-tarballs-0.drv' failed Second: # cat /usr/local/etc/nix/nix.conf build-users-group = nixbld build-use-chroot = true build-chroot-dirs = /dev /proc @ build-started /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 mips64el-linux /nix/var/log/nix/drvs/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv.bz2 building /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 unpacking sources unpacking source archive /nix/store/ics0cri221a5lnym4a92xsyv02qis003-patch-2.6.1.tar.gz source root is patch-2.6.1 patching sources configuring configure flags: --prefix=/nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 /nix/store/71xcmhyizrp7n0xl596waid5fijckchm-stdenv-linux-boot/setup: ./configure: /bin/sh: bad interpreter: No such file or directory builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed; keeping build directory `/tmp/nix-build-md9lfvkydyapd3pji76gg1blsgs37a4m-perl-5.16.1.drv-0/nix-build-1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv-1' builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed with exit code 126 @ build-failed /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 1 builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed with exit code 126 cannot build derivation `/nix/store/83w852928i2k0ibpnhrj79jybpchygbm-make-3.82.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/666x2bd8bsc8sk3wvdr67j02pvc8ad5i-glibc-2.17.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/ch3ap8nmfaxf3rpz6slbfpkihkmzyjcc-linux-libre-headers-3.3.8.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built error: build failed: build of `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootstrap-tarballs-0.drv' failed Third: # cat /usr/local/etc/nix/nix.conf build-users-group = nixbld build-use-chroot = true build-chroot-dirs = /dev /proc /bin @ build-started /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 mips64el-linux /nix/var/log/nix/drvs/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv.bz2 building /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 unpacking sources unpacking source archive /nix/store/ics0cri221a5lnym4a92xsyv02qis003-patch-2.6.1.tar.gz source root is patch-2.6.1 patching sources configuring configure flags: --prefix=/nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 /nix/store/71xcmhyizrp7n0xl596waid5fijckchm-stdenv-linux-boot/setup: ./configure: /bin/sh: bad interpreter: No such file or directory builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed; keeping build directory `/tmp/nix-build-md9lfvkydyapd3pji76gg1blsgs37a4m-perl-5.16.1.drv-0/nix-build-1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv-2' builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed with exit code 126 @ build-failed /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 1 builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' failed with exit code 126 cannot build derivation `/nix/store/c2aap304bzqf3amx1q6zl067d6j5dwpx-guile-2.0.7.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootstrap-tarballs-0.drv': 1 dependencies couldn't be built error: build failed: build of `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootstrap-tarballs-0.drv' failed I'll try to build statically-linked Bash. Then I'll place it in '/bin/sh' and try again. (This worked on i686.) Nikita
pgp__b4n92Mx_.pgp
Description: PGP signature