Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16707 - GCC 3.2.2 Emerge fails with undefined reference to _dl_cpuclock_offset
Summary: GCC 3.2.2 Emerge fails with undefined reference to _dl_cpuclock_offset
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20045
  Show dependency tree
 
Reported: 2003-03-02 21:49 UTC by Doug Glenn
Modified: 2003-10-01 21:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Glenn 2003-03-02 21:49:37 UTC
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.
Comment 1 Doug Glenn 2003-03-02 21:51:16 UTC
I have run emerge sync and cleaned out the distfiles directory to ensure I had the latest 
build. It is consistant.    
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-03 08:57:50 UTC
  # USE="-java" emerge gcc
Comment 3 Doug Glenn 2003-03-03 18:59:27 UTC
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! 
 
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-03-05 14:35:12 UTC
It did fix it, but only because gcj did not compile.  How much memory + swap ?
Comment 5 Doug Glenn 2003-03-05 18:29:31 UTC
1gig of memory and two 128meg swap files.  15gig free for the /usr + /var directories 
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-16 21:21:44 UTC
Any ideas as to what was actually causing this bug? I have the same problem showing up in bug #20045 with PHP.
Comment 7 Kurt Hindenburg 2003-06-07 17:33:50 UTC
Just added a bug report with this same error avifile...I'll have to try with -java
Comment 8 Chris Jeppesen 2003-07-16 12:41:08 UTC
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.
Comment 9 Robert Moss (RETIRED) gentoo-dev 2003-09-27 17:11:19 UTC
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!
Comment 10 Joshua Kinard gentoo-dev 2003-10-01 21:27:07 UTC
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.