Missing C Standard files from kernel source and module headers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Trying to compile modules for LIRC, Parallels VM and VirtualBox VM.
Seems there are critical files missing from the Linux source and consequently from the resulting header packages.
Missing Include files: float.h, stdarg.h, possibly more?
Output from Make Prepare:
scripts/
CHK include/
UPD include/
CHK include/
UPD include/
CC kernel/bounds.s
GEN include/
CC arch/x86/
In file included from /usr/src/
./include/
compilation terminated.
make[1]: *** [arch/x86/
make: *** [prepare0] Error 2
Output from Parallels module build:
make -C src/hypervisor-
make[1]: Entering directory `/tmp/.
rm -rf *.o *.ko .*.cmd *.mod.c .tmp_versions *.symvers
make -C /lib/modules/
make[2]: Entering directory `/usr/src/
CC [M] /tmp/.E54Yl7HAj
In file included from /tmp/.E54Yl7HAj
./include/
compilation terminated.
Any Help with this would be appreciated.
After some hunting around I found the following allowed me to compile kernel module under Natty.
$ cd /lib/modules/ $(uname -r)/build/include file-name= include) /stdarg. h
$ sudo ln -s $(gcc -print-
This links stdarg.h to where the kernel makefiles will find it when it’s #included from the various kernel header files in Natty.