Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67026 - running gcc-config to older profile stops python
Summary: running gcc-config to older profile stops python
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-10 16:34 UTC by Nick Brooker
Modified: 2004-10-25 19:33 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 Nick Brooker 2004-10-10 16:34:02 UTC
Hi, I tried to emerge openoffice-ximian and got and error which said change your gcc profile.  I ran gcc-config powerpc-unknown-linux-gnu-3.2.1

Now I get errors when I try to run emerge (or anything python) and can't get back to the newer gcc.

error says...

/usr/bin/python: /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.4.1/libstdc++.so.6)


Reproducible: Always
Steps to Reproduce:
1. tried gcc-config powerpc-unknown-linux-gnu-3.4.1
2. tried to look for a python.conf type file
3. recompiled python from source

Actual Results:  
gcc-config powerpc-unknown-linux-gnu-3.4.1 gives
* Switching to powerpc-unknown-linux-gnu-3.4.1 compiler...
/usr/bin/python: /usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.3/libgcc_s.so.1:
version `GCC_3.3' not found (required by
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.4.1/libstdc++.so.6)
 * /usr/bin/gcc-config:  Could not get portage CHOST!                     [ ok ]

trying to recomile python gives 
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-cxx=<compiler>... no
checking for c++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... configure: error: cannot run C++
compiled programs.
Comment 1 SpanKY gentoo-dev 2004-10-25 19:33:24 UTC
1.3.7 should handle this better

if your system is still broken, edit /etc/ld.so.conf and re-order the gcc-lib paths so that the newer path comes first ... then run `ldconfig` and you should be able to run gcc-config again