Nixpkgs: glibc-2.24 build failure: /bin/sh: bad interpreter: No such file or directory -- missing build-sandbox-paths glibc in the build chroot

Created on 26 Aug 2016  Â·  19Comments  Â·  Source: NixOS/nixpkgs

Issue description

Glibc fails to build during a rebuild-switch due to:

/nix/store/0p18wvjfcxq3n9s4bawvglj53iwhmpr9-stdenv-linux-boot/setup: /tmp/nix-build-glibc-2.24.drv-0/build/../glibc-2.24/configure: /bin/sh: bad interpreter: No such file or directory

Full log attached below.

Steps to reproduce

sudo _NIXOS_REBUILD_REEXEC=1 nixos-rebuild switch -I nixpkgs=${NIXPKGS} --max-jobs 8 --cores 8

Technical details

  • System: NixOS unstable
  • Nix version: 1.11.2
  • Nixpkgs version: "16.09.git.3de68a3"
[deepfire@andromedae:~]$ nix-store --realise /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv
these derivations will be built:
  /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv
building path(s) ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’, ‘/nix/store/v
h1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’
unpacking sources
unpacking source archive /nix/store/qqsrh7jkwdywp4hj0wicf2541g9kdy0v-glibc-2.24.tar.gz
source root is glibc-2.24
setting SOURCE_DATE_EPOCH to timestamp 1470103296 of file glibc-2.24/wctype/wctype_l.c
patching sources
applying patch /nix/store/r0rc2prwi70hgw4jray5a8sd41fhvjm7-rpcgen-path.patch
patching file sunrpc/rpc_main.c
applying patch /nix/store/svkayyzppy2ncmax2m4klgqkya61ln83-nix-locale-archive.patch
patching file locale/loadarchive.c
Hunk #1 succeeded at 124 (offset 1 line).
Hunk #2 succeeded at 222 (offset 1 line).
Hunk #3 succeeded at 417 (offset 5 lines).
patching file locale/programs/locale.c
Hunk #1 succeeded at 635 (offset 7 lines).
Hunk #2 succeeded at 662 (offset 7 lines).
patching file locale/programs/locarchive.c
Hunk #1 succeeded at 553 (offset 44 lines).
Hunk #2 succeeded at 592 with fuzz 1 (offset 50 lines).
applying patch /nix/store/5vbd382jzryfwsa30fmaci5z1x6g4sgj-dont-use-system-ld-so-cache.patch
patching file elf/ldconfig.c
Hunk #1 succeeded at 51 (offset 1 line).
patching file elf/Makefile
Hunk #1 succeeded at 470 with fuzz 1 (offset 55 lines).
patching file sysdeps/generic/dl-cache.h
applying patch /nix/store/mnglr8rr7nl444h7p50ysyq8qd0fm1lm-dont-use-system-ld-so-preload.patch
patching file elf/rtld.c
Hunk #1 succeeded at 1509 (offset -4 lines).
applying patch /nix/store/29g1iy1lyc1qgg5mjjjlbjz5z2gzv384-glibc-crypt-blowfish.patch
patching file crypt/crypt_blowfish.c
patching file crypt/crypt-entry.c
Hunk #1 succeeded at 51 (offset -10 lines).
Hunk #2 succeeded at 65 (offset -10 lines).
Hunk #3 succeeded at 106 (offset -12 lines).
patching file crypt/Makefile
Hunk #1 succeeded at 28 (offset 2 lines).
applying patch /nix/store/za0pg7fmysrcwrqcal26fnmzw6vycgdn-fix_path_attribute_in_getconf.patch
patching file sysdeps/unix/confstr.h
patching file nscd/nscd_stat.c
configuring
configure flags: --disable-static --prefix=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24         --bindir=/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin/bin --sbindir=/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin/sbin         --includedir=/nix/store/8ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev/include --oldincludedir=/nix/store/8ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev/include         --mandir=/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin/share/man --infodir=/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin/share/info         --docdir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/share/doc/glibc         --libdir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/lib --libexecdir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/libexec         --localedir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/share/locale         -C --enable-add-ons --enable-obsolete-rpc --sysconfdir=/etc libc_cv_ssp=no --with-headers=/nix/store/4a2p416gjhwriy94wkvwmgsbsdg1ywdz-linux-headers-4.4.10/include --disable-profile --enable-kernel=2.6.32
/nix/store/0p18wvjfcxq3n9s4bawvglj53iwhmpr9-stdenv-linux-boot/setup: /tmp/nix-build-glibc-2.24.drv-0/build/../glibc-2.24/configure: /bin/sh: bad interpreter: No such file or directory
note: keeping build directory ‘/tmp/nix-build-glibc-2.24.drv-0’
builder for ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’ failed with exit code 126
error: build of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’ failed

