View previous topic :: View next topic |
Author |
Message |
jarcec n00b
Joined: 08 May 2006 Posts: 4
|
Posted: Mon May 08, 2006 7:46 am Post subject: GCC && glibc error |
|
|
Good morning,
I upgrade GCC and glibc on my machine to version sys-devel/gcc-3.4.6-r1 and sys-libs/glibc-2.4-r2. But now it doesn't work properly. I can't run OO.o or opera, it's fail on this message:
Code: | /usr/lib/opera/9.0-20060411.5/opera: relocation error: /lib32/tls/libc.so.6: symbol _dl_out_of_memory, version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference |
I tried to recompile GCC or glibc again, but I always fail on this error:
With GCC:
Code: | checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'. |
With glibc:
Code: | checking for long double... yes
checking size of long double... configure: error: cannot compute sizeof (long double), 77
See `config.log' for more details.
|
This man have similar problem as me, so I tried ideas from this thread, but with no success.
1) quickpkg don't work
2) compiling from official source fail on the same error
3) the sizeof work normally in my simple programe |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Mon May 08, 2006 8:27 am Post subject: |
|
|
Try running fix_libtool_file.sh. Do this:
Code: |
fix_libtool_files.sh `gcc -dumpversion`
|
Those are backquotes, btw. They're on the ~ key. If that gets gcc up again, you may want to rebuild binutils and libtool, and run revdep-rebuild. _________________ Thomas S. Howard |
|
Back to top |
|
|
jarcec n00b
Joined: 08 May 2006 Posts: 4
|
Posted: Mon May 08, 2006 8:57 am Post subject: |
|
|
didymos wrote: | Try running fix_libtool_file.sh. Do this:
Code: |
fix_libtool_files.sh `gcc -dumpversion`
|
Those are backquotes, btw. They're on the ~ key. If that gets gcc up again, you may want to rebuild binutils and libtool, and run revdep-rebuild. |
It doesn't help Still I can't recompile GCC or glibc :'( (with the same errors) |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Mon May 08, 2006 9:35 am Post subject: |
|
|
Okay, try running this:
_________________ Thomas S. Howard |
|
Back to top |
|
|
didymos Advocate
Joined: 10 Oct 2005 Posts: 4798 Location: California
|
Posted: Mon May 08, 2006 9:57 am Post subject: |
|
|
Also, run gcc-config:
I don't if your new and previous versions of gcc install to different slots, but they may. If so, you'll see something
like this
Code: |
[1] x86_64-pc-linux-gnu-<old-version> *
[2] x86_64-pc-linux-gnu-3.4.6-r1
|
To switch to the new version:
or whatever number is next to the newer gcc. _________________ Thomas S. Howard |
|
Back to top |
|
|
jarcec n00b
Joined: 08 May 2006 Posts: 4
|
Posted: Mon May 08, 2006 10:24 am Post subject: |
|
|
didymos wrote: | Okay, try running this:
|
I have the same results as above, so this don't work... |
|
Back to top |
|
|
jarcec n00b
Joined: 08 May 2006 Posts: 4
|
Posted: Mon May 08, 2006 11:18 am Post subject: |
|
|
didymos wrote: | Also, run gcc-config:
I don't if your new and previous versions of gcc install to different slots, but they may. If so, you'll see something
like this
Code: |
[1] x86_64-pc-linux-gnu-<old-version> *
[2] x86_64-pc-linux-gnu-3.4.6-r1
|
To switch to the new version:
or whatever number is next to the newer gcc. |
My gcc-config -l:
Code: | [1] x86_64-pc-linux-gnu-3.4.4 *
[2] x86_64-pc-linux-gnu-3.4.4-hardened
[3] x86_64-pc-linux-gnu-3.4.4-hardenednopie
[4] x86_64-pc-linux-gnu-3.4.4-hardenednopiessp
[5] x86_64-pc-linux-gnu-3.4.4-hardenednossp
[6] x86_64-pc-linux-gnu-3.4.6
[7] x86_64-pc-linux-gnu-3.4.6-hardened
[8] x86_64-pc-linux-gnu-3.4.6-hardenednopie
[9] x86_64-pc-linux-gnu-3.4.6-hardenednopiessp
[10] x86_64-pc-linux-gnu-3.4.6-hardenednossp |
I tried profile [1] and [6], but always the same error :'( |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Thu May 18, 2006 8:33 am Post subject: |
|
|
Hello, try :
then
and then select latest version with
Code: |
binutils-config X (X parameter as in gcc-config case(from result binutils-config -l) ).
|
and don't forget to run : source /etc/profile _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity!
Last edited by _dA_CyANIDe on Thu May 18, 2006 8:36 am; edited 1 time in total |
|
Back to top |
|
|
_dA_CyANIDe Apprentice
Joined: 30 Mar 2005 Posts: 196 Location: Czech Republic
|
Posted: Thu May 18, 2006 8:35 am Post subject: |
|
|
And post , pls. _________________ AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity! |
|
Back to top |
|
|
nxsty Veteran
Joined: 23 Jun 2004 Posts: 1556 Location: .se
|
Posted: Thu May 18, 2006 10:26 am Post subject: |
|
|
Did you switch from nptl to nptlonly when you upgraded glibc? Glibc 2.4 needs nptlonly so there should be no /lib32/tls/libc.so.6. It might be left from the previous glibc causing problems. |
|
Back to top |
|
|
n6il n00b
Joined: 30 Jan 2005 Posts: 16
|
Posted: Fri May 19, 2006 8:21 pm Post subject: gcc-config fixed it for me. |
|
|
I will confirm that the gcc-config trick mentioned above was the problem for me.
I no longer have the actual config.log file from the configure that was run for glibc that failed (took friggin forever just to find it in the first place) , but it contained in there some errors about libgcc.a being invalid, and for gcc version 3.3.4 when I knew I had a newer GCC (3.4.5) that was just installed. I ran gcc-config and selected 3.4.5 then emerge -u glibc went off and ran fine from there. |
|
Back to top |
|
|
|