Emerge抱怨gcc不能工作啦!

平时gentoo自动更新,省心也省力。结果聪明反被聪明误,遇到了搞不清道不明的依赖关系,有个东西是装也装不上,卸也卸不下,只好动手挨着理出来。
一次舒爽的emerge --depclean之后,系统里多余的小家伙挨个儿离开了。
重启,再来试试revdep-rebuild(系统推荐的步骤是emerge --update --deep --newuse world, emerge --depclean, then revdep-rebuild)。
不好,突然停住了,看看输出的提示,找到红绿交界的地方,看到如下文字:

-------code-------
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
--------end-------

糟糕,我的GCC挂了?貌似刚才的操作没有惹到它老人家吧!

没办法,找找吧。

$ which gcc
发现它好端端的躺在/usr/bin/gcc,乖乖不得了。

看看配置吧,gcc-config -l一下,貌似这唯一的一条不是默认的选择。
------------------
lax@mib ~/empty/gentoo $ gcc-config -l
 [1] i686-pc-linux-gnu-4.4.3
------------------

试试修改一下:
$ sudo gcc-config 1
 * Switching native-compiler to i686-pc-linux-gnu-4.4.3 ...                   [ ok ]

它OK,我也OK,再来Emerge一下,终于走下去啦。

--
Liu Lantao
EMAIL: liulantao ( at ) gmail ( dot ) com ;
WEBSITE: http://www.liulantao.com/ .