When trying to emerge this, it gets to the "Checking glibc subversion..." and sits, seemingly doing nothing, until I kill it. Reproducible: Always Steps to Reproduce: 1. emerge -u portage Actual Results: >>> emerge (1 of 1) sys-apps/portage-2.0.49-r13 to / >>> md5 src_uri ;-) portage-2.0.49-r13.tar.bz2 >>> Unpacking source... >>> Unpacking portage-2.0.49-r13.tar.bz2 to /var/tmp/portage/portage-2.0.49-r13/work >>> Source unpacked. ./create-localdecls Checking truncate argument type... off_t Checking libc version... libc.so.6 Checking glibc subversion... Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r7)================================================================= System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) XP 2200+ distcc 2.9 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -pipe -funroll-loops -mmmx -msse -m3dnow " CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/texmf/tex/generic/config /usr/share/texmf/tex/platex/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -funroll-loops -mmmx -msse -m3dnow " DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache -autoaddcvs" GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://gentoo.oregonstate.edu/distfiles" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline tetex aalib bonobo svga ggi tcltk java X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla 3dnow apache2 dedicated doc gstreamer gtk2 moznocompose moznomail mozp3p mozsvg pda sse tiff X509 -arts -cups -kde -ruby"
Hmmm... strace and post it here. strace -f -o emerge.strace emerge portage Try running ldconfig and/or env-update.
Created attachment 19173 [details] strace ldconfig/env-update didn't help anything... here's the strace of it. (line 134241 is where it got Ctrl-C'd)
After looking deeper into this I'm starting to see the problem. The script src/sandbox-1.1/create-localdecls contains this: echo -n 'Checking glibc subversion... ' tmp="`ldd /bin/sh | grep libc.so 2> /dev/null`" On my system, tmp comes out as nothing, because "ldd /bin/sh" returns "not a dynamic executable". It does however return normal info on most other executables. (/bin/bash seems to return the same message) I don't know why this would happen myself, and I have a pretty standard setup as most things go. Any ideas?
Ok, I re-emerged bash and the problem went away. Something must have gone awry between when bash last got installed and now.
Just encountered this with app-shells/bash-2.05b-r8. Remerging solved it, but the question is how it came about in the first place, considering it seems to be a statically built /bin/sh (ldd returned not dynamic executable) but bash has no static USE flag.
-r15 & -r16 fixes this