[aklug] Nvidia kernel module for 2.6.26-1-486

From: Christopher Howard <choward@indicium.us>
Date: Wed Oct 08 2008 - 09:27:53 AKDT

I'm not much of a kernel expert. Is there anything special about
compiling kernel modules for the latest Debian Lenny kernel -- 2.6.26-1?
I've been trying to compile the Nvidia binary driver for my GeFORCE 8600
GT, and can't seem to pull it off successfully. I downloaded the package
"NVIDIA-Linux-x86-100.14.09-pkg1.run" from Nvidia and ran it at
run-level 1 (with the X server off). Per all its requirements, I 1)
installed gcc-4.1; 2) set the CC environment variable to gcc-4.1; 3)
installed the kernel header files, source, and tree.
Its seems to get all the way through the progress bar and then says that
it could not compile the module, with no explanation except 'see the
nvidia log file'. I attached the log file in-line to the end of this e-mail.

Is there a more modern, generic driver package or something that I'm
suppose to be using? I'm not sure because I come from a Mandriva
background, and the Mandy 2008 Spring version came with Nvidia drivers
pre-installed that seemed to run my hardware acceleration just fine.

nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Tue Oct 7 10:34:15 2008

*** /var/log/nvidia-installer.log ***

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)
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)
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 : 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.
-> Performing CC sanity check with CC="gcc-4.1".
-> Performing CC version check with CC="gcc-4.1".
-> Kernel source path: '/lib/modules/2.6.26-1-486/build'
-> Kernel output path: '/lib/modules/2.6.26-1-486/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen 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-i2c.o nvacpi.
o nv.o nv-vm.o os-agp.o os-interface.o os-registry.o nv-i2c.o nvacpi.o nvidi
a.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 -f stprof stprof.o symtab.h Modules.symvers
rm -f -rf .tmp_versions
rm -f Makefile
-> Building kernel module:
executing: 'cd ./usr/src/nv; make module SYSSRC=/lib/modules/2.6.26-1-486/bu
ild SYSOUT=/lib/modules/2.6.26-1-486/build'...
sh ./conftest.sh "gcc-4.1" "gcc-4.1" /lib/modules/2.6.26-1-486/build /lib/mo
dules/2.6.26-1-486/build cc_sanity_check full_output
sh ./conftest.sh "gcc-4.1" "gcc-4.1" /lib/modules/2.6.26-1-486/build /lib/mo
dules/2.6.26-1-486/build select_makefile full_output
make --no-print-directory -f Makefile module

NVIDIA: calling KBUILD...
make CC=gcc-4.1 KBUILD_VERBOSE=1 -C /lib/modules/2.6.26-1-486/build SUBDIRS
=/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-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/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/.tmp_ver
sions ; rm -f /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/.tm
p_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.0
9-pkg1/usr/src/nv
echo \#define NV_COMPILER \"`gcc-4.1 -v 2>&1 | tail -n 1`\" > /tmp/selfgz303
0/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv_compiler.h
gcc-4.1 -Wp,-MD,/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv
/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.1.3/include -D__K
ERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-
prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-
function-declaration -Os -fno-stack-protector -m32 -msoft-float -mregparm=
3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i486 -mtune=gener
ic -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wn
o-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -
mno-3dnow -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-
after-statement -Wno-pointer-sign -I/tmp/selfgz3030/NVIDIA-Linux-x86-100.1
4.09-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar
-sub
scripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-comm
on -msoft-float -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_L
OOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"100.14
.09\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLIM -DNV_MULTIPLE_BRIDGE
_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESEN
T -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRESENT -DNV_VM_INSERT_PAG
E_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_AC
QUIRE_CONSOLE_SEM_PRESENT -DNV_VMAP_4_PRESENT -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c
-o /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/.tmp_nv.o /tmp
/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c
In file included from include/linux/list.h:6,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:49,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:57,
from include/linux/sched.h:54,
from include/linux/utsname.h:35,
from /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv/nv-linux.h:19,
from /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:57: warning: pointer of type ‘void *’ used in a
rithmetic
In file included from include/asm/dma-mapping.h:9,
from include/linux/dma-mapping.h:52,
from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:92,
from include/linux/pci.h:948,
from /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv/nv-linux.h:78,
from /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:199: warning: pointer of type ‘void *’ used
in arithmetic
In file included from /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv/nv-linux.h:100,
from /tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv/nv.c:14:
include/linux/highmem.h: In function ‘zero_user_segments’:
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:134: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
include/linux/highmem.h:137: warning: pointer of type ‘void *’ used in a
rithmetic
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c: In function
‘nvos_proc_create’:
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:618: error:
‘proc_root_driver’ undeclared (first use in this function)
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:618: error:
(Each undeclared identifier is reported only once
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:618: error:
for each function it appears in.)
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c: In function
‘nvidia_init_module’:
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1322: error:
too many arguments to function ‘kmem_cache_create’
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1431: error:
too many arguments to function ‘kmem_cache_create’
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1567: error:
void value not ignored as it ought to be
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c: In function
‘nvidia_exit_module’:
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1599: error:
void value not ignored as it ought to be
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c: In function
‘nv_kern_vma_nopage’:
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1826: error:
‘NOPAGE_SIGBUS’ undeclared (first use in this function)
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c: At top leve
l:
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1833: error:
unknown field ‘nopage’ specified in initializer
/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.c:1833: warnin
g: initialization from incompatible pointer type
make[3]: *** [/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/src/nv/nv.
o] Error 1
make[2]: *** [_module_/tmp/selfgz3030/NVIDIA-Linux-x86-100.14.09-pkg1/usr/sr
c/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] 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 www.nvidia.com.

-- Binary/unsupported file stripped by Ecartis --
-- Type: text/x-vcard
-- File: choward.vcf

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Oct 8 09:29:12 2008

This archive was generated by hypermail 2.1.8 : Wed Oct 08 2008 - 09:29:12 AKDT