Most helpful comment

make sure the hydra never builds the exact same glibc that the host is running

All 19 comments

@domenkozar, more detailed log

[deepfire@andromedae:~]$ nix-store --realise -vvvv /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv
locking this thread to CPU 0
starting substituter program ‘/nix/store/qvqsq30r22g2k2wppcdmwc27r1xl64gv-nix-1.11.2/libexec/ni
x/substituters/download-using-manifests.pl’
starting substituter program ‘/nix/store/qvqsq30r22g2k2wppcdmwc27r1xl64gv-nix-1.11.2/libexec/ni
x/substituters/download-from-binary-cache.pl’
these derivations will be built:
  /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv
building ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’
|   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: created
|   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: woken up
|   entered goal loop
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: init
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: loading deriv
ation
|   |   acquiring global GC lock ‘/nix/var/nix/gc.lock’
|   |   acquiring read lock on ‘/nix/var/nix/temproots/12252’
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: have derivati
on
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: create
d
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: woken
up
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: created
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: woken u
p
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: init
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: trying
next substituter
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: trying
next substituter
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: trying
next substituter
|   |   path ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’ is required, but th
ere is no substituter that can build it
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: done
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘subst
itution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’’ done; 1 left
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: init
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: trying
 next substituter
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: trying
 next substituter
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: trying
 next substituter
|   |   path ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’ is required, but t
here is no substituter that can build it
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: done
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘subst
itution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’’ done; 0 left
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: woken up
|   |   substitution of ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’: goal d
estroyed
|   |   substitution of ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’: goal de
stroyed
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: all outputs s
ubstituted (maybe)
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: created
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: woken up
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: created
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: woken up
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: cre
ated
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: wok
en up
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: create
d
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: woken
up
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: create
d
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: woken
up
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: init
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: loading
derivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: have der
ivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: done
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘build
ing of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’’ done; 4 left
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: init
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: loading
derivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: have der
ivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: done
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘build
ing of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’’ done; 3 left
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: init
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: loadin
g derivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: have d
erivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: done
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘build
ing of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’’ done; 2 left
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: ini
t
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: loa
ding derivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: hav
e derivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: don
e
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘build
ing of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’’ done; 1 left
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: init
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: loadin
g derivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: have d
erivation
|   |   acquiring write lock on ‘/nix/var/nix/temproots/12252’
|   |   downgrading to read lock on ‘/nix/var/nix/temproots/12252’
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: done
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: waitee ‘build
ing of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’’ done; 0 left
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: woken up
|   |   building of ‘/nix/store/qvcraillyl2dri9c7nr1sjdq407m8p9s-stdenv-linux-boot.drv’: goal d
estroyed
|   |   building of ‘/nix/store/n1jf4fhiipbdcds82xb4k7cbrfv8442j-linux-headers-4.4.10.drv’: goa
l destroyed
|   |   building of ‘/nix/store/ng11v2xfm747cyinnc5jxpx73nlv24cv-glibc-2.24.tar.gz.drv’: goal d
estroyed
|   |   building of ‘/nix/store/jkwjgpjzk2x8bsc38vhwvkkz7hd97gkg-bootstrap-tools.drv’: goal des
troyed
|   |   building of ‘/nix/store/bwypxf682g10pj17ddjw0mpl88qlam5p-bootstrap-glibc.drv’: goal des
troyed
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: all inputs re
alised
|   |   building path ‘/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin’
|   |   building path ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’
|   |   building path ‘/nix/store/8ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev’
|   |   building path ‘/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24’
|   |   building path ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’
|   |   added input paths ‘/nix/store/0p18wvjfcxq3n9s4bawvglj53iwhmpr9-stdenv-linux-boot’, ‘/ni
x/store/0w35rxr6f0vaxdf1ap10y5n6alqqim7f-multiple-outputs.sh’, ‘/nix/store/29g1iy1lyc1qgg5mjjjl
bjz5z2gzv384-glibc-crypt-blowfish.patch’, ‘/nix/store/4a2p416gjhwriy94wkvwmgsbsdg1ywdz-linux-he
aders-4.4.10’, ‘/nix/store/4z967iacr7q3alm6z2raqlmr9qbzvw5b-separate-debug-info.sh’, ‘/nix/stor
e/5hzb6zwq8xls6ny9pzg8h8rmp0p903y1-strip.sh’, ‘/nix/store/5vbd382jzryfwsa30fmaci5z1x6g4sgj-dont
-use-system-ld-so-cache.patch’, ‘/nix/store/7q32x57fay7j39a20s5xibkn4s9xd1s9-zlib-1.2.8’, ‘/nix
/store/9krlzvny65gdc8s7kpb6lkx8cd02c25b-default-builder.sh’, ‘/nix/store/9q36zh5k8gbbyrxrmggvhy
ajcvxiqswj-glibc-remove-datetime-from-nscd.patch’, ‘/nix/store/a92kz10cwkpa91k5239inl3fd61zp5dh
-move-lib64.sh’, ‘/nix/store/cc7k5l8k7q0lqsanciz3q4mili9bwxpy-compress-man-pages.sh’, ‘/nix/sto
re/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools’, ‘/nix/store/iwa35vp5b9rg5jlpxplivl2dhy5sp
xza-set-source-date-epoch-to-latest.sh’, ‘/nix/store/lan2w3ab1mvpxj3ppiw2sizh8i7rpz7s-busybox’,
 ‘/nix/store/mjjy30kxz775bhhi6j9phw81qh6dsbrf-move-docs.sh’, ‘/nix/store/mnglr8rr7nl444h7p50ysy
