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

Newegg Daily Deals

Reply
 
Thread Tools
Old 07-21-07, 01:07 PM   #1
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default kernel 2.6.22-git16 make install failure

NVIDIA-Linux-x86_64-100.14.11-pkg2
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.22-git16-smp/source /lib/modules/2.6.22-git16-smp/build cc_sanity_check full_output
sh ./conftest.sh "cc" "cc" /lib/modules/2.6.22-git16-smp/source /lib/modules/2.6.22-git16-smp/build select_makefile full_output
make --no-print-directory -f Makefile install

NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.22-git16-smp/build KBUILD_VERBOSE=1 -C /lib/modules/2.6.22-git16-smp/source SUBDIRS=/usr/src/NVIDIA-Linux-x86_
64-100.14.11-pkg2/usr/src/nv modules
make -C /lib/modules/2.6.22-git16-smp/build \
KBUILD_SRC=/usr/src/linux-2.6.22-git16 \
KBUILD_EXTMOD="/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv" -f /usr/src/linux-2.6.22-git16/Makefile 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 missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_versions
rm -f /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-2.6.22-git16/scripts/Makefile.build obj=/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv
cc -Wp,-MD,/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib64/gcc/x86_64-suse-linux/4.2.1/include -D__KERNE
L__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.22-git16/include -include include/linux/autoconf.h -I/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/
nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -mtune=generic -m64 -mno-
red-zone -mcmodel=kernel -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -funit-at-a-time -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -maccumulate-ou
tgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -fstack-protector -fstack-protector-all -fomit-frame-pointer -g -fno-stack-protector -Wdecl
aration-after-statement -Wno-pointer-sign -I/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wc
har-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -O -fno-common -msoft-float -mcmodel=kernel -mno-red-zone -MD -Wsign-compare -Wno-ca
st-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"100.14.11\" -UDEBUG -U_DEBUG -DNDEBUG -DNV_SIGNAL_STRUCT_RLI
M -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PCI_GET_CLASS_PRESENT -DNV_SYSCTL_MAX_MAP_COUNT_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_PCI_CHOOSE_STATE_PRES
ENT -DNV_VM_INSERT_PAGE_PRESENT -DNV_OLD_MM_KGDB_BREAKPOINT_PRESENT -DNV_REMAP_PFN_RANGE_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DNV_ACQUIRE_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 /usr/src/NVIDI
A-Linux-x86_64-100.14.11-pkg2/usr/src/nv/.tmp_nv.o /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c
In file included from include/linux/sched.h:59,
from include/linux/utsname.h:35,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-linux.h:19,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:14:
include/linux/nodemask.h: In function ‘__first_node’:
include/linux/nodemask.h:229: warning: signed and unsigned type in conditional expression
include/linux/nodemask.h: In function ‘__next_node’:
include/linux/nodemask.h:235: warning: signed and unsigned type in conditional expression
include/linux/nodemask.h: In function ‘__first_unset_node’:
include/linux/nodemask.h:253: warning: signed and unsigned type in conditional expression
In file included from include/linux/list.h:8,
from include/linux/wait.h:22,
from include/asm/semaphore.h:42,
from include/linux/sched.h:62,
from include/linux/utsname.h:35,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-linux.h:19,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function ‘prefetch_range’:
include/linux/prefetch.h:62: warning: pointer of type ‘void *’ used in arithmetic
In file included from include/asm/pci.h:82,
from include/linux/pci.h:776,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-linux.h:78,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:14:
include/asm-generic/pci-dma-compat.h: In function ‘pci_map_page’:
include/asm-generic/pci-dma-compat.h:49: warning: pointer of type ‘void *’ used in arithmetic
In file included from include/linux/compat.h:14,
from include/asm/mtrr.h:106,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv-linux.h:112,
from /usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:14:
include/asm/compat.h: In function ‘compat_alloc_user_space’:
include/asm/compat.h:204: warning: pointer of type ‘void *’ used in arithmetic
/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c: In function ‘nvidia_init_module’:
/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1326: error: too many arguments to function ‘kmem_cache_create’
/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1435: error: too many arguments to function ‘kmem_cache_create’
/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1569: error: void value not ignored as it ought to be
/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c: In function ‘nvidia_exit_module’:
/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.c:1601: error: void value not ignored as it ought to be
make[4]: *** [/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/usr/src/NVIDIA-Linux-x86_64-100.14.11-pkg2/usr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
PATH="/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/
usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/local/bin:/usr/local/mybin:/usr/lib/java/jre/bin:/opt/netbeans/bin:
/bin:/sbin" modprobe nvidia && \
echo "nvidia.ko installed successfully.";
FATAL: Error inserting nvidia (/lib/modules/2.6.22-git16-smp/kernel/drivers/video/nvidia.ko): Invalid module format
make[1]: *** [package-install] Error 1
make: *** [install] Error 2
siddly is offline   Reply With Quote
Old 07-21-07, 07:07 PM   #2
onyxsoft
Registered User
 
Join Date: Mar 2004
Posts: 9
Default Re: kernel 2.6.22-git16 make install failure

I had this same problem myself. Looks like kmem_cache_create has changed. I removed the second NULL in the kmem_cache_create line in usr/src/nv/nv-linux.h to resolve the first problem. The second problem is unregister_chrdev now returns void so remove the if condition around unregister_chrdev (and the debug line below) and recompile. If none of this makes sense to you hold on a little bit. I am sure someone will make and post a patch before too long.

--
David
onyxsoft is offline   Reply With Quote
Old 07-21-07, 08:06 PM   #3
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: kernel 2.6.22-git16 make install failure

Please see http://www.nvnews.net/vbulletin/showthread.php?t=95296.
zander is offline   Reply With Quote
Old 07-21-07, 09:47 PM   #4
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: kernel 2.6.22-git16 make install failure

Quote:
Originally Posted by onyxsoft
I had this same problem myself. Looks like kmem_cache_create has changed. I removed the second NULL in the kmem_cache_create line in usr/src/nv/nv-linux.h to resolve the first problem. The second problem is unregister_chrdev now returns void so remove the if condition around unregister_chrdev (and the debug line below) and recompile. If none of this makes sense to you hold on a little bit. I am sure someone will make and post a patch before too long.

--
David
Thanks, that fixed it.
siddly is offline   Reply With Quote
Old 07-21-07, 09:54 PM   #5
siddly
Registered User
 
Join Date: Jul 2003
Location: West Midlands, UK
Posts: 125
Default Re: kernel 2.6.22-git16 make install failure

Quote:
Originally Posted by zander
Also applied the patch.
siddly 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mageia 2 Cannot Install 71.86.15 for Riva TNT/TNT2 kbulgrien NVIDIA Linux 3 06-29-12 08:27 AM
Corrupted display - 302.17 - Dell Precision T3500 (G98 [Quadro NVS 295]) gbailey NVIDIA Linux 1 06-27-12 10:24 AM
UEFI+Nvidia - NVRM: Your system is not currently configured to drive a VGA console... interzoneuk NVIDIA Linux 0 06-26-12 04:51 AM
xorg locks-up with newest nvidia drivers w/ vdpau. theroot NVIDIA Linux 1 06-24-12 11:04 AM
Crash when logout from X TGL NVIDIA Linux 10 09-13-02 08:22 PM

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


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