Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103154 - New GCC deleted the old one
Summary: New GCC deleted the old one
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 103213 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-08-20 09:43 UTC by Standa
Modified: 2005-08-21 11:17 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 Standa 2005-08-20 09:43:26 UTC
Hello, i have this problem:

I have Gentoo instaled and all is OK. I just needed newer GCC, so i run:

#ACCEPT_KEYWORDS=~x86 emerge gcc

and i got gcc-3.4.4. OK, than i tried:

#gcc-config i686-pc-linux-gnu-3.4.4
#source /etc/profile

again all OK. No problem. Than i returned tu normal user mode and i got only errors. Not 
emerge could be run, Opera searched for missing library etc. Simply, many programs 
including #emerge was broken.

I tried to switch to older gcc:

#gcc-config i386-pc-linux-gnu-3.3.5

and i got:
--------------------------------------------------------------------
 * Switching to i386-pc-linux-gnu-3.3.5 compiler ...

 * env-update failed to work properly; making sure ld.so.conf paths
 * are setup properly.  Please rerun gcc-config with the -f option.
                                                                                 
              [ ok ]
 * If you intend to use the gcc from the new profile in an already
 * running shell, please remember to do:

 *   # source /etc/profile
--------------------------------------------------------------------
I tried everything, other GCC versions, but everytimes i got only this message. So i 
tried "-f", but again the same problem.

Only thing, when i can emerge and run Opera and other programs broken, is to edit /etc/
ld.so.conf and add line:
/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.5
and than run:
#ldconfig

I found this "help" on internet, but while working i still again get message about 
errors again, so i needed edit /etc/ld.so.conf again and again...

What is wrong? I didn't touch anything, Gentoo is running 3months great and all started 
after gcc emerge. Thanks for possible solutions.

Standa

Reproducible: Always
Steps to Reproduce:
1.edit /etc/ld.so.conf
2.run #ldconfig
3.

Actual Results:  
all look working, but not older GCC and problems comes again time to time
Comment 1 SpanKY gentoo-dev 2005-08-20 19:13:08 UTC
what does `gcc-config -l` show ?
Comment 2 Standa 2005-08-20 23:56:50 UTC
# gcc-config -l
[1] i386-pc-linux-gnu-3.3.5
[2] i386-pc-linux-gnu-3.3.5-hardened
[3] i386-pc-linux-gnu-3.3.5-hardenednopie
[4] i386-pc-linux-gnu-3.3.5-hardenednossp
[5] i686-pc-linux-gnu-3.4.4 *
[6] i686-pc-linux-gnu-3.4.4-hardened
[7] i686-pc-linux-gnu-3.4.4-hardenednopie
[8] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[9] i686-pc-linux-gnu-3.4.4-hardenednossp
Comment 3 SpanKY gentoo-dev 2005-08-21 00:08:54 UTC
if you're going to change your CHOST from what the default stage shipped with
you need to rebuild gcc and binutils
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2005-08-21 09:13:30 UTC
*** Bug 103213 has been marked as a duplicate of this bug. ***
Comment 5 Standa 2005-08-21 10:29:03 UTC
Thanks for your info, but what to do, to make Gentoo work again?

I tried reemerge opera again, and after emerge and after each emerge and i try 
something i get:

# etc-update
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot 
open shared object file: No such file or directory
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot 
open shared object file: No such file or directory
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot 
open shared object file: No such file or directory
Scanning Configuration files...
Exiting: Nothing left to do; exiting. :)

when i try to run newly emerged opera i get:

$ opera
/opt/opera/lib/opera/8.02-20050727.5/opera: error while loading shared 
libraries: libstdc++.so.5: cannot open shared object file: No such file or 
directory

Again only way how to fix it is to edit ld.so.conf and add link for older GCC.

Please, tell me exactly what to do, to make whole Gentoo working again. Let's 
i'll stay with newer GCC, it's enough to:

1. change CHOST in /etc/make.conf to i686 (now it's i386)
2. emerge gcc binutils

Will this solve whole my problem and whole Gentoo will work again? Or do i need 
to get somehow (how?) back to gcc-3.3.5? I emerge GCC and i thought Gentoo knows 
which gcc (i386) to download and use, my mistake. Please help me, if needed add 
next steps how to change to i686 and newer GCC.

Many thanks, Standa
Comment 6 SpanKY gentoo-dev 2005-08-21 11:17:55 UTC
switch to your 3.3.5 gcc (fix any of your libpaths are you already showed),
re-emerge gcc-3.3.5 to get an i686 version, and then you should be set