View previous topic :: View next topic |
Author |
Message |
gcasillo l33t
Joined: 23 Sep 2003 Posts: 739 Location: Cincinnati, Ohio, USA
|
Posted: Sat Jun 04, 2005 12:37 am Post subject: |
|
|
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. |
|
Back to top |
|
|
paladin-zero Guru
Joined: 19 May 2004 Posts: 322
|
Posted: Sat Jun 04, 2005 3:29 am Post subject: updated gcc, now I can't emerge. libstdc++.so.6 not found |
|
|
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 |
|
|
wing Tux's lil' helper
Joined: 27 Aug 2002 Posts: 108 Location: Mountain View, CA
|
Posted: Sat Jun 04, 2005 4:27 am Post subject: Re: updated gcc, now I can't emerge. libstdc++.so.6 not foun |
|
|
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 |
|
|
KingTaco Developer
Joined: 22 Aug 2003 Posts: 207 Location: Bay Area, CA
|
Posted: Sat Jun 04, 2005 4:38 am Post subject: |
|
|
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 |
|
|
Iron_DragonLord Apprentice
Joined: 04 Nov 2004 Posts: 273
|
Posted: Sat Jun 04, 2005 5:11 am Post subject: |
|
|
Question. I searched for libstdc and many results come up. What _is_ my path to libstdc? |
|
Back to top |
|
|
KingTaco Developer
Joined: 22 Aug 2003 Posts: 207 Location: Bay Area, CA
|
Posted: Sat Jun 04, 2005 5:20 am Post subject: |
|
|
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 |
|
|
Iron_DragonLord Apprentice
Joined: 04 Nov 2004 Posts: 273
|
Posted: Sat Jun 04, 2005 5:21 am Post subject: |
|
|
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 |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
|
Back to top |
|
|
gene-bean n00b
Joined: 21 Feb 2005 Posts: 9 Location: Georgia, USA
|
Posted: Sat Jun 04, 2005 10:54 pm Post subject: Same issue on ppc (and a fix) |
|
|
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! |
|
Back to top |
|
|
KingTaco Developer
Joined: 22 Aug 2003 Posts: 207 Location: Bay Area, CA
|
|
Back to top |
|
|
texas1emt Guru
Joined: 27 Oct 2003 Posts: 352 Location: San Antonio, TX
|
Posted: Sat Jun 04, 2005 11:20 pm Post subject: Re: Same issue on ppc (and a fix) |
|
|
Gene-bean, you totally made my weekend. _________________ M. Hayden - San Antonio, TX |
|
Back to top |
|
|
Tsuna Tux's lil' helper
Joined: 23 Jan 2005 Posts: 147
|
Posted: Sun Jun 05, 2005 10:17 am Post subject: |
|
|
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
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)
_________________ I am not sending subliminal messages |
|
Back to top |
|
|
netjunkie Tux's lil' helper
Joined: 03 May 2005 Posts: 98
|
Posted: Sun Jun 05, 2005 11:56 am Post subject: after fixing broken gcc how do you finish off a compile |
|
|
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 |
|
|
Tsuna Tux's lil' helper
Joined: 23 Jan 2005 Posts: 147
|
Posted: Sun Jun 05, 2005 12:05 pm Post subject: |
|
|
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 |
|
|
mathgeek Tux's lil' helper
Joined: 12 Oct 2004 Posts: 103 Location: Ulm, Germany
|
Posted: Sun Apr 09, 2006 8:36 am Post subject: |
|
|
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 |
|
|
tovrstra n00b
Joined: 13 Aug 2003 Posts: 66 Location: Gent, Belgium
|
Posted: Wed May 10, 2006 5:19 pm Post subject: |
|
|
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 |
|
|
samo Guru
Joined: 13 Mar 2004 Posts: 489
|
Posted: Mon May 29, 2006 9:16 pm Post subject: |
|
|
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 |
|
|
net.gholam n00b
Joined: 05 Jun 2006 Posts: 2
|
Posted: Mon Jun 05, 2006 9:44 am Post subject: |
|
|
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 |
|
|
r00dy n00b
Joined: 14 Apr 2006 Posts: 14
|
Posted: Thu Jul 13, 2006 8:56 pm Post subject: libstdc++.so.5 problem with rar |
|
|
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 |
|
|
Acronis n00b
Joined: 09 Jun 2005 Posts: 46
|
Posted: Wed Nov 12, 2008 2:02 pm Post subject: |
|
|
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
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 |
|
|
|