PDA

View Full Version : NV kernel compiling problem


Marius
09-01-02, 10:53 AM
Hi,
I'm running Linux 2.4.18, gcc 2.95.3 20010315 and tried to compile NVIDIA_kernel-1.0-2960 from source.
These are the last lines of the make output:

/lib/modules/2.4.18/build/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18/build/include/linux/irq.h:65: requested alignment is not a constant
In file included from /lib/modules/2.4.18/build/include/linux/interrupt.h:45,
from nv.c:42:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not
in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv.c:42:
/lib/modules/2.4.18/build/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.18/build/include/linux/interrupt.h:128: requested alignment is
not a constant
make: *** [nv.o] Error 1

I've searched the web, but couldn't find anyone referring to this error message, I also tried invoking make with SYSINCLUDE=/usr/src/linux, same result.
What do I do wrong here?
Thanks in advance
Marius

Norbert
09-01-02, 03:41 PM
make sure this file exists
/lib/modules/2.4.18/build/include/linux/irq.h

--Norbert

Marius
09-02-02, 09:49 AM
Thanks for your reply Norbert!
It did not exist, so I copied the one from /usr/include/linux/ to /lib/modules/2.4.18/build/include/linux/, but it still doesn't work :(
Any other ideas?
Thanks
Marius

utiel
09-02-02, 04:53 PM
Have you compiled 2.4.18 kernel?

Kernel has to be configured for compiling NV kernel from source. ( if you do make distclean, make mrproper, you have to configure it again )

Check this two links
/usr/include/asm -> /usr/src/linux/include/asm
/usr/include/linux ->/usr/src/linux/include/linux

and then, compile NVkernel again

Marius
09-04-02, 01:25 PM
Thanks utiel, the two links where missing.
Had to install which and mktemp after that and the NVkernel installed fine :)
Marius