Somehow I cannot compile anything anymore. emerge什么东西都失败

gentoo gcc-config: Active gcc profile is invalid!

 

checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/abc/def-1.2.3/work/def-1.2.3':
configure: error: C compiler cannot create executables

 

gcc-config -c
* gcc-config: Active gcc profile is invalid!
[1] i686-pc-linux-gnu-4.3.2

 

解决

OK, after wondering if gcc-config does anything besides spit out the names of compilers, I figured out I could do this:

root@isuck:~# gcc-config i686-pc-linux-gnu-4.3.2
* Switching native-compiler to i686-pc-linux-gnu-4.3.2 ...

* 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:

* # source /etc/profile

So now I am emerging gcc again, as it asked me to. It appears to be going well. I shall report again when I have more info.

你可能感兴趣的:(Somehow I cannot compile anything anymore. emerge什么东西都失败)