PDA

View Full Version : Unable to Compile 4349 Drivers


giffordj
03-31-03, 05:22 PM
I am a Linux from Scratch user, I have been using the Nvidia drivers since 39xx. I successfully compileted the 4191 drivers. I noticed the new drivers were out and I tried to compile them the same way I did all the others, but this time it failed.

Here is the errors I receive.

/lib/modules/2.4.20/build/include/asm/rwsem.h: In function `__down_write_trylock':
/lib/modules/2.4.20/build/include/asm/rwsem.h:176: warning: implicit declaration of function `cmpxchg'
In file included from /lib/modules/2.4.20/build/include/asm/hardirq.h:6,
from /lib/modules/2.4.20/build/include/linux/interrupt.h:45,
from nv-linux.h:79,
from nv.c:14:
/lib/modules/2.4.20/build/include/linux/irq.h: At top level:
/lib/modules/2.4.20/build/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.20/build/include/linux/irq.h:65: requested alignment is not a constant
In file included from /lib/modules/2.4.20/build/include/linux/interrupt.h:45,
from nv-linux.h:79,
from nv.c:14:
/lib/modules/2.4.20/build/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.20/build/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nv-linux.h:79,
from nv.c:14:
/lib/modules/2.4.20/build/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/lib/modules/2.4.20/build/include/linux/interrupt.h:128: requested alignment is not a constant
nv.c: In function `nvos_proc_remove_all':
nv.c:624: dereferencing pointer to incomplete type
nv.c:625: dereferencing pointer to incomplete type
nv.c:626: dereferencing pointer to incomplete type
nv.c:627: warning: implicit declaration of function `remove_proc_entry'
nv.c:627: dereferencing pointer to incomplete type
nv.c:627: dereferencing pointer to incomplete type
make: *** [nv.o] Error 1

Any suggestions? I have attached a more complete log to view.

bwkaz
03-31-03, 05:29 PM
I remember having an error similar to this one. What's in wherever /lib/modules/2.4.20/build points at? Is it the full source, or just the copy of the headers that the Chapter 5 installation put there? If it's just the Ch. 5 version, then make it point at your real kernel source.

Also, you should probably run a make oldconfig in the kernel source directory, to recreate the autoconfig.h file (I think that's the name) in include. I believe there's one there, but it's empty -- so maybe deleting it before the make oldconfig would be a good idea.