q8qd0fm1lm-dont-use-system-ld-so-preload.patch’, ‘/nix/store/qqsrh7jkwdywp4hj0wicf2541g9kdy0v-g
libc-2.24.tar.gz’, ‘/nix/store/r0rc2prwi70hgw4jray5a8sd41fhvjm7-rpcgen-path.patch’, ‘/nix/store
/svkayyzppy2ncmax2m4klgqkya61ln83-nix-locale-archive.patch’, ‘/nix/store/swmm8n6zgc74sf3hc7v13i
dnifsqlsyq-bootstrap-gcc-wrapper’, ‘/nix/store/wl89vbkp25zp9xq1pgnvxlbm1cgqyb0q-bootstrap-glibc
’, ‘/nix/store/wqvi45bx8xcqfck3wsq1r9201qya71yf-binutils-2.26.1’, ‘/nix/store/xfgjfjcq34fwfbfi1
idp2nh81kpigch7-patch-shebangs.sh’, ‘/nix/store/z82dl6ialp166drqihzkz67nkl6w3l16-move-sbin.sh’,
 ‘/nix/store/za0pg7fmysrcwrqcal26fnmzw6vycgdn-fix_path_attribute_in_getconf.patch’
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: woken up
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: trying to bui
ld
|   |   locking path ‘/nix/store/8ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev’
|   |   lock acquired on ‘/nix/store/8ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev.lock’
|   |   locking path ‘/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24’
|   |   lock acquired on ‘/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24.lock’
|   |   locking path ‘/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin’
|   |   lock acquired on ‘/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin.lock’
|   |   locking path ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’
|   |   lock acquired on ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static.lock’
|   |   locking path ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’
|   |   lock acquired on ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug.lock’
|   |   building path(s) ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’, ‘/nix
/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’
|   |   |   found build user ‘nixbld1’
|   |   |   found build user ‘nixbld10’
|   |   |   found build user ‘nixbld2’
|   |   |   found build user ‘nixbld3’
|   |   |   found build user ‘nixbld4’
|   |   |   found build user ‘nixbld5’
|   |   |   found build user ‘nixbld6’
|   |   |   found build user ‘nixbld7’
|   |   |   found build user ‘nixbld8’
|   |   |   found build user ‘nixbld9’
|   |   |   trying user ‘nixbld1’
|   |   |   killing all processes running under uid ‘30001’
|   |   |   setting up chroot environment in ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc
-2.24.drv.chroot’
|   |   |   executing builder ‘/nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools/bin/
bash’
|   |   |   bind mounting ‘/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42/bin/bash’ t
o ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/bin/sh’
|   |   |   bind mounting ‘/dev/full’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.2
4.drv.chroot/dev/full’
|   |   |   bind mounting ‘/dev/kvm’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24
.drv.chroot/dev/kvm’
|   |   |   bind mounting ‘/dev/null’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.2
4.drv.chroot/dev/null’
|   |   |   bind mounting ‘/dev/random’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2
.24.drv.chroot/dev/random’
|   |   |   bind mounting ‘/dev/tty’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24
.drv.chroot/dev/tty’
|   |   |   bind mounting ‘/dev/urandom’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-
2.24.drv.chroot/dev/urandom’
|   |   |   bind mounting ‘/dev/zero’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.2
4.drv.chroot/dev/zero’
|   |   |   bind mounting ‘/nix/store/0p18wvjfcxq3n9s4bawvglj53iwhmpr9-stdenv-linux-boot’ to ‘/
nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/0p18wvjfcxq3n9s4bawv
glj53iwhmpr9-stdenv-linux-boot’
|   |   |   bind mounting ‘/nix/store/4a2p416gjhwriy94wkvwmgsbsdg1ywdz-linux-headers-4.4.10’ to
 ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/4a2p416gjhwriy94w
