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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值