ERROR: sys-libs/glibc-2.4-r4 failed
By Eric Maziade on Friday, November 10 2006, 10:05 - Gentoo - Permalink
Trying to do a system-wide gentoo update using emerge, I ran into a compile error trying to update glibc:
*** These critical programs are missing or too old: gcc
*** Check the INSTALL file for required versions.
!!!ERROR: sys-libs/glibc-2.4-r4 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
glibc-2.4-r4.ebuild, line 1174: Called toolchain-glibc_src_compile
glibc-2.4-r4.ebuild, line 257: Called glibc_do_configure 'nptl'
glibc-2.4-r4.ebuild, line 925: Called die
Turns out the system felt that my gcc compiler was outdated.
But I had updated it to the latest gentoo-stable version.
Well, yes and no. Here's what I learned:
gcc-config --list-profiles
Will list the various gcc versions installed on your system. The current one is marked with an asterisk.
gcc-config #
Where # is a number from the list shown from above, will switch your compiler to the specified version.
Now I can compile glibc using the latest gcc.
Hopefully I won't have to recompile the whole system because of this compiler switch... I'll update this post whether I do or don't.
So far, no need to recompile anything. Everything works fine.
UPDATE
December 7th 2006
I'm not sure its related to the gcc-config, but I bet it is...
See I don't use KDE all that much. I run my web servers and test things out.
So when I tried to log back into KDE, I noticed that it wasn't working anymore.
So I tried to update and recompile everything kde-related. Nothing works. kdemultimedia keeps finding excuses not to compile.
I got it further and further along as I found some modules which didn't show up as dependencies (?) even when using emerge --deep
So I ended up giving up my hopes of not having to recompile planet linux and an now running:
emerge -e world

Comments
Nice piece of info. I've been pullin my hair on failed updates of glibc. ...about to find out if it beats any info I've found so far
Hope it helps! Keep me informed - its always nice to know that my headeaches can help others get rid of theirs :P
thank you so much for this. it saved me the hours i'm sure i would have spent digging for the answer myself. keep em commin.
good info. Thanks!
Works also fine for me (using neither KDE nor GNOME)
It didn't work for me. I guess I need some more infor or something didn't work out :((