kvwmgsbsdg1ywdz-linux-headers-4.4.10’
|   |   |   bind mounting ‘/nix/store/7q32x57fay7j39a20s5xibkn4s9xd1s9-zlib-1.2.8’ to ‘/nix/sto
re/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/7q32x57fay7j39a20s5xibkn4s9
xd1s9-zlib-1.2.8’
|   |   |   bind mounting ‘/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42’ to ‘/nix/s
tore/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/a2li4sl9pxh9aflqia2gp7w88
ayvjwci-bash-4.3-p42’
|   |   |   bind mounting ‘/nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools’ to ‘/ni
x/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/d1prcspbh2qsviipvnaxiz
cj8l3g7fpw-bootstrap-tools’
|   |   |   bind mounting ‘/nix/store/swmm8n6zgc74sf3hc7v13idnifsqlsyq-bootstrap-gcc-wrapper’ t
o ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/swmm8n6zgc74sf3h
c7v13idnifsqlsyq-bootstrap-gcc-wrapper’
|   |   |   bind mounting ‘/nix/store/wl89vbkp25zp9xq1pgnvxlbm1cgqyb0q-bootstrap-glibc’ to ‘/ni
x/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/wl89vbkp25zp9xq1pgnvxl
bm1cgqyb0q-bootstrap-glibc’
|   |   |   bind mounting ‘/nix/store/wqvi45bx8xcqfck3wsq1r9201qya71yf-binutils-2.26.1’ to ‘/ni
x/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/wqvi45bx8xcqfck3wsq1r9
201qya71yf-binutils-2.26.1’
|   |   |   bind mounting ‘/tmp/nix-build-glibc-2.24.drv-3’ to ‘/nix/store/1yzzfs5fpyjgakvxxndw
indgwrdq7lzc-glibc-2.24.drv.chroot/tmp/nix-build-glibc-2.24.drv-0’
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 21 bytes
unpacking sources
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 4 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 87 bytes
unpacking source archive /nix/store/qqsrh7jkwdywp4hj0wicf2541g9kdy0v-glibc-2.24.tar.gz
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 26 bytes
source root is glibc-2.24
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 87 bytes
setting SOURCE_DATE_EPOCH to timestamp 1470103296 of file glibc-2.24/wctype/wctype_l.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 20 bytes
patching sources
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 81 bytes
applying patch /nix/store/r0rc2prwi70hgw4jray5a8sd41fhvjm7-rpcgen-path.patch
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 32 bytes
patching file sunrpc/rpc_main.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 88 bytes
applying patch /nix/store/svkayyzppy2ncmax2m4klgqkya61ln83-nix-locale-archive.patch
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 35 bytes
patching file locale/loadarchive.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 42 bytes
Hunk #1 succeeded at 124 (offset 1 line).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 42 bytes
Hunk #2 succeeded at 222 (offset 1 line).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 43 bytes
Hunk #3 succeeded at 417 (offset 5 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 39 bytes
patching file locale/programs/locale.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 43 bytes
Hunk #1 succeeded at 635 (offset 7 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 43 bytes
Hunk #2 succeeded at 662 (offset 7 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 43 bytes
patching file locale/programs/locarchive.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 44 bytes
Hunk #1 succeeded at 553 (offset 44 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 56 bytes
Hunk #2 succeeded at 592 with fuzz 1 (offset 50 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 4 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 93 bytes
applying patch /nix/store/5vbd382jzryfwsa30fmaci5z1x6g4sgj-dont-use-system-ld-so-cache.patch
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 29 bytes
patching file elf/ldconfig.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 41 bytes
Hunk #1 succeeded at 51 (offset 1 line).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 27 bytes
patching file elf/Makefile
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 56 bytes
Hunk #1 succeeded at 470 with fuzz 1 (offset 55 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 41 bytes
patching file sysdeps/generic/dl-cache.h
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 4 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 95 bytes
applying patch /nix/store/mnglr8rr7nl444h7p50ysyq8qd0fm1lm-dont-use-system-ld-so-preload.patch
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 25 bytes
patching file elf/rtld.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 45 bytes
Hunk #1 succeeded at 1509 (offset -4 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 4 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 86 bytes
applying patch /nix/store/29g1iy1lyc1qgg5mjjjlbjz5z2gzv384-glibc-crypt-blowfish.patch
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 37 bytes
patching file crypt/crypt_blowfish.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 34 bytes
patching file crypt/crypt-entry.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 44 bytes
Hunk #1 succeeded at 51 (offset -10 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 89 bytes
Hunk #2 succeeded at 65 (offset -10 lines).
Hunk #3 succeeded at 106 (offset -12 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 29 bytes
patching file crypt/Makefile
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 42 bytes
Hunk #1 succeeded at 28 (offset 2 lines).
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 4 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 95 bytes
applying patch /nix/store/za0pg7fmysrcwrqcal26fnmzw6vycgdn-fix_path_attribute_in_getconf.patch
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 37 bytes
patching file sysdeps/unix/confstr.h
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 31 bytes
patching file nscd/nscd_stat.c
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 12 bytes
configuring
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 1008 byt
es
configure flags: --disable-static --prefix=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.
24         --bindir=/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin/bin --sbindir=/n
ix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin/sbin         --includedir=/nix/store/8
ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev/include --oldincludedir=/nix/store/8ic0jwg3p5vcw
x52k4781n987hmv0bks-glibc-2.24-dev/include         --mandir=/nix/store/lras6zr1hs72yvv1ny04wpj0
22bxzfvg-glibc-2.24-bin/share/man --infodir=/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2
.24-bin/share/info         --docdir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/shar
e/doc/glibc         --libdir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/lib --libex
ecdir=/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/libexec         --localedir=/nix/s
tore/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/share/locale         -C --enable-add-ons --ena
ble-obsolete-rpc --sysconfdir=/etc libc_cv_ssp=no --with-h|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 122 byte
s
eaders=/nix/store/4a2p416gjhwriy94wkvwmgsbsdg1ywdz-linux-headers-4.4.10/include --disable-profi
le --enable-kernel=2.6.32
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 184 byte
s
/nix/store/0p18wvjfcxq3n9s4bawvglj53iwhmpr9-stdenv-linux-boot/setup: /tmp/nix-build-glibc-2.24.
drv-0/build/../glibc-2.24/configure: /bin/sh: bad interpreter: No such file or directory
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: read 3 bytes
|   |   waiting for children
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: got EOF
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: woken up
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: build done
|   |   builder process for ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’ finish
ed
|   |   killing all processes running under uid ‘30001’
|   |   note: keeping build directory ‘/tmp/nix-build-glibc-2.24.drv-3’
|   |   builder for ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’ failed with ex
it code 126
|   |   lock released on ‘/nix/store/8ic0jwg3p5vcwx52k4781n987hmv0bks-glibc-2.24-dev.lock’
|   |   lock released on ‘/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24.lock’
|   |   lock released on ‘/nix/store/lras6zr1hs72yvv1ny04wpj022bxzfvg-glibc-2.24-bin.lock’
|   |   lock released on ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static.lock’
|   |   lock released on ‘/nix/store/vh1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug.lock’
|   |   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: done
|   recursively deleting path ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroo
t’
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/tmp
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/tmp/nix-build-glibc-2
.24.drv-0
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/etc
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/etc/passwd
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/etc/group
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/etc/hosts
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/0w35rxr6f0v
axdf1ap10y5n6alqqim7f-multiple-outputs.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/29g1iy1lyc1
qgg5mjjjlbjz5z2gzv384-glibc-crypt-blowfish.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/4z967iacr7q
3alm6z2raqlmr9qbzvw5b-separate-debug-info.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/5hzb6zwq8xl
s6ny9pzg8h8rmp0p903y1-strip.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/5vbd382jzry
fwsa30fmaci5z1x6g4sgj-dont-use-system-ld-so-cache.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/9krlzvny65g
dc8s7kpb6lkx8cd02c25b-default-builder.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/9q36zh5k8gb
byrxrmggvhyajcvxiqswj-glibc-remove-datetime-from-nscd.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/a92kz10cwkp
a91k5239inl3fd61zp5dh-move-lib64.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/cc7k5l8k7q0
lqsanciz3q4mili9bwxpy-compress-man-pages.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/iwa35vp5b9r
g5jlpxplivl2dhy5spxza-set-source-date-epoch-to-latest.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/lan2w3ab1mv
pxj3ppiw2sizh8i7rpz7s-busybox
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/mjjy30kxz775bhhi6j9phw81qh6dsbrf-move-docs.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/mnglr8rr7nl444h7p50ysyq8qd0fm1lm-dont-use-system-ld-so-preload.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/qqsrh7jkwdywp4hj0wicf2541g9kdy0v-glibc-2.24.tar.gz
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/r0rc2prwi70hgw4jray5a8sd41fhvjm7-rpcgen-path.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/svkayyzppy2ncmax2m4klgqkya61ln83-nix-locale-archive.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/xfgjfjcq34fwfbfi1idp2nh81kpigch7-patch-shebangs.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/z82dl6ialp166drqihzkz67nkl6w3l16-move-sbin.sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/za0pg7fmysrcwrqcal26fnmzw6vycgdn-fix_path_attribute_in_getconf.patch
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/0p18wvjfcxq3n9s4bawvglj53iwhmpr9-stdenv-linux-boot
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/4a2p416gjhwriy94wkvwmgsbsdg1ywdz-linux-headers-4.4.10
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/7q32x57fay7j39a20s5xibkn4s9xd1s9-zlib-1.2.8
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/d1prcspbh2qsviipvnaxizcj8l3g7fpw-bootstrap-tools
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/swmm8n6zgc74sf3hc7v13idnifsqlsyq-bootstrap-gcc-wrapper
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/wl89vbkp25zp9xq1pgnvxlbm1cgqyb0q-bootstrap-glibc
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/wqvi45bx8xcqfck3wsq1r9201qya71yf-binutils-2.26.1
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/shm
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/pts
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/fd
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/stdin
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/stdout
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/stderr
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/full
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/kvm
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/null
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/random
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/tty
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/urandom
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/zero
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/dev/ptmx
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/bin
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/bin/sh
|   |   /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/proc
|   building of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’: goal destroyed
error: build of ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv’ failed

