From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nikita Karetnikov Subject: Re: Porting to mips64el Date: Tue, 22 Jan 2013 17:51:16 -0500 Message-ID: <87libkygp3.fsf@karetnikov.org> References: <8738yvnslh.fsf@karetnikov.org> <87d2xfk9qb.fsf@karetnikov.org> <87k3rnr61e.fsf@gnu.org> <871udvwna6.fsf@karetnikov.org> <876237bdqu.fsf@gnu.org> <87y5g2uzbj.fsf@karetnikov.org> <87y5g2kp8s.fsf@gnu.org> <87d2xc4azh.fsf@karetnikov.org> <87a9sfc0hq.fsf@gnu.org> <87r4lrpf0n.fsf@karetnikov.org> <874ninz3m1.fsf@gnu.org> <87k3ritq0q.fsf@karetnikov.org> <87mwwexwxd.fsf@gnu.org> <87fw26tncy.fsf@karetnikov.org> <876232w1yg.fsf@gnu.org> <87txqmnkav.fsf@karetnikov.org> <87hamkst8o.fsf@gnu.org> <87y5fp2k37.fsf@karetnikov.org> <87k3r9ysl7.fsf@gnu.org> <87bockcnj8.fsf@karetnikov.org> <87bocjvs8m.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60822) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TxmgW-0005Ks-9e for bug-guix@gnu.org; Tue, 22 Jan 2013 17:51:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TxmgS-00026b-Vw for bug-guix@gnu.org; Tue, 22 Jan 2013 17:51:16 -0500 In-Reply-To: <87bocjvs8m.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "(unknown date)") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: bug-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > Wild guess: you=E2=80=99re building outside of a chroot, and Perl=E2=80= =99s configure > found /usr/lib/libgdbm.so, so it decided to link against it, which > didn=E2=80=99t work because our linker doesn=E2=80=99t look for libraries= there. > Can you confirm? > Solution: add =E2=80=9Cbuild-use-chroot =3D true=E2=80=9D in nix.conf. Everything I tried failed. First attempt: # cat /usr/local/etc/nix/nix.conf build-users-group =3D nixbld build-use-chroot =3D true # ./pre-inst-env guix-build -K \ -e '(@ (gnu packages make-bootstrap) %bootstrap-tarballs)' \ --system=3Dmips64el-linux [...] @ build-started /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv= /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 mips64el-linux /ni= x/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' f= ailed; keeping build directory `/tmp/nix-build-md9lfvkydyapd3pji76gg1blsgs3= 7a4m-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' f= ailed 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 c= ode 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-bootst= rap-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 =3D nixbld build-use-chroot =3D true build-chroot-dirs =3D /dev /proc @ build-started /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv= /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 mips64el-linux /ni= x/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=3D/nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-pat= ch-2.6.1=20=20 /nix/store/71xcmhyizrp7n0xl596waid5fijckchm-stdenv-linux-boot/setup: ./conf= igure: /bin/sh: bad interpreter: No such file or directory builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' f= ailed; keeping build directory `/tmp/nix-build-md9lfvkydyapd3pji76gg1blsgs3= 7a4m-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' f= ailed 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 c= ode 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-bootst= rap-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 =3D nixbld build-use-chroot =3D true build-chroot-dirs =3D /dev /proc /bin @ build-started /nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv= /nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-patch-2.6.1 mips64el-linux /ni= x/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=3D/nix/store/sbgh5q8blbf0nd3w81qpzy47plmrphzp-pat= ch-2.6.1=20=20 /nix/store/71xcmhyizrp7n0xl596waid5fijckchm-stdenv-linux-boot/setup: ./conf= igure: /bin/sh: bad interpreter: No such file or directory builder for `/nix/store/1qladfk4nppn4bgq6v6agy69r4pwgy9w-patch-2.6.1.drv' f= ailed; keeping build directory `/tmp/nix-build-md9lfvkydyapd3pji76gg1blsgs3= 7a4m-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' f= ailed 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 c= ode 126 cannot build derivation `/nix/store/c2aap304bzqf3amx1q6zl067d6j5dwpx-guile-= 2.0.7.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/chhbkj4w9l5f20bsqwhls2aijr328c2v-bootst= rap-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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJQ/xgBAAoJEM+IQzI9IQ38OuIP/iCUun8kQV3PU5OBJdAvDTiy II0aWlb1VI82IlVg2K/DqI6NWyCSQ7ADILivnOWKMg3Zbzyr50ofiKrGs5YGokT4 kDJVHVTufyzUan8q/xHgbHtkogDBWlFpySNFkMpBJh6klDZdWdqNLDoLrCdhuoTG qEq0fuCSfG9qR3aGAzZPAyVVgo8IrZn2OaP8wjU1bvylHd/nXv2/qxe4/J1dygoT oNFPg3ZeS2YOfUS4jwHXFqesb1oS11x0RsMzTcicKxAJ1iB/wCycR/nIZKBCwAKM R/TeNd/FqA9W3EQJfMUjAeIG6jdMSD8g8MBIV90fpbR38j0o0z7KLRjrYXNSx05L 4t7bw8T7PDtiDk1HTnPQGorrYJzMWcx7I5yeh6ThTbVLM/OHP9ANqGfA0IfNjFCo Lqt6RsFivvbunyEu6M96jqXVmIPGb5YGw6FxJuAgzMn38evBJjGk9A1b8pAeLlE9 v8R3iN152pPRQuCt9gtw3CBgJ11nrBjPmf4jGqVMcnGDpccd6jEjuQTARZMGiYNt m1Bm22wVkqylIZlDU31FuLzL3auzf8+x+LmJ7Cj78z0yuD1RLzdRz+qDiVBkzlOH Sq2C0sr+V/KgLzqEGvrs/Dmb+WmdjDV3RXACZGnzoGfmWC0L4WbXZodXftMnKTTN ZPI2wtw22f4Qbg+PGsRi =CBJi -----END PGP SIGNATURE----- --=-=-=--