$ ./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 shell-init: error retrieving current directory: getcwd: cannot access parent directories: Inappropriate ioctl for device note: keeping build directory `/tmp/nix-build-make-boot0-3.82.drv-2' builder for `/nix/store/z7pfz91gzfamhvmlqwv6h3qv4xnk76r3-make-boot0-3.82.drv' failed with exit code 1 @ build-failed /nix/store/z7pfz91gzfamhvmlqwv6h3qv4xnk76r3-make-boot0-3.82.drv - 1 builder for `/nix/store/z7pfz91gzfamhvmlqwv6h3qv4xnk76r3-make-boot0-3.82.drv' failed with exit code 1 cannot build derivation `/nix/store/hy3bq0ylcdnd7zza9vy73hxjm8mx8fim-bzip2-1.0.6.drv': 1 dependencies couldn't be built cannot build derivation `/nix/store/29xskak7vbrgrnjdmnp9razcc5ya2swq-hello-2.8.drv': 1 dependencies couldn't be built guix build: error: build failed: build of `/nix/store/29xskak7vbrgrnjdmnp9razcc5ya2swq-hello-2.8.drv' failed