20 szep 2011
renko képe

sudo emerge --sync
sudo emerge -DuNatv world
sudo emerge --depclean

renko@renko ~ $ sudo gcc-config -c
* gcc-config: Active gcc profile is invalid!

[1] x86_64-pc-linux-gnu-4.5.3

renko@renko ~ $ sudo gcc-config 1
* Switching native-compiler to x86_64-pc-linux-gnu-4.5.3 ...
* gcc-config: Active gcc profile is invalid!

* Your gcc has a bug with GCC_SPECS.
* Please re-emerge gcc.
* http://bugs.gentoo.org/68395

>>> Regenerating /etc/ld.so.cache... [ ok ]

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

* . /etc/profile

renko@renko ~ $ sudo env-update
renko@renko ~ $ source /etc/profile
renko@renko ~ $ emerge --oneshot libtool
renko@renko ~ $ sudo fix_libtool_files.sh 4.5.3
* Scanning libtool files for hardcoded gcc library paths...
* [1/10] Scanning /lib ...
* [2/10] Scanning /usr/lib ...
* [3/10] Scanning /lib32 ...
* [4/10] Scanning /lib64 ...
* [5/10] Scanning /usr/lib32 ...
* [6/10] Scanning /usr/lib64 ...
* [7/10] Scanning /usr/local/lib ...
* [8/10] Scanning /usr/local/lib32 ...
* [9/10] Scanning /usr/local/lib64 ...
* [10/10] Scanning /usr/x86_64-pc-linux-gnu/lib ...

renko@renko ~ $ sudo gcc-config -l
[1] x86_64-pc-linux-gnu-4.5.3 *

Gentoo GCC upgrading handbook

Tags: