gcc consistantly fails with error using emerge -u world or emerge gcc /var/tmp/portage/gcc-3.2.2/work/build/gcc/gcj -B/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libjava/ -B/var/tmp/portage/gcc-3.2.2/work/build/gcc/ -ffloat-store -g -O2 -o .libs/gij -shared-libgcc gij.o -L/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libjava -L/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libjava/.libs ./.libs/libgcj.so -L/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libstdc++-v3/src -L/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -lpthread -ldl -lz -L/var/tmp/portage/gcc-3.2.2/work/build/gcc -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc-lib/i686-pc-linux-gnu/../.. -lgcc_s -lc -lgcc_s -Wl,--rpath -Wl,/usr/lib/. ./.libs/libgcj.so: undefined reference to `_dl_cpuclock_offset' collect2: ld returned 1 exit status make[3]: *** [gij] Error 1 make[3]: *** Waiting for unfinished jobs.... ./.libs/libgcj.so: undefined reference to `_dl_cpuclock_offset' collect2: ld returned 1 exit status make[3]: *** [jv-convert] Error 1 make[3]: Leaving directory `/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.2/work/build/i686-pc-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.2/work/build' make: *** [bootstrap-lean] Error 2 !!! ERROR: sys-devel/gcc-3.2.2 failed. !!! Function src_compile, Line 291, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. emerge gcc 2. 3. Actual Results: shown in details Expected Results: finished compiling.
I have run emerge sync and cleaned out the distfiles directory to ensure I had the latest build. It is consistant.
# USE="-java" emerge gcc
This corrected it and it mergerd OK. I did not get the usual summary screen though. example. >>> Regenerating /etc/ld.so.cache... >>> Regenerating /etc/ld.so.cache... >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. index... * Processed 5 info files. * Regenerating GNU info directory gcc --version gives this, so it appears ok.P gcc (GCC) 3.2.2 Copyright (C) 2002 Free Software Foundation,Please Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Feel free to close this now. Thanks!
It did fix it, but only because gcj did not compile. How much memory + swap ?
1gig of memory and two 128meg swap files. 15gig free for the /usr + /var directories
Any ideas as to what was actually causing this bug? I have the same problem showing up in bug #20045 with PHP.
Just added a bug report with this same error avifile...I'll have to try with -java
I don't know what causes this, but it seems to affect all programs using libpthread.a, which includes gcc, php, gkrellm, and I am sure a ton more. This file is part of glibc. I started from the 1.4rc stage3 iso, which uses a precompiled glibc 2.3.1-r4. Recompiling 2.3.1-r4 did not help me, but upgrading to 2.3.2-r1 did. Now gcc and gkrellm compile without a hitch, but other programs depending on some xlib thing fail, and I am recompiling xfree to get that to work. Probably I will need to do an emerge -e world, eventually. glibc 2.3.2-r1 is masked ~x86, although I could find no reason why. My system stil seems to be running normally. So it seems to me like it has to do with the precompiled 2.3.1 glibc.
You're probably right there. My usual fix for such things goes as follows: emerge sync emerge depclean revdep-rebuild emerge -uDv world Then, if that didn't work, follow it with a: emerge -e world Obviously, this is not a particularly pretty solution!
Resolving as FIXED as the final comment provides a (somewhat ugly) solution. The referenced GCC version is also outdated, and may have been fixed in later versions. If the issue still persists, then feel free to re-open this bug.