Nikita Karetnikov <nik...@karetnikov.org> writes: > OK, I fetched the tarballs. Now I’m 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 parent > 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 parent > directories: Inappropriate ioctl for device > starting phase `patch-source-shebangs' > patch-shebang: ./config/mdate-sh: changing `/bin/sh' to > `/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' > patch-shebang: ./config/compile: changing `/bin/sh' to > `/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-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/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-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/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-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/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' > patch-shebang: ./config/config.sub: changing `/bin/sh' to > `/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-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 interpreter > `perl' found in $PATH > patch-shebang: ./tests/test_driver.pl: warning: no binary for interpreter > `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/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' > patch-shebang: ./build.sh.in: changing `/bin/sh' to > `/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' > patch-shebang: ./configure: changing `/bin/sh' to > `/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/sh' > phase `patch-source-shebangs' succeeded after 1 seconds > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Inappropriate ioctl for device > starting phase `configure' > source directory: "/tmp/nix-build-make-boot0-3.82.drv-2/make-3.82" (relative > from build: ".") > build directory: "/tmp/nix-build-make-boot0-3.82.drv-2/make-3.82" > configure flags: > ("CONFIG_SHELL=/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/bash" > > "SHELL=/nix/store/3q8kihrw6zg9v2c364c0kdgz2nfmkwnf-bootstrap-binaries-0/bin/bash" > "--prefix=/nix/store/4ksc0dgml5158lrz3047bxn0ignw1943-make-boot0-3.82" > "--enable-fast-install") > shell-init: error retrieving current directory: getcwd: cannot access parent > directories: Inappropriate ioctl for device > configure: WARNING: unrecognized options: --enable-fast-install > pwd: error retrieving current directory: getcwd: cannot access parent > directories: Success > pwd: error retrieving current directory: getcwd: cannot access parent > directories: 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. I'm at a bit of a loss of how best to debug problems that only happen within guix-builder. Any suggestions? Mark