Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gcc 2.95.3 error with gcc 3.2.2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Thames
n00b
n00b


Joined: 25 Feb 2003
Posts: 53

PostPosted: Mon Apr 14, 2003 10:09 am    Post subject: gcc 2.95.3 error with gcc 3.2.2 Reply with quote

Hi...

I read a thread about having both gcc 2.95.3 and gcc 3.2.2 on the same system, and the thread said that it would work right out of the box.
So I did an: emerge /usr/portage/sys-devel/gcc/gcc-2.95.3.ebuild
and then I did an: gcc-config i686-pc-linux-gnu-2.95.3
to use gcc 2.95.3 to compile an old 2.2 kernel.

But now, nothing works!! Many program fails with an error message like the following:
#env-update
/usr/bin/python2.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

What is wrong, and how do I correct it!!

Thanks in advance
Thames
Back to top
View user's profile Send private message
Thames
n00b
n00b


Joined: 25 Feb 2003
Posts: 53

PostPosted: Mon Apr 14, 2003 1:03 pm    Post subject: Reply with quote

Fixed it myself... :-)

Apprently the problem is that gcc-config has a problem with updating the correct paths to the libs.
So when you have done a: gcc-config i686-pc-linux-gnu-3.2.2 (or 2.95.3) you have to do:
export LD_LIBRARY_PATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2"
and then source /etc/profile and env-update works...

Maybe this is a bug in gcc-config or is there something that i'm missing??

/Thames
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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