Thursday, January 10, 2008

emerge media-libs/mesa-7.0.2 错误

这几天emerge mesa的时候总是出现这个错误。
make[2]: Entering directory `/var/tmp/portage/media-libs/mesa-7.0.2/work/Mesa-7.0.2/src'
../configs/current:29: *** missing separator.  Stop.
百思不得其解,查看configs下的current文件的29行,原来gcc的path是用gcc-config -L产生的,而gcc-config -L没有设置好。
显示信息如下:
sabayon configs # gcc-config -L
* gcc-config: No gcc profile is active!
* gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-4.2.0

用gcc-config 1选择4.2.0那个profile:
sabayon configs # gcc-config 1
* Switching native-compiler to i686-pc-linux-gnu-4.2.0 ...
>>> 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

这样就显示正常了:
sabayon configs # gcc-config -L
/usr/lib/gcc/i686-pc-linux-gnu/4.2.0

mesa也顺利编译通过了。


--
顺颂秋安
Jason, Jijun MA
http://jjmmma.com/
Zhejiang University-Intel Technology Center
College of Computer Science, Zhejiang University, China

No comments: