nvidia显卡问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
jackbown
帖子: 4
注册时间: 2008-08-31 22:08

nvidia显卡问题

#1

帖子 jackbown » 2008-09-01 15:11

今天按 http://www.linuxidc.com/Linux/2007-10/8504.htm 安装显卡驱动,又出问题了:Unable to build the NVIDIA kernel module.

谁能帮帮我,成分感谢!
显卡:Geforce FX5200
驱动是从官网上下的, Geforce 5 FX
下面是log:


nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Sep 1 14:25:19 2008

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
no precompiled interface: false
no ncurses color : false
query latest driver ver : false
OpenGL header files : false
no questions : false
silent : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : /usr/X11R6
OpenGL install prefix : /usr
compat32 install prefix : (not specified)
installer install prefix: /usr
utility install prefix : /usr
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)

Using: nvidia-installer ncurses user interface
-> License accepted.
-> No precompiled kernel interface was found to match your kernel; would you li
ke the installer to attempt to download a kernel interface for your kernel f
rom the NVIDIA ftp site (ftp://download.nvidia.com)? (Answer: No)
-> No precompiled kernel interface was found to match your kernel; this means
that the installer will need to compile a new kernel interface.
-> Kernel source path: '/lib/modules/2.6.24-21-generic/build'
-> Performing CC test with CC="cc".
-> Performing rivafb check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv.o nv-vm.o os-
agp.o os-interface.o os-registry.o nvidia.mod.o
rm -f -f build-in.o nv-linux.o *.d .*.{cmd,flags}
rm -f -f nvidia.{o,ko,mod.{o,c}} nv_compiler.h *~
rm -f -rf .tmp_versions
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.24-21-gener
ic/build SYSOUT=/lib/modules/2.6.24-21-generic/build'...

NVIDIA: calling KBUILD...
make CC=cc KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-21-generic/build SUBDIRS
=/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are mis
sing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it
."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.tmp_ver
sions ; rm -f /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.tm
p_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-716
7-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > /tmp/selfgz10703/NV
IDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv_compiler.h
cc -Wp,-MD,/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/.nv.
o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.2.3/include -D__KERNEL
__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prot
otypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-func
tion-declaration -O2 -pipe -msoft-float -mregparm=3 -freg-struct-return -mpr
eferred-stack-boundary=2 -march=i586 -mtune=generic -ffreestanding -maccumu
late-outgoing-args -Iinclude/asm-x86/mach-default -fomit-frame-pointer -g
-fno-stack-protector -Wdeclaration-after-statement -Wno-pointer-sign -I/tm
p/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv -Wall -Wimplicit -Wr
eturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith
-Wno-multichar -Werror -O -fno-common -MD -Wsign-compare -Wno-cast-qual
-Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE
-D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR
_VERSION=0 -DNV_PATCHLEVEL=7167 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -D
NVCPU_X86 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESEN
T -DN
V_CHANGE_PAGE_ATTR_PRESENT -DNV_PCI_DISABLE_DEVICE_PRESENT -DMODULE -D"KBUI
LD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_S
TR(nvidia)" -c -o /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv
/.tmp_nv.o /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c
在包含自 /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c
:14 的文件中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:17:26:
错误: linux/config.h:没有该文件或目录
In file included from include/linux/list.h:8,
from include/linux/module.h:9,
from /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/sr
c/nv/nv-linux.h:46,
from /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/prefetch.h: 在函数‘prefetch_range’中:
include/linux/prefetch.h:57: 警告: ‘void *’型指针用在了算术
��达式中
In file included from include/asm/dma-mapping_32.h:5,
from include/asm/dma-mapping.h:2,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:88,
from include/linux/pci.h:796,
from /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/sr
c/nv/nv-linux.h:69,
from /tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/scatterlist.h: 在函数‘sg_virt’中:
include/linux/scatterlist.h:293: 警告: ‘void *’型指针用在了算
术表达式中
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:233:5:
警告: “NV_ENABLE_MEM_TRACKING”未定义
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:261:5:
警告: “NV_ENABLE_MEM_TRACKING”未定义
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv-linux.h:683:2:
警告: #warning "conftest.sh failed, assuming remap_page_range(4)!"
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在文件
�:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:64: 错误
� expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ befor
e ‘*’ token
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:201: 警告
�� 从不兼容的指针类型初始化
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:223:5: 警
�: “NV_ENABLE_MEM_TRACKING”未定义
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nvos_create_alloc’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:294: 错误
�� ‘nv_pte_t_cache’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:294: 错误
�� (即使在一个函数内多次出现,每个未声明的标识符在其
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:294: 错误
�� 所在的函数内也只报告一次。)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nvos_free_alloc’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:329: 错误
�� ‘nv_pte_t_cache’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nvos_get_agp_device_by_class’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:404: 错误
�� 隐式声明函数‘pci_find_class’
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:404: 警告
�� 赋值时将整数赋给指针,未作类型转换
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:418: 警告
�� 赋值时将整数赋给指针,未作类型转换
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nvidia_init_module’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:970: 错误
�� 隐式声明函数‘pm_register’
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:970: 警告
�� 赋值时将整数赋给指针,未作类型转换
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:974: 错误
�� ‘nv_pte_t_cache’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:974: 错误
�� 提供给函数‘kmem_cache_create’的实参太多
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1036: 错误
: 隐式声明函数‘pm_unregister’
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1045: 错误
: void 值未如预期地被忽略
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nvidia_exit_module’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1083: 错误
: void 值未如预期地被忽略
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1167:5: 警
��: “NV_ENABLE_MEM_TRACKING”未定义
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1175: 错误
: ‘nv_pte_t_cache’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nv_kern_open’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1364: 错误
: ‘SA_INTERRUPT’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1364: 错误
: ‘SA_SHIRQ’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1365: 警告
: 传递参数 2 (属于‘request_irq’)时在不兼容的指针类型
�转换
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nv_kern_mmap’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:1541: 错误
: 隐式声明函数‘remap_page_range’
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nvos_count_devices’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3230: 警告
: 赋值时将整数赋给指针,未作类型转换
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3235: 警告
: 赋值时将整数赋给指针,未作类型转换
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nv_acpi_event’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3424: 错误
: ‘PM_SUSPEND_MEM’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3429: 错误
: ‘PM_SUSPEND_ON’未声明 (在此函数内第一次使用)
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c: 在函数
�nv_kern_acpi_resume’中:
/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.c:3461: 错误
: ‘PM_SUSPEND_ON’未声明 (在此函数内第一次使用)
make[3]: *** [/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/src/nv/nv.
o] 错误 1
make[2]: *** [_module_/tmp/selfgz10703/NVIDIA-Linux-x86-1.0-7167-pkg1/usr/sr
c/nv] 错误 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] 错误 1
make: *** [module] 错误 2
-> Error.
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find suggestions
on fixing installation problems in the README available on the Linux
driver download page at www.nvidia.com.
回复