LinuxSir.cn,穿越时空的Linuxsir!

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

【以解决】linux-2.6.36-gentoo can't work with x11-drivers/nvidia-drivers-256.

[复制链接]
发表于 2010-10-29 11:28:48 | 显示全部楼层 |阅读模式
升级到最新版内核linux-2.6.36-gentoo 后安装N卡驱动报错。
N卡驱动版本 x11-drivers/nvidia-drivers-256.53
BUILD.LOG以上传。
  1. Package:    x11-drivers/nvidia-drivers-256.53
  2. Repository: gentoo
  3. Maintainer: cardoe@gentoo.org jer@gentoo.org,spock@gentoo.org
  4. USE:  acpi amd64 elibc_glibc gtk kernel_linux multilib userland_GNU
  5. Determining the location of the kernel source code
  6. Found kernel source directory:
  7.      /usr/src/linux
  8. Found kernel object directory:
  9.      /lib/modules/2.6.36-gentoo/build
  10. Found sources for kernel version:
  11.      2.6.36-gentoo
  12. Checking for MTRR support ...
  13. >>> Unpacking source...
  14. >>> Unpacking NVIDIA-Linux-x86_64-256.53.run to /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work
  15. >>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work
  16. >>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work ...
  17. Applying 256.35-unified-arch.patch ...
  18. Converting /kernel/Makefile.kbuild to use M= instead of SUBDIRS= ...
  19. >>> Source prepared.
  20. >>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work ...
  21. >>> Source configured.
  22. >>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work ...
  23. Preparing nvidia module
  24. make -j3 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.36-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module
  25. NVIDIA: calling KBUILD...
  26. make -C /lib/modules/2.6.36-gentoo/build \
  27. KBUILD_SRC=/usr/src/linux-2.6.36-gentoo \
  28. KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel" -f /usr/src/linux-2.6.36-gentoo/Makefile \
  29. modules
  30. test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
  31. echo;                                \
  32. echo "  ERROR: Kernel configuration is invalid.";        \
  33. echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
  34. echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";    \
  35. echo;                                \
  36. /bin/false)
  37. mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.tmp_versions/*
  38. make -f /usr/src/linux-2.6.36-gentoo/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel
  39. (cat /dev/null;   echo kernel//var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nvidia.ko;) > /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/modules.order
  40.   cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="256.53" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c
  41.   cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.nv_gvi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="256.53" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_gvi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv_gvi.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv_gvi.c
  42.   cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/.nv-vm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/include -I/usr/src/linux-2.6.36-gentoo/arch/x86/include -Iinclude  -I/usr/src/linux-2.6.36-gentoo/include -include include/generated/autoconf.h   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Os -m64 -march=core2 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Wframe-larger-than=2048 -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack   -I/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel -Wall -MD -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="256.53" -mcmodel=kernel -mno-red-zone -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_vm)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)"  -c -o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.o /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.c
  43. /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.c: 在函数‘nv_sg_map_buffer’中:
  44. /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.c:148: 警告:赋值时将指针赋给整数,未作类型转换
  45. /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.c:233: 警告:标号‘done’定义后未使用
  46. /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv-vm.c:143: 警告:未使用的变量‘count’
  47. /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c:426: 错误:初始值设定项里有未知的字段‘ioctl’
  48. /var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.c:426: 警告:从不兼容的指针类型初始化
  49. make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel/nv.o] 错误 1
  50. make[4]: *** 正在等待未完成的任务....
  51. make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/kernel] 错误 2
  52. make[2]: *** [sub-make] 错误 2
  53. NVIDIA: left KBUILD.
  54. nvidia.ko failed to build!
  55. make[1]: *** [module] 错误 1
  56. make: *** [module] 错误 2
  57. emake failed
  58. ERROR: x11-drivers/nvidia-drivers-256.53 failed:
  59.   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux         SYSOUT=/lib/modules/2.6.36-gentoo/build HOST_CC=x86_64-pc-linux-gnu-gcc clean module

  60. Call stack:
  61.     ebuild.sh, line   56:  Called src_compile
  62.   environment, line 4175:  Called linux-mod_src_compile
  63.   environment, line 3085:  Called die
  64. The specific snippet of code:
  65.               eval "emake HOSTCC="$(tc-getBUILD_CC)"                         CROSS_COMPILE=${CHOST}-                         LDFLAGS="$(get_abi_LDFLAGS)"                         ${BUILD_FIXES}                         ${BUILD_PARAMS}                         ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";

  66. If you need support, post the output of 'emerge --info =x11-drivers/nvidia-drivers-256.53',
  67. the complete build log and the output of 'emerge -pqv =x11-drivers/nvidia-drivers-256.53'.
  68. The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/build.log'.
  69. The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/temp/environment'.
  70. S: '/var/tmp/portage/x11-drivers/nvidia-drivers-256.53/work/'
复制代码



问题解决。解决方法见5楼。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2010-10-29 11:44:32 | 显示全部楼层
如果你坚持要用nvidia的私有驱动,何必要升级内核呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-29 11:56:45 | 显示全部楼层
nouveau驱动3D性能太差了啊。
回复 支持 反对

使用道具 举报

发表于 2010-10-29 11:57:50 | 显示全部楼层
用 nvidia-drivers-260.19.12 试试
回复 支持 反对

使用道具 举报

发表于 2010-10-30 14:38:26 | 显示全部楼层
bugzilla 上有nvidia-drivers-256.53  针对 2.6.36内核的patch,

nvidia-drivers-260.19.12 在2.6.36下正常,unmask掉即可
回复 支持 反对

使用道具 举报

发表于 2010-10-31 12:47:18 | 显示全部楼层
Post by bezetek;2117840
bugzilla 上有nvidia-drivers-256.53  针对 2.6.36内核的patch,

nvidia-drivers-260.19.12 在2.6.36下正常,unmask掉即可


的确有效,虽然还是beta版
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-10-31 13:28:17 | 显示全部楼层
用5楼的方法成功。
谢谢。
回复 支持 反对

使用道具 举报

发表于 2010-10-31 14:56:50 | 显示全部楼层
Post by senghoo;2117688
nouveau驱动3D性能太差了啊。


是啊,确实还差一大截,不过还好没有玩什么3D游戏,就是用用COMPIZ里面的3D桌面,还能凑合着。
回复 支持 反对

使用道具 举报

发表于 2010-10-31 19:30:59 | 显示全部楼层
我昨天装的时候也是出现这个问题,我还以为内核配置出问题了呢。
回复 支持 反对

使用道具 举报

发表于 2010-10-31 19:57:55 | 显示全部楼层
不单是nvidia-drivers,还有oss4也是差不多的错误
回复 支持 反对

使用道具 举报

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

本版积分规则

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