I have tested all shells mounted into the build environment -- and they start normally.

@domenkozar, it seems the absence of proper glibc within the build chroot is the problem:

...so, from the following we can see that:

  1. the bash used is indeed /nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42/bin/bash
  2. the required glibc isn't available within the chroot -- another one is:
[deepfire@andromedae:~]$ nix-store --realise -vvvv /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv 2>&1 | grep 'mount.*\(bash\|glibc\).* to '
|   |   |   bind mounting ‘/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42/bin/bash’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/bin/sh’
|   |   |   bind mounting ‘/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42’
|   |   |   bind mounting ‘/nix/store/wl89vbkp25zp9xq1pgnvxlbm1cgqyb0q-bootstrap-glibc’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/nix/store/wl89vbkp25zp9xq1pgnvxlbm1cgqyb0q-bootstrap-glibc’
|   |   |   bind mounting ‘/tmp/nix-build-glibc-2.24.drv-6’ to ‘/nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv.chroot/tmp/nix-build-glibc-2.24.drv-0’

[deepfire@andromedae:~]$ ldd /nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42/bin/bash
    linux-vdso.so.1 (0x00007ffde9dd8000)
    libdl.so.2 => /nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/lib/libdl.so.2 (0x00007f19781cf000)
    libc.so.6 => /nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/lib/libc.so.6 (0x00007f1977e31000)
    /nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24/lib/ld-linux-x86-64.so.2 (0x00007f19783d3000)

