Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127736 - upgrading gcc causes emerge failure (cant find libstdc++.so.X)
Summary: upgrading gcc causes emerge failure (cant find libstdc++.so.X)
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-27 04:57 UTC by roma1390
Modified: 2006-03-28 03:59 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description roma1390 2006-03-27 04:57:25 UTC
After reemregind gcc-3.4.5 on my system it caused the next package to be emerged to fail. 

$ emerge -avDN gcc
...
 * switch to the newly installed gcc version, do the
 * following:

 * gcc-config i686-pc-linux-gnu-3.4.5
 * source /etc/profile

...
# gcc-config i686-pc-linux-gnu-3.4.5
 * Switching native-compiler to i686-pc-linux-gnu-3.4.5 ...               [ ok ]

 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile

# source /etc/profile
# emerge -auvDN1 system
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

I can't do "revdep-rebuild --library libstdc++.so.5" becouse emerge,python,...
doesn't work.


-------
 ('emerge --info' goes here)
# emerge --info
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-27 05:00:53 UTC
Sigh... Read the howto first next time.

http://www.gentoo.org/doc/en/gcc-upgrading.xml
Comment 2 roma1390 2006-03-28 03:43:13 UTC
<pyp> 

i used tool recomended in "Gentoo Linux x86 Handbook" see 
section: "Working with Gentoo". I readed man page of emerge(1) tool.

And used this tool, in the way described on theses documents. 

I don't see any link to http://www.gentoo.org/doc/en/gcc-upgrading.xml.

upgrade process doens't stop (like mysql upgrade issue). It goes siletly forward, and breaks all my system. 

You think. this is normal behavior? No i don't. Normal behavior are
documented on  man page emerge(1).
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 03:50:57 UTC
Excuse me, you did the *exact* *opposite* of what's states in gcc upgrading guide, then file an INVALID bug, complaining about your own mistake, and then reopen it when provided with an explanation? 

Give us a break, if you don't know how to upgrade gcc properly, then *first* read the documentation and *then* file a bug if you have followed the docs and your system broke. 

Ugrade process does NOT break anything, YOU broke your system by 
# gcc-config i686-pc-linux-gnu-3.4.5

*before* doing all the required steps as described in the aforementioned howto.  Stop blaming Gentoo about your own stupid mistake, seriously!

INVALID.

Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 03:51:56 UTC
CLOSED.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-03-28 03:59:09 UTC
(In reply to comment #2)
> I don't see any link to http://www.gentoo.org/doc/en/gcc-upgrading.xml.
> 
> upgrade process doens't stop (like mysql upgrade issue). It goes siletly
> forward, and breaks all my system. 
> 
> You think. this is normal behavior? No i don't. Normal behavior are
> documented on  man page emerge(1).

* You should make sure to rebuild all your C++ packages when
 * upgrading between different versions of gcc.  For example,
 * when moving to gcc-3.4 from gcc-3.3, emerge gentoolkit and run:
 *   # revdep-rebuild --library libstdc++.so.5
 * For more information on the steps to take when upgrading
 * from gcc-3.3 please refer to:
 * http://www.gentoo.org/proj/en/base/x86/gcc-upgrading-guide.xml

The above is a snip of einfo you get when upgrading gcc - just for the record.