Citation
?ince there are only 20 threads about this, i figured one more wouldn't hurt.
Quote:
gcc-config error: Could not run/locate "i386-pc-linux-gnu-gcc"
do the following, adjusting for your system setup of course.
Code:
root ~ # gcc-config -l
[1] i686-pc-linux-gnu-3.3.5-20050130 <--- OLD COMPILER #1
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110 <--- OLD COMPILER #2
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp
[9] i686-pc-linux-gnu-4.0.0-beta20050402 * <--- NEW COMPILER
root ~ # fix_libtool_files.sh 3.3.5-20050130
^------ OLD COMPILER #1
* Scanning libtool files for hardcoded gcc library paths...
* [1/6] Scanning /lib ...
* [2/6] Scanning /usr/lib ...
* FIXING: /usr/lib/xmms/Input/libmp4.la ...[v]
* FIXING: /usr/lib/libid3.la ...[v]
* FIXING: /usr/lib/libmng.la ...[v]
* FIXING: /usr/lib/libImlib.la ...[v]
* FIXING: /usr/lib/libtiff.la ...[v]
* [3/6] Scanning /opt/sun-jdk-1.5.0.02/jre/lib ...
* [4/6] Scanning /usr/games/lib ...
* [5/6] Scanning /usr/i686-pc-linux-gnu/lib ...
* [6/6] Scanning /usr/local/lib ...
root ~ # fix_libtool_files.sh 3.4.3-20050110
^----- OLD COMPILER #2
* Scanning libtool files for hardcoded gcc library paths...
(...)
root ~ # fix_libtool_files.sh 3.3.5-20050130 --oldarch i386-pc-linux-gnu
^----- OLD COMPILER #1 AGAIN ^----- ARCH NAMED IN ERROR MSG
root ~ # fix_libtool_files.sh 3.4.3-20050110 --oldarch i386-pc-linux-gnu
^----- OLD COMPILER #2 AGAIN ^----- ARCH NAMED IN ERROR MSG
root ~ # gcc-config -l
[1] i686-pc-linux-gnu-3.3.5-20050130
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[5] i686-pc-linux-gnu-3.4.3-20050110
[6] i686-pc-linux-gnu-3.4.3-20050110-hardened
[7] i686-pc-linux-gnu-3.4.3-20050110-hardenednopie
[8] i686-pc-linux-gnu-3.4.3-20050110-hardenednossp
[9] i686-pc-linux-gnu-4.0.0-beta20050402 *
root ~ # gcc-config 1 <---- switch to any other compiler
* Switching to i686-pc-linux-gnu-3.3.5-20050130 compiler ...
root ~ # env-update && source /etc/profile
root ~ # fix_libtool_files.sh 4.0.0-beta20050402
^----- NEW COMPILER
root ~ # fix_libtool_files.sh 4.0.0-beta20050402 --oldarch i386-pc-linux-gnu
^----- NEW COMPILER ^----- ARCH NAMED IN ERROR MSG
root ~ # gcc-config 9 <---- switch back to NEW COMPILER
root ~ # env-update && source /etc/profile
if that doesn't work, try using just the base versions of gcc (3.3.5/3.4.3/etc)
if it STILL doesn't work, try figuring out what package it is that has the broken hardcoded library path and remerge it. you can get hints from the name of the library, what libraries are being linked when it errors on you (look for things starting with "-l" like "-ltiff" or "-lIDL" (that would be libtiff and libIDL respectively). if you have more than one package that you get this error with, see what dependencies they have in common. you can use [
gentoo-portage.com] to look up reverse dependencies.
fix_libtool_files.sh works - you just have to find the right command to give it.
if all else fails, recompile your toolchain. (glibc, binutils, gcc)