Seems to me like this is a problem on your end. glibc builds fine here and on Hydra. Unsure how to proceed with this.

@joachifm, what are the factors in the decision of what to put inside the glibc bootstrap chroot? Are you sure it isn't just luck on your end?

What's the contents of /etc/nix/nix.conf? It should contain something like:

build-use-chroot = false
build-chroot-dirs =  /bin/sh=/nix/store/i7hx6w6zy3bv53f2xm1r23ya8qbzn4is-bash-4.3-p42/bin/bash /nix/store/gwl3ppqj4i730nhd4f50ncl5jc4n97ks-glibc-2.23 /nix/store/i7hx6w6zy3bv53f2xm1r23ya8qbzn4is-bash-4.3-p42 /nix/store/vh2xkhgp9li6dcj76b1zyvz65bwp2svf-linux-headers-3.18.14

@edolstra

[deepfire@andromedae:~]$ cat /etc/nix/nix.conf
# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix.  Do not edit it!
build-users-group = nixbld
build-max-jobs = 8
build-cores = 1
build-use-sandbox = true
build-sandbox-paths =  /bin/sh=/nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42/bin/bash /nix/store/a2li4sl9pxh9aflqia2gp7w88ayvjwci-bash-4.3-p42 /nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24
binary-caches =
trusted-binary-caches =
binary-cache-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
signed-binary-caches = *

