LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 769|回复: 5

gcc 或者是xorg-server的问题

[复制链接]
发表于 2008-11-23 22:59:28 | 显示全部楼层 |阅读模式
今天升级到~x86,顺便升级了openrc.发现rc-update add net.eth0 default.reboot时还是提示没有net.eth0,然后启动。(这个无关紧要)
在编译x11-drivers/xf86-video-intel-2.4.3时的开头几行,看见:
  1. *(红色)gcc-config: Active gcc profile is invaild!
复制代码
gcc-config -l
gcc-config 1

0.我是Intel GM965,签名里有,先是都用最新的,但是在x11-drivers/xf86-video-intel-2.5.1里编译不过.report bug:http://bugs.gentoo.org/show_bug.cgi?id=248282
1.于是在/etc/portage/package.mask里面加入(参考http://www.linuxsir.cn/bbs/lastpostinthread336216.html):
>x11-base/xorg-server-1.4.2
>x11-drivers/xf86-video-intel-2.5
>media-libs/mesa-7.0.3
>x11-libs/libdrm-2.3.0
2.在/etc/portage/package.use里加入
media-libs/mesa -nptl
因为xorg-server-1.4.2的nptl被强制mask
3.在编译x11-libs/libdrm-2.3.0时,出现config错。
  1. checking for C compiler default output file name... configure: error: C compiler cannot create executables
  2. See `config.log' for more details.
复制代码

请问有跟我一样显卡,一样用~x86成功编译的吗?主要问题可能是gcc,不知道该怎么设置。我把emerge -pv gcc贴出:
[ebuild   R   ] sys-devel/gcc-4.3.2  USE="fortran mudflap nls openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -gtk (-hardened) -ip28 -ip32r10k -libffi (-multilib) -multislot (-n32) (-n64) -nocxx -objc -objc++ -objc-gc -test -vanilla" 0 kB
发表于 2008-11-23 23:21:02 | 显示全部楼层
贴 gcc-config -l 的结果
回复 支持 反对

使用道具 举报

发表于 2008-11-23 23:33:44 | 显示全部楼层
See `config.log' for more details.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-11-24 09:36:43 | 显示全部楼层
gcc-config -l
gcc-config 1
source /etc/profile
emerge gcc

/etc/portage/package.mask只留
>x11-drivers/xf86-video-intel-2.5
/etc/portage/package.use里去掉media-libs/mesa -nptl
然后就可以了。是gcc要设置的问题。现在进入X后鼠标动不了。前面有一帖说要重新编译驱动。
emerge xf86-input-mouse我再试试。
成功。
谢谢。
回复 支持 反对

使用道具 举报

发表于 2008-11-24 10:34:41 | 显示全部楼层
我也遇到了 /etc/conf.d/net 和 /etc/init.d/net.eth0 都消失了。

重写 /etc/conf.d/net
然后 cp /etc/init.d/net.lo /etc/init.d/net.eth0 就行了。
回复 支持 反对

使用道具 举报

发表于 2008-11-24 10:36:18 | 显示全部楼层
对了,还有一个ccache的问题

他的作用是加快编译速度,但是缺点也是走老路,所以发生一个错误时,最好试试把他临时关闭
FEATURES="-ccache" emerge xxxxxxxxxxxxxxxxx
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表