View Single Post
Old 12-17-02, 09:22 AM   #1
saqer
Registered User
 
Join Date: Dec 2002
Location: USA
Posts: 81
Default Nvidia drive Compilation problem.

Hi.
I have this problem while trying to compile the sorce of the nvidia kernel. The error log is listed below.

The kernel source is already installed in my machine, what else I need to have before the 'make install' ?

with regards
--------------------------------------------
cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4191 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/lib/modules/2.4.18-18.8.0/build/include -Wno-cast-qual nv.c
In file included from /lib/modules/2.4.18-18.8.0/build/include/linux/config.h:4,
from nv-linux.h:17,
from nv.c:14:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /lib/modules/2.4.18-18.8.0/build/include/linux/prefetch.h:13,
from /lib/modules/2.4.18-18.8.0/build/include/linux/list.h:6,
from /lib/modules/2.4.18-18.8.0/build/include/linux/module.h:12,
from nv-linux.h:28,
from nv.c:14:
/lib/modules/2.4.18-18.8.0/build/include/asm/processor.h:56: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18-18.8.0/build/include/asm/processor.h:56: requested alignment is not a constant
In file included from /lib/modules/2.4.18-18.8.0/build/include/linux/rwsem.h:29,
from /lib/modules/2.4.18-18.8.0/build/include/asm/semaphore.h:42,
from /lib/modules/2.4.18-18.8.0/build/include/linux/fs.h:200,
from /lib/modules/2.4.18-18.8.0/build/include/linux/capability.h:17,
from /lib/modules/2.4.18-18.8.0/build/include/linux/binfmts.h:5,
from /lib/modules/2.4.18-18.8.0/build/include/linux/sched.h:9,
from /lib/modules/2.4.18-18.8.0/build/include/linux/mm.h:4,
from /lib/modules/2.4.18-18.8.0/build/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/lib/modules/2.4.18-18.8.0/build/include/asm/rwsem.h: In function `__down_write_trylock':
/lib/modules/2.4.18-18.8.0/build/include/asm/rwsem.h:177: warning: implicit declaration of function `cmpxchg'
In file included from /lib/modules/2.4.18-18.8.0/build/include/linux/mm.h:12,
from /lib/modules/2.4.18-18.8.0/build/include/linux/slab.h:14,
from nv-linux.h:63,
from nv.c:14:
/lib/modules/2.4.18-18.8.0/build/include/linux/mmzone.h: At top level:
/lib/modules/2.4.18-18.8.0/build/include/linux/mmzone.h:39: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18-18.8.0/build/include/linux/mmzone.h:39: requested alignment is not a constant
In file included from /lib/modules/2.4.18-18.8.0/build/include/asm/hardirq.h:6,
from /lib/modules/2.4.18-18.8.0/build/include/linux/interrupt.h:45,
from nv-linux.h:71,
from nv.c:14:
/lib/modules/2.4.18-18.8.0/build/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18-18.8.0/build/include/linux/irq.h:65: requested alignment is not a constant
In file included from /lib/modules/2.4.18-18.8.0/build/include/linux/interrupt.h:45,
from nv-linux.h:71,
from nv.c:14:
/lib/modules/2.4.18-18.8.0/build/include/asm/hardirq.h:21: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18-18.8.0/build/include/asm/hardirq.h:21: requested alignment is not a constant
In file included from nv-linux.h:71,
from nv.c:14:
/lib/modules/2.4.18-18.8.0/build/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18-18.8.0/build/include/linux/interrupt.h:128: requested alignment is not a constant
make: *** [nv.o] Error 1
--------------------------------------------------------------------------------------
saqer is offline   Reply With Quote