Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GCC && glibc error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
jarcec
n00b
n00b


Joined: 08 May 2006
Posts: 4

PostPosted: Mon May 08, 2006 7:46 am    Post subject: GCC && glibc error Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon May 08, 2006 8:27 am    Post subject: Reply with quote

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
View user's profile Send private message
jarcec
n00b
n00b


Joined: 08 May 2006
Posts: 4

PostPosted: Mon May 08, 2006 8:57 am    Post subject: Reply with quote

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
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon May 08, 2006 9:35 am    Post subject: Reply with quote

Okay, try running this:
Code:

ldconfig

_________________
Thomas S. Howard
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon May 08, 2006 9:57 am    Post subject: Reply with quote

Also, run gcc-config:
Code:

gcc-config -l


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:
Code:

gcc-config 2


or whatever number is next to the newer gcc.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
jarcec
n00b
n00b


Joined: 08 May 2006
Posts: 4

PostPosted: Mon May 08, 2006 10:24 am    Post subject: Reply with quote

didymos wrote:
Okay, try running this:
Code:

ldconfig


I have the same results as above, so this don't work...
Back to top
View user's profile Send private message
jarcec
n00b
n00b


Joined: 08 May 2006
Posts: 4

PostPosted: Mon May 08, 2006 11:18 am    Post subject: Reply with quote

didymos wrote:
Also, run gcc-config:
Code:

gcc-config -l


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:
Code:

gcc-config 2


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
View user's profile Send private message
_dA_CyANIDe
Apprentice
Apprentice


Joined: 30 Mar 2005
Posts: 196
Location: Czech Republic

PostPosted: Thu May 18, 2006 8:33 am    Post subject: Reply with quote

Hello, try :

Code:


gcc-config 6



then

Code:


binutils-config -l



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
View user's profile Send private message
_dA_CyANIDe
Apprentice
Apprentice


Joined: 30 Mar 2005
Posts: 196
Location: Czech Republic

PostPosted: Thu May 18, 2006 8:35 am    Post subject: Reply with quote

And post
Code:
 emerge --info
, pls.
_________________
AMD64 X2 3800+, 1GB RAM, Gigabyte GF7600
-----
Firewalls cannot block stupidity!
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu May 18, 2006 10:26 am    Post subject: Reply with quote

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
View user's profile Send private message
n6il
n00b
n00b


Joined: 30 Jan 2005
Posts: 16

PostPosted: Fri May 19, 2006 8:21 pm    Post subject: gcc-config fixed it for me. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum