Missing C Standard files from kernel source and module headers

Bug #830550 reported by rcbpage
16
This bug affects 3 people
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/kconfig/conf --silentoldconfig Kconfig
  CHK include/linux/version.h
  UPD include/linux/version.h
  CHK include/generated/utsrelease.h
  UPD include/generated/utsrelease.h
  CC kernel/bounds.s
  GEN include/generated/bounds.h
  CC arch/x86/kernel/asm-offsets.s
In file included from /usr/src/linux-source-2.6.38/arch/x86/include/asm/percpu.h:44:0,
                 from /usr/src/linux-source-2.6.38/arch/x86/include/asm/current.h:5,
                 from /usr/src/linux-source-2.6.38/arch/x86/include/asm/processor.h:15,
                 from /usr/src/linux-source-2.6.38/arch/x86/include/asm/atomic.h:6,
                 from ./include/linux/crypto.h:20,
                 from arch/x86/kernel/asm-offsets_32.c:7,
                 from arch/x86/kernel/asm-offsets.c:2:
./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or directory
compilation terminated.
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2

Output from Parallels module build:

make -C src/hypervisor-api/Linux
make[1]: Entering directory `/tmp/.E54Yl7HAj/parallels-kernel-modules/src/hypervisor-api/Linux'
rm -rf *.o *.ko .*.cmd *.mod.c .tmp_versions *.symvers
make -C /lib/modules/2.6.38-11-generic-pae/build SUBDIRS=/tmp/.E54Yl7HAj/parallels-kernel-modules/src/hypervisor-api/Linux SRCROOT=/tmp/.E54Yl7HAj/parallels-kernel-modules/src/hypervisor-api/Linux modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-11-generic-pae'
  CC [M] /tmp/.E54Yl7HAj/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.o
In file included from /tmp/.E54Yl7HAj/parallels-kernel-modules/src/hypervisor-api/Linux/hyp_api.c:15:0:
./include/linux/kernel.h:12:20: fatal error: stdarg.h: No such file or directory
compilation terminated.

Any Help with this would be appreciated.

Tags: headers kernel
Revision history for this message
John D Lamb (j-d-lamb) wrote :

After some hunting around I found the following allowed me to compile kernel module under Natty.

$ cd /lib/modules/$(uname -r)/build/include
$ sudo ln -s $(gcc -print-file-name=include)/stdarg.h

This links stdarg.h to where the kernel makefiles will find it when it’s #included from the various kernel header files in Natty.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.