Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
after gcc-3.4.3 emerge, emerge itself won't work anymore
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Sat Jun 04, 2005 12:37 am    Post subject: Reply with quote

mac_bain wrote:
Not my my day...
Must be fix_libtool_files.sh 3.4.3-20050110 not 3.4.3
Everything works now.
Sorry ...


I kept beating my head against the same wall. 3.4.3-20050110 instead of 3.4.3. Ugh.:cry:
Back to top
View user's profile Send private message
paladin-zero
Guru
Guru


Joined: 19 May 2004
Posts: 322

PostPosted: Sat Jun 04, 2005 3:29 am    Post subject: updated gcc, now I can't emerge. libstdc++.so.6 not found Reply with quote

I am running ~x86, and just updated gcc to 3.4.4. The fix_libtool_files.sh step during the merge did not appear to be successful. Here is an error message:

Code:
fix_libtool_files.sh i686-pc-linux-gnu-3.3.5-20050130

 * Scanning libtool files for hardcoded gcc library paths...
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
:0: assertion failed: (/usr/bin/portageq envvar 'CHOST') | getline CHOST


I also get an error message about libstdc++.so.6 when I try to emerge anything. That file exists in /usr/lib/gcc/i686-pc-linux-gnu/3.4.4, just where it should be.

Any suggestions? What useful information have I not provided?
Back to top
View user's profile Send private message
wing
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2002
Posts: 108
Location: Mountain View, CA

PostPosted: Sat Jun 04, 2005 4:27 am    Post subject: Re: updated gcc, now I can't emerge. libstdc++.so.6 not foun Reply with quote

paladin-zero wrote:
I am running ~x86, and just updated gcc to 3.4.4. The fix_libtool_files.sh step during the merge did not appear to be successful. Here is an error message:

Code:
fix_libtool_files.sh i686-pc-linux-gnu-3.3.5-20050130

 * Scanning libtool files for hardcoded gcc library paths...
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
:0: assertion failed: (/usr/bin/portageq envvar 'CHOST') | getline CHOST


I also get an error message about libstdc++.so.6 when I try to emerge anything. That file exists in /usr/lib/gcc/i686-pc-linux-gnu/3.4.4, just where it should be.

Any suggestions? What useful information have I not provided?


try to make a link to /usr/lib/gcc/i686-pc-linux-gnu/3.3.5-20050130/libstdc++.so.6

then try to do the fix_libtool_files.sh, and see if that works
Back to top
View user's profile Send private message
KingTaco
Developer
Developer


Joined: 22 Aug 2003
Posts: 207
Location: Bay Area, CA

PostPosted: Sat Jun 04, 2005 4:38 am    Post subject: Reply with quote

this is allready in bugzilla, and a fix is allready available. do this:
Code:
LD_LIBRARY_PATH=/path/to/new/stdlibc++.so/ gcc-config 1


after that you system should be normal again.
_________________
Explaining the obvious to the oblivious.
Adopt an unanswered post today -- https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
Iron_DragonLord
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 273

PostPosted: Sat Jun 04, 2005 5:11 am    Post subject: Reply with quote

Question. I searched for libstdc and many results come up. What _is_ my path to libstdc?
Back to top
View user's profile Send private message
KingTaco
Developer
Developer


Joined: 22 Aug 2003
Posts: 207
Location: Bay Area, CA

PostPosted: Sat Jun 04, 2005 5:20 am    Post subject: Reply with quote

Iron_DragonLord wrote:
Question. I searched for libstdc and many results come up. What _is_ my path to libstdc?


this is from my amd64 box:

/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/4.0.0-alpha20050130/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/4.0.0-alpha20050130/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3-20050110/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3-20050110/libstdc++.so

yours should be something similar to that
(I think /usr/lib/i686-pc-linux-gnu/<GCC VERSION>/)
_________________
Explaining the obvious to the oblivious.
Adopt an unanswered post today -- https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
Iron_DragonLord
Apprentice
Apprentice


Joined: 04 Nov 2004
Posts: 273

PostPosted: Sat Jun 04, 2005 5:21 am    Post subject: Reply with quote

KingTaco wrote:
Iron_DragonLord wrote:
Question. I searched for libstdc and many results come up. What _is_ my path to libstdc?


this is from my amd64 box:

/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/4.0.0-alpha20050130/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/4.0.0-alpha20050130/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3-20050110/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3-20050110/libstdc++.so

yours should be something similar to that
(I think /usr/lib/i686-pc-linux-gnu/<GCC VERSION>/)


Hmmm, doesn't seem to help. My GCC is pointing to libstdc++.so.5 in my issue, which I no longer have... :|

My issue (which I thought was similar): https://forums.gentoo.org/viewtopic-t-344998.html
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sat Jun 04, 2005 7:37 am    Post subject: Reply with quote

Merged from https://forums.gentoo.org/viewtopic-p-2465609.html#2465609 to this thread.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
gene-bean
n00b
n00b


Joined: 21 Feb 2005
Posts: 9
Location: Georgia, USA

PostPosted: Sat Jun 04, 2005 10:54 pm    Post subject: Same issue on ppc (and a fix) Reply with quote

KingTaco wrote:
Iron_DragonLord wrote:
Question. I searched for libstdc and many results come up. What _is_ my path to libstdc?


this is from my amd64 box:

/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.3.4/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/4.0.0-alpha20050130/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/4.0.0-alpha20050130/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3-20050110/32/libstdc++.so
/usr/lib64/gcc-lib/x86_64-pc-linux-gnu/3.4.3-20050110/libstdc++.so

yours should be something similar to that
(I think /usr/lib/i686-pc-linux-gnu/<GCC VERSION>/)


I am setting up an iBook G4 and had the same problem. I ran
Code:
LD_LIBRARY_PATH=/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.4.3/stdlibc++.so/ gcc-config 1

and
Code:
LD_LIBRARY_PATH=/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.4.3/stdlibc++.so.6/ gcc-config 1

and they both failed with the same error I was trying to fix. I then ran
Code:
#cd /usr/lib
#ln -s gcc-lib/powerpc-unknown-linux-gnu/3.4.3/stdlibc++.so.6 ./libstdc++.so.6

which seemed to fix it.

Thanks for everyone's help!
KingTaco - will you post a link to where this is in bugzilla so that I can keep up with its progress? Thanks!:D
Back to top
View user's profile Send private message
KingTaco
Developer
Developer


Joined: 22 Aug 2003
Posts: 207
Location: Bay Area, CA

PostPosted: Sat Jun 04, 2005 11:04 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?id=93125
https://bugs.gentoo.org/show_bug.cgi?id=94959


Open bugs on libstdc++


Edit: Link wrapped in [url] tags to stop it breaking the pagelayout. --Maedhros
_________________
Explaining the obvious to the oblivious.
Adopt an unanswered post today -- https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
texas1emt
Guru
Guru


Joined: 27 Oct 2003
Posts: 352
Location: San Antonio, TX

PostPosted: Sat Jun 04, 2005 11:20 pm    Post subject: Re: Same issue on ppc (and a fix) Reply with quote

Gene-bean, you totally made my weekend. :D
_________________
M. Hayden - San Antonio, TX
Back to top
View user's profile Send private message
Tsuna
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 147

PostPosted: Sun Jun 05, 2005 10:17 am    Post subject: Reply with quote

Hello
I ran into identical problems on both my laptop and my server when upgrading them yesterday
The different tips provided in this topic worked fine
Code:
# ln -s /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6 /usr/lib/libstdc++.so.6
# gcc-config 1
 * Switching to i686-pc-linux-gnu-3.4.4 compiler...
# fix_libtool_files.sh 3.4.3
# fix_libtool_files.sh 3.4.4
# env-update

although I'm not sure of what fix_libtool_files.sh does (I might look at source later on), I'm not sure whether the fix_libtool_files.sh 3.4.4 step is required... but never mind, it appears that using it when not necessary is not harmful...

Once you have fixed these issues, I think one should remember to finish the upgrade, eg with
Code:
emerge -aDuv world


and then recompile gcc, glibc libstdc++ with gcc-3.4.4 in order to make them benefit from the latest optimizations in gcc
Code:
emerge gcc glibc libstdc++-v3


and why not, recompile your whole system (for the same reason)
Code:
emerge -e world

_________________
I am not sending subliminal messages
Back to top
View user's profile Send private message
netjunkie
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2005
Posts: 98

PostPosted: Sun Jun 05, 2005 11:56 am    Post subject: after fixing broken gcc how do you finish off a compile Reply with quote

I have fixed the problem i had, but I dont want to have to recompile a list that I had, say it has done 47 of 67 items.

how do you get emerge to only compile the rest.

this is what i had run when it broke halfway

Code:
# emerge -newuse system


now it took me 8 hours to get to part 47 of the total, i really dont want to have to start from scratch.
_________________
Netjunkie
Gentoo - The ultimate learning tool for linux.

"Nobody trips over mountains. It is the small pebble that causes you to stumble. Pass all the pebbles in your path and you will find you have crossed the mountain."
-Traditional Proverb.
Back to top
View user's profile Send private message
Tsuna
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 147

PostPosted: Sun Jun 05, 2005 12:05 pm    Post subject: Reply with quote

you should recompile everything if you want to take the benefit of the new features & optimizations in gcc 3.4.4
if you really don't want to re-do all the compiling, you should try to use:
Code:
emerge --resume --newuse system

this may work
_________________
I am not sending subliminal messages
Back to top
View user's profile Send private message
mathgeek
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2004
Posts: 103
Location: Ulm, Germany

PostPosted: Sun Apr 09, 2006 8:36 am    Post subject: Reply with quote

I also had problems with libstdc++.so.5 not being in the right place. Fortunately, I have a notebook with almost the same configuration as my desktop. So I used a different workaround. I used 'equery files python' to get a list of files and created a python-tarball. Make sure you tar only the files you need and that you tar them only once. Works like a charm for me!
_________________
Gentoo can do.
Back to top
View user's profile Send private message
tovrstra
n00b
n00b


Joined: 13 Aug 2003
Posts: 66
Location: Gent, Belgium

PostPosted: Wed May 10, 2006 5:19 pm    Post subject: Reply with quote

Hi, this might also be usefull for some people. I had troubles with very annoying segfaults after upgrading to gcc 3.4.3 and it appeared that a some libraries where both linking againts libstdc++5 and libstdc++6 at the same time. I remerged all files that linked against libstdc++5. You can find them with these commands:

Code:
# cd /usr/lib
# for file in `find *.so*`; do echo $file; ldd $file | grep "libstdc++.so.5"; done


Then you lookup the ebuilds that own these files and you remerge them with:

Code:
# emerge --oneshot package1 package2 ...
Back to top
View user's profile Send private message
samo
Guru
Guru


Joined: 13 Mar 2004
Posts: 489

PostPosted: Mon May 29, 2006 9:16 pm    Post subject: Reply with quote

Where can I get libstdc++.so.5? The link to libstdc++.so.6 doesn't work.
Code:
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Back to top
View user's profile Send private message
net.gholam
n00b
n00b


Joined: 05 Jun 2006
Posts: 2

PostPosted: Mon Jun 05, 2006 9:44 am    Post subject: Reply with quote

when upgrading from 3.3 to 3.4 when you have not unmerged the old version you can do this..

Code:
LD_LIBRARY_PATH=/usr/lib/gcc/i686-pc-linux-gnu/3.3.6/ emerge python


this puts the libraries from the old version in the library path so they can be found... way better than leaving stale links lying around

use it to rebuild python against the new version
Back to top
View user's profile Send private message
r00dy
n00b
n00b


Joined: 14 Apr 2006
Posts: 14

PostPosted: Thu Jul 13, 2006 8:56 pm    Post subject: libstdc++.so.5 problem with rar Reply with quote

Hi
After upgradeing gcc do 3.4.6 I have folowed the gcc-upgrade HOWTO. I've run eselect compiler set [new gc number], I've run revdep-rebuild.
gcc --version gives
Code:
i686-pc-linux-gnu-gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

afert emerge -v rar I've still
Code:
/opt/rar/bin/rar
/opt/rar/bin/rar: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

fix_libtool_files.sh 3.4 also not helped.
WTF? Why after compiling rar with the new gcc it still wants libstdc++.so.5 /?
Back to top
View user's profile Send private message
Acronis
n00b
n00b


Joined: 09 Jun 2005
Posts: 46

PostPosted: Wed Nov 12, 2008 2:02 pm    Post subject: Reply with quote

Hello,

I have a similiar problem with my system. He doesn't find my libstdc++.so.6 lib.

this is that what i had run

Code:
emerge -De system


I have already searched in the folder /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/ for the libstdc++-so.6 file, but I didn't find it.
It's lost.

What can I do? Thx for helpening me
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
Goto page Previous  1, 2
Page 2 of 2

 
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