From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: MIPS64/N64 support Date: Mon, 07 Oct 2013 21:39:35 +0200 Message-ID: <87k3hox43s.fsf@gnu.org> References: <87vc2o4qwc.fsf@gnu.org> <87y57kljro.fsf@karetnikov.org> <87li3dd844.fsf_-_@karetnikov.org> <87d2opy6qa.fsf@gnu.org> <87r4d577ab.fsf@karetnikov.org> <87zjrswzin.fsf@gnu.org> <87hadygxe8.fsf@karetnikov.org> <87mwnq470w.fsf@gnu.org> <87y5791h9f.fsf@karetnikov.org> <87eh907psx.fsf@gnu.org> <87li37z967.fsf@karetnikov.org> <8761ub143g.fsf@gnu.org> <87k3iqa71l.fsf@karetnikov.org> <87k3iqhrh5.fsf@gnu.org> <877ge3c8lf.fsf@karetnikov.org> <874n96qed3.fsf@gnu.org> <878uyfiwr1.fsf@karetnikov.org> <87siwniwka.fsf@gnu.org> <8738onkyi9.fsf@karetnikov.org> <87bo3asfx6.fsf@karetnikov.org> <87bo309auv.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTGjU-00056i-Gm for guix-devel@gnu.org; Mon, 07 Oct 2013 15:44:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTGjP-0000OI-3s for guix-devel@gnu.org; Mon, 07 Oct 2013 15:44:44 -0400 Received: from hera.aquilenet.fr ([141.255.128.1]:58574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTGjO-0000OA-Q6 for guix-devel@gnu.org; Mon, 07 Oct 2013 15:44:39 -0400 In-Reply-To: <87bo309auv.fsf@netris.org> (Mark H. Weaver's message of "Mon, 07 Oct 2013 14:47:36 -0400") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel@gnu.org Mark H Weaver skribis: > Nikita Karetnikov writes: > >> OK, I fetched the tarballs. Now I=E2=80=99m getting this error. >> >> >> $ ./pre-inst-env guix build -K hello >> >> [...] >> >> make-3.82/main.c >> make-3.82/README.OS2 >> make-3.82/remote-cstms.c >> phase `unpack' succeeded after 4 seconds >> shell-init: error retrieving current directory: getcwd: cannot access pa= rent directories: Inappropriate ioctl for device >> starting phase `patch' >> applying patch `/nix/store/nf226injsfkw8ljjjfq1280jj530xbvv-make-impure-= dirs.patch' >> patching file read.c >> Hunk #1 succeeded at 109 (offset 10 lines). >> patching file remake.c >> Hunk #1 succeeded at 1509 (offset 57 lines). >> phase `patch' succeeded after 0 seconds >> shell-init: error retrieving current directory: getcwd: cannot access pa= rent directories: Inappropriate ioctl for device >> starting phase `patch-source-shebangs' >> patch-shebang: ./config/mdate-sh: changing `/bin/sh' to `/nix/store/3q8k= ihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/compile: changing `/bin/sh' to `/nix/store/3q8ki= hrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/config.guess: changing `/bin/sh' to `/nix/store/= 3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/missing: changing `/bin/sh' to `/nix/store/3q8ki= hrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/mkinstalldirs: changing `/bin/sh' to `/nix/store= /3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/depcomp: changing `/bin/sh' to `/nix/store/3q8ki= hrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/config.rpath: changing `/bin/sh' to `/nix/store/= 3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/install-sh: changing `/bin/sh' to `/nix/store/3q= 8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./config/config.sub: changing `/bin/sh' to `/nix/store/3q= 8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./tests/scripts/targets/SECONDARY: warning: no binary for= interpreter `-*-perl-*-' found in $PATH >> patch-shebang: ./tests/run_make_tests.pl: warning: no binary for interpr= eter `perl' found in $PATH >> patch-shebang: ./tests/test_driver.pl: warning: no binary for interprete= r `perl' found in $PATH >> patch-shebang: ./tests/run_make_tests: changing `/bin/sh' to `/nix/store= /3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./tests/mkshadow: changing `/bin/sh' to `/nix/store/3q8ki= hrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./build.sh.in: changing `/bin/sh' to `/nix/store/3q8kihrw= 6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> patch-shebang: ./configure: changing `/bin/sh' to `/nix/store/3q8kihrw6z= g9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' >> phase `patch-source-shebangs' succeeded after 1 seconds >> shell-init: error retrieving current directory: getcwd: cannot access pa= rent directories: Inappropriate ioctl for device >> starting phase `configure' >> source directory: "/tmp/nix-build-make-boot0-3.82.drv-2/make-3.82" (rela= tive from build: ".") >> build directory: "/tmp/nix-build-make-boot0-3.82.drv-2/make-3.82" >> configure flags: ("CONFIG_SHELL=3D/nix/store/3q8kihrw6zg9v2c364c0kdgz2nf= mkwnf-bootstrap-binaries-0/bin/bash" "SHELL=3D/nix/store/3q8kihrw6zg9v2c364= c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/bash" "--prefix=3D/nix/store/4ksc0d= gml5158lrz3047bxn0ignw1943-make-boot0-3.82" "--enable-fast-install") >> shell-init: error retrieving current directory: getcwd: cannot access pa= rent directories: Inappropriate ioctl for device >> configure: WARNING: unrecognized options: --enable-fast-install >> pwd: error retrieving current directory: getcwd: cannot access parent di= rectories: Success >> pwd: error retrieving current directory: getcwd: cannot access parent di= rectories: Bad address >> configure: error: working directory cannot be determined >> phase `configure' failed after 0 seconds > [...] > > I've run into the same problem, using bootstrap binaries I cross-built > myself based on my "wip-loongson" branch. > > I can run the cross-build bootstrap binaries outside of guix-builder, > and they seem to work fine. I've tested 'bash' and 'guile', among other > things. The "shell-init" problem seems to be specific to the > environment within guix-builder. Good, that=E2=80=99s consistent. :-) > I'm at a bit of a loss of how best to debug problems that only happen > within guix-builder. Any suggestions? Bruce force: strace -f -p $(pidof guix-daemon) -o log & guix build -e '(@@ (gnu packages base) gnu-make-boot0)' grep -E '(ENOTTY|getcwd)' log Thanks, Ludo=E2=80=99.