Looks like I cannot build glibc with dash as /bin/sh, reproduced on two boxes, after bumping /bin/sh symlink back to /bin/bash it does work. ### part of build log: mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/sunrpc’: File exists mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nis mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nis mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nis’: File exists mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/streams mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/streams mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/streams’: File exists mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/login mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf mkdir /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf mkdir: cannot create directory ‘/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf’: File exists In file included from rtld.c:40:0: ../sysdeps/unix/sysv/linux/dl-osinfo.h: In function ‘dl_fatal’: ../sysdeps/unix/sysv/linux/dl-osinfo.h:38:3: warning: format not a string literal and no format arguments In file included from ../elf/dl-sysdep.c:39:0, from ../sysdeps/unix/sysv/linux/dl-sysdep.c:60: ../sysdeps/unix/sysv/linux/dl-osinfo.h: In function ‘dl_fatal’: ../sysdeps/unix/sysv/linux/dl-osinfo.h:38:3: warning: format not a string literal and no format arguments fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory fgrep: /var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/*/stamp.os: No such file or directory rtld-Rules:42: *** missing separator. Stop. make[2]: *** [/var/portage/tmp/portage/sys-libs/glibc-2.15-r3/work/build-x86-x86_64-pc-linux-gnu-nptl/elf/rtld-libc.a] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [elf/subdir_lib] Error 2 make: *** [all] Error 2 emake failed * ERROR: sys-libs/glibc-2.15-r3 failed (compile phase): * make for x86 failed ### Reproducible: Always
Created attachment 329670 [details] emerge --info
Can you attach the full build log, it includes quite some information at the start that can be useful. Did you also try other shells or does this only happen for dash?
Created attachment 329708 [details] build.log of glibc with /bin/dash as /bin/sh build.log attached. I cannot reproduce it with ksh, mksh or busybox's ash (built without bash's extensions). Looks like it is dash specific issue but I do wonder if its just dash too sensitive or internal dash bug.
I've passed on to toolchain (glibc), if they determine this is due to dash they can re-assign to base-system (dash).
Looks like the latest version app-shells/dash-0.5.7.3 is badly broken as I am getting multiple build failures including php, and its 100% reproducable. @Tom Wijsman can you edit the bug as it is not about glibc but broken dash?
Changed title and re-assigned. Can you attach build logs for one or two other failing packages so we can see if they are similar?
the "smallest" package you noticed a problem with would be best
(In reply to comment #7) > the "smallest" package you noticed a problem with would be best $ ls */ ls: cannot access */: No such file or directory
looks like dash-0.5.7.1 works, so i guess Debian added a bum patch in there
hmm, scratch that. building with --disable-glob works OK. that in turn seems like a bug in glibc's glob implementation. it's not setting GLOB_MAGCHAR like the documentation says. i've reported this to the bug-gnulib guys since that's where the implementation lives (gets synced to glibc from time to time).
i've added dash-0.5.7.3-r1 w/out --enable-glob in the mean time
it's not fixed ... the referenced testcase still fails
Closing as obsolete as gnulib's and glibc's implementations changed quite a bit. If it still happens I suggest filing a bug on glibc's bugzilla with a reproducer..