View Single Post
Old 01-31-07, 09:00 PM   #1
Registered User
Join Date: Jan 2007
Posts: 2
Default Building a kernel module with latest NVIDIA driver

I am trying to install the latest NVIDIA driver on a workstation running RHEL3.

It fails to properly build the kernel, and the install-log file is below. Not sure what the failure is, or what to do about it. Right now startx is not working on the machine...the driver was suggested as the possible fix. The machine has an WinFast A360LE TD powered by nVIDIA's GeForce FX 5700LE GPU.

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Jan 23 14:14:37 2007

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : 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
no kernel module : false
force SELinux : default
no X server check : false
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
compat32 install chroot : (not specified)
compat32 install prefix : (not specified)
compat32 install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
doc install prefix : (not specified)
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 :
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 ( (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.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/usr/src/linux'
-> Kernel output path: '/usr/src/linux'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./usr/src/nv; make clean'...
rm -f nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nv-linux.
o nv_compiler.h *.d NVdriver nvidia.o
rm -f stprof stprof.o symtab.h
rm -f Makefile
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/usr/src/linux SYSOUT=/usr/s
sh ./ "cc" "cc" /usr/src/linux /usr/src/linux cc_sanity_check ful
sh ./ "cc" "cc" /usr/src/linux /usr/src/linux select_makefile ful
make --no-print-directory -f Makefile module
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -n 1`\" > nv_compiler.h
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wp
arentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -msoft-f
loat -mcmodel=kernel -mno-red-zone -minline-all-stringops -UDEBUG -U_DE
ER_INC_USE_PRESENT -I. -I/usr/src/linux/include -Wsign-compare -Wno-cast-qu
al -Wno-error nv.c
In file included from nv-linux.h:43,
from nv.c:14:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel
-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appr
opriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include
(or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/buil
/usr/include/linux/modversions.h:5:2: #error to build against the currently-
running kernel.
In file included from /usr/src/linux/include/linux/mmzone.h:268,
from /usr/src/linux/include/linux/mm.h:30,
from /usr/src/linux/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/usr/src/linux/include/asm/mmzone.h: In function `paddr_to_local_pfn':
/usr/src/linux/include/asm/mmzone.h:113: warning: comparison between signed
and unsigned
In file included from /usr/src/linux/include/linux/poll.h:11,
from nv-linux.h:66,
from nv.c:14:
/usr/src/linux/include/asm/uaccess.h: In function `__copy_from_user':
/usr/src/linux/include/asm/uaccess.h:257: warning: pointer of type `void *'
used in arithmetic
/usr/src/linux/include/asm/uaccess.h:257: warning: pointer of type `void *'
used in arithmetic
/usr/src/linux/include/asm/uaccess.h:262: warning: pointer of type `void *'
used in arithmetic
/usr/src/linux/include/asm/uaccess.h:262: warning: pointer of type `void *'
used in arithmetic
make[1]: *** [nv.o] Error 1
make: *** [module] Error 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

I had to download the source and us symlinks to get the Nvidia driver to find the kernel.h and version.h files...after that it failed to build the kernel module.

csb1237 is offline   Reply With Quote