trusted-users = root
allowed-users = *

Is build-use-chroot known broken? Should I disable it?

So, I'm beginning to suspect that the problem lies in the fact that nix.conf://build-sandbox-paths is out of date.

Now the question is -- what part of NixOS upgrade mechanism is responsible for updating nix.conf://build-sandbox-paths?

Further examination suggests that nixpkgs://nixos/modules/services/misc/nix-daemon.nix (which is the one seemingly responsible for nix.conf) is the place to look further at.

@edolstra, no! I have completely misinterpreted things!

The failure happens because build-sandbox-paths isn't honored -- instead of the glibc bash is linked against (/nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24), the bootstrap one is mounted -- /nix/store/wl89vbkp25zp9xq1pgnvxlbm1cgqyb0q-bootstrap-glibc.

Now the question is why bootstrap-glibc is bind-mounted instead of whatever glibc dictated by the bash/glibc pair in nix.conf://build-sandbox-path..

An IRC log of our debugging session with @cleverca22: https://botbot.me/freenode/nixos/msg/72053656/

An important point: https://botbot.me/freenode/nixos/msg/72056604/

Summary of ingredients:

  • two different amd64 machines
  • exact same .drv files for glibc-2.24
  • exact same nix-daemon binaries
  • one machine has glibc-2.23 (working), another glibc-2.24 (broken)
  • sufficiently similar nix.conf files (the build-sandbox-path is different though)
  • exact same command entered: nix-store -r -vvvv /nix/store/1yzzfs5fpyjgakvxxndwindgwrdq7lzc-glibc-2.24.drv --option binary-caches ""

Summary of results:

  • different amount of derivations built -- 2 (broken) vs. 5 (working)
  • the broken build skips mounting the glibc mandated by build-sandbox-path

Some data (gist is from cleverca22, further comments with .drv contents are from me):

i believe i have located the problem

the $out $dev and $bin outputs of glibc where present in /nix/store, and in-use by the /bin/sh reference in nix.conf for chroots

but $static and $debug where missing, and without a binary cache, it had to re-compile all 5 outputs

and $out cant be present in the chroot while being built, so that bind-mount gets skipped, and now /bin/sh is broken

Thanks to the amazingly clever analysis by @cleverca22 the problem was isolated:

18:37 <clever> deepfire: oh wait, i think i just had an idea as to the entire
               problem
18:38 <clever> deepfire: bingo
18:38 <deepfire> clever, ?!?! : -)
18:38 <clever> deepfire: http://pastebin.com/dRhpKpZ2 notice how $out matches
               between the glibc its building, and the glibc sh depends on?
18:39 <clever> deepfire: is that the same --tree your nix.conf bash shows?
18:41 <deepfire> clever, http://lpaste.net/181055
18:41 <deepfire> clever: I fail to interpret this, to be perfectly honest : -)
18:41 <deepfire> the semantics of --tree elude me..
18:42 <deepfire> a self-referential glibc?
18:42 *** newhoggy QUIT Ping timeout: 276 seconds
18:42 <clever> yeah, it depends on itself
18:42 <clever> so this explains everything
18:42 <clever> your attempting to build the glibc that /bin/sh uses
18:43 <clever> it cant bind-mount that glibc, because the directory is about to
               be created
18:43 *** xelxebar QUIT Ping timeout: 249 seconds
18:43 <deepfire> that's not me! that's nixos-rebuild switch! : -)
18:43 <clever> but this also brings up a question
18:43 <clever> does /nix/store/i0jphfihyndhv9lh1bgi1vlzygc1w8n1-glibc-2.24
               exist on the host?
18:44 <deepfire> it does
18:44 <clever> i think i know the problem now
18:44 <clever> oh
18:44 <clever> it already has $out, so nix.conf is valid
18:44 <clever> but its missing $dev
18:44 <clever> so it has to rebuild all 5 outputs
18:44 <clever> and $out cant exist in the chroot while doing that
18:45 <clever> you GC'd part of glibc, and you have no binary cache to fill in
               it
18:45 <deepfire> wow
18:45 <deepfire> that's pretty.. amazing
18:45 <deepfire> : -)
18:45 <clever> yeah
18:46 <clever> this also shows, the problem only happens if your building the
               exact same glibc that /bin/sh depends on
18:46 <clever> so if you update (or downgrade) nixpkgs some, it will fix itself
18:46 <deepfire> clever: that's very consistent with what I saw before
18:46 <deepfire> I've already had this problem
18:46 <deepfire> ..and it went away by itself
18:47 *** kapral QUIT Quit: kapral
18:47 <deepfire> ..only to reoccur once to-from glibc versions re-converged
18:47 <clever> building path(s)
               ‘/nix/store/qk3rg7ny30shbx7y3y442j0mq43ax6cf-glibc-2.24-static’,
               ‘/nix/store/v
18:47 <clever> h1an9an8chfbld1b6r0xcwi9wl6p7j7-glibc-2.24-debug’
18:47 <clever> it also explains this msg more
18:48 <clever> you already had out, bin, and dev
18:48 <clever> but you were missing static and debug

@vcunat, you might be interested in this..

Nice edge-case! I think nix should at least warn about that happening.

I can't think of any good solution ATM; for now we could just ensure that _all_ outputs of glibc (and bash) get to the binary cache. Over the long term it might be good to get rid of this impurely passed bash altogether.

I have just started using Hydra to build my configurations and stumbled on this bug. Could anyone post any workaround for the time being?

make sure the hydra never builds the exact same glibc that the host is running

I'm also hitting this problem, now. @cleverca22's workaround, while humorous, isn't very realistic. A (very crappy) workaround is:

    environment.etc."Fixups".text = ''
      ${pkgs.glibc}
      ${pkgs.glibc.bin}
      ${pkgs.glibc.debug}
      ${pkgs.glibc.out}
      ${pkgs.glibc.dev}
      ${pkgs.glibc.static}
    '';

on the builders.

Are there any updates to this issue, please?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ob7 picture ob7  Â·  3Comments

retrry picture retrry  Â·  3Comments

grahamc picture grahamc  Â·  3Comments

domenkozar picture domenkozar  Â·  3Comments

copumpkin picture copumpkin  Â·  3Comments