|
|
#1 | |
|
Registered User
Join Date: Aug 2007
Posts: 35
|
Hello,
I got the following error trying to compile drvier 256.44 and kernel 2.6.36-rc1 -> Building kernel module: executing: 'cd ./kernel; make module SYSSRC=/lib/modules/2.6.36-rc1/source S YSOUT=/lib/modules/2.6.36-rc1/build'... NVIDIA: calling KBUILD... make -C /lib/modules/2.6.36-rc1/build \ KBUILD_SRC=/usr/src/kernels/linux-2.6.36-rc1 \ KBUILD_EXTMOD="/tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel" -f /usr/src /kernels/linux-2.6.36-rc1/Makefile \ modules test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo; \ echo " ERROR: Kernel configuration is invalid."; \ echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo " Run 'make oldconfig && make prepare' on kernel src to fix it ."; \ echo; \ /bin/false) mkdir -p /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/.tmp_versions ; rm -f /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/.tmp_versions/* make -f /usr/src/kernels/linux-2.6.36-rc1/scripts/Makefile.build obj=/tmp/se lfgz10692/NVIDIA-Linux-x86-256.44/kernel cc -Wp,-MD,/tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/.nv.o.d -nostd inc -isystem /usr/lib/gcc/i686-redhat-linux/4.4.4/include -I/usr/src/kernels /linux-2.6.36-rc1/arch/x86/include -Iinclude -I/usr/src/kernels/linux-2.6.3 6-rc1/include -include include/generated/autoconf.h -I/tmp/selfgz10692/NVI DIA-Linux-x86-256.44/kernel -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes - Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-dec laration -Wno-format-security -fno-delete-null-pointer-checks -Os -m32 -msof t-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march= i686 -mtune=core2 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -fstack -protector -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=1024 -fno-omit-frame-point er -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-si gn -fno-strict-overflow -fconserve-stack -I/tmp/selfgz10692/NVIDIA-Linux-x 86-256.44/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERN EL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"256.44\" -UDEBUG -U_DE BUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(n v)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz10692/NVIDIA-Li nux-x86-256.44/kernel/nv.o /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/n v.c In file included from include/linux/kernel.h:17, from include/linux/sched.h:54, from include/linux/utsname.h:35, from /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv-lin ux.h:27, from /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv.c:1 3: include/linux/bitops.h: In function ‘hweight_long’: include/linux/bitops.h:49: warning: signed and unsigned type in conditional expression In file included from /usr/src/kernels/linux-2.6.36-rc1/arch/x86/include/asm /uaccess.h:571, from include/linux/poll.h:14, from /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv-lin ux.h:84, from /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv.c:1 3: /usr/src/kernels/linux-2.6.36-rc1/arch/x86/include/asm/uaccess_32.h: In func tion ‘copy_from_user’: /usr/src/kernels/linux-2.6.36-rc1/arch/x86/include/asm/uaccess_32.h:209: war ning: comparison between signed and unsigned integer expressions /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv.c: At top level: /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv.c:426: error: unknown fie ld ‘ioctl’ specified in initializer /tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv.c:426: warning: initializ ation from incompatible pointer type make[4]: *** [/tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel/nv.o] Error 1 make[3]: *** [_module_/tmp/selfgz10692/NVIDIA-Linux-x86-256.44/kernel] Error 2 make[2]: *** [sub-make] Error 2 NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [module] Error 1 make: *** [module] Error 2 -> Error. any patch please? |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Jan 2009
Posts: 19
|
There is some patch on phoronix forums, but I think it doesn't work. I tried to apply it manualy, maybe that is why it didn't worked for me.
![]() |
|
|
|
|
|
|
#3 |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,740
|
It should be enough to delete line 426 of file nv.c. You can do so by extracting the .run file with the `-x` command line option, editing the file in kernel/nv.c relative to the directory created by the extraction step, and then running `./nvidia-installer` in the new directory.
|
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Aug 2007
Posts: 35
|
It works ok
Thank you |
|
|
|
|
![]() |
| Thread Tools | |
|
|