Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 08-16-10, 07:09 AM   #1
eskuai
Registered User
 
Join Date: Aug 2007
Posts: 35
Default driver 256.44 and kernel 2.6.36-rc1

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?
eskuai is offline   Reply With Quote
Old 08-16-10, 12:48 PM   #2
Milos_SD
Registered User
 
Join Date: Jan 2009
Posts: 19
Default Re: driver 256.44 and kernel 2.6.36-rc1

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.
Milos_SD is offline   Reply With Quote
Old 08-16-10, 06:13 PM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: driver 256.44 and kernel 2.6.36-rc1

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.
zander is offline   Reply With Quote
Old 08-17-10, 12:57 PM   #4
eskuai
Registered User
 
Join Date: Aug 2007
Posts: 35
Default Re: driver 256.44 and kernel 2.6.36-rc1

It works ok

Thank you
eskuai is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:46 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright ©1998 - 2014, nV News.