LinuxSir.cn,穿越时空的Linuxsir!

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

gcc4.0好象不能编译显卡模块

[复制链接]
发表于 2006-1-3 22:53:48 | 显示全部楼层 |阅读模式
去NV主页下的那个驱动,编译老是fail.以前gcc3.3时没问题的,现在upgrade一下就不行了.
   xfree86变成了xorg,进不去X.想重装下显卡驱动又fail.郁闷......
发表于 2006-1-3 23:07:26 | 显示全部楼层
我还不知为什么呢,
昨天关机, 今天就不能进X了。。。。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-3 23:57:36 | 显示全部楼层
Post by pointer
我还不知为什么呢,
昨天关机, 今天就不能进X了。。。。

你也有upgrade?
回复 支持 反对

使用道具 举报

发表于 2006-1-4 19:12:14 | 显示全部楼层
嗯, 我基本上每天开机一次的。
回复 支持 反对

使用道具 举报

发表于 2006-1-4 21:49:56 | 显示全部楼层
The compiler used to compile Nvidia module must be the same version as the one used to compile your kernel.

Therefore, if you are using kernel for Debian Sarge, you should use gcc-3.3.  Alternatively, if you installed the 2.6.14 kernel from the Sid branch, which is compiled by gcc-4, then you should use gcc-4 to compile your Nvidia module.

Hope this clear.
回复 支持 反对

使用道具 举报

发表于 2006-1-5 14:07:02 | 显示全部楼层
thank d00m3d, But I know this.
Now I use the .run version.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-1-6 20:26:58 | 显示全部楼层
Post by d00m3d
The compiler used to compile Nvidia module must be the same version as the one used to compile your kernel.

Therefore, if you are using kernel for Debian Sarge, you should use gcc-3.3.  Alternatively, if you installed the 2.6.14 kernel from the Sid branch, which is compiled by gcc-4, then you should use gcc-4 to compile your Nvidia module.

Hope this clear.

很clear
但那岂不是只有sid能用xorg?
既然升级testing的时候xfree86换成了xorg,而testing又没2.6.14的内核,这不是矛盾了吗?
回复 支持 反对

使用道具 举报

发表于 2006-1-7 09:15:50 | 显示全部楼层
Post by bbmd
很clear
但那岂不是只有sid能用xorg?
既然升级testing的时候xfree86换成了xorg,而testing又没2.6.14的内核,这不是矛盾了吗?
Unfortunately, this tells me you are not clear!

Please don't mix up.  First of all, please understand the nature of kernel module.  The Nvidia drivers are actually kernel modules which are to be loaded by your kernel.  Therefore, the modules must be compiled with the same gcc compiler version as the gcc compiler used to compile the kernel.  Otherwise, the modules will not be loaded.

In testing branch, the default compiler is still gcc-3.3.  However, as announced by the Debian developers, the default compiler used for the unstable (Sid) branch is gcc-4.0.  As a result, packages from the Sid branch are compiled by gcc-4.0, of course, this includes the 2.6.14 kernel as of today.

Despite 2.6.14 kernel is not available from the testing branch, it does not mean you cannot install a 2.6.14 kernel from the Sid branch.  Simply download the relevant deb files (including dependent files) from the internet and install them will be OK.  A gcc-3.3 compiled system can run a gcc-4 compiled kernel without any trouble.  This is exactly how I am testing the gcc-4.1 compiled kernel on my Debian 3.1 system.

Clear now?
回复 支持 反对

使用道具 举报

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

本版积分规则

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