kernel 3.7.0 seems to have moved and re-organized some of the kernel include files
for example: include/asm-generic/types.h is not set up in lib/modules/3.7.0*/build/include/
other include headers are seen to be missing as well.
this may be necessary to kick upstream to oracle.
Steps to Reproduce:
2.build, reboot with new kernel, eselect the new kernel
emerge fails with missing header files late in build
should build and install
emerge info attached
ebuild log attached
Created attachment 332336 [details]
emerge --info output
ebuild log was lost
> ebuild log was lost
You can obtain it by emerging the package again. Can you try again?
Created attachment 332400 [details]
Build Log for virtualbox-modules-4.1.22 (also broken by new kernel)
I should add that I don't get any error on virtualbox-modules-4.2.4.
Is this still a problem with virtualbox-4.1.24 and/or virtualbox-4.2.6?
Created attachment 333178 [details]
This code in file vboxdrv/r0drv/linux/memobj-r0drv-linux.c do not work:
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 7, 0)
vma->vm_flags |= VM_DONTEXPAND | VM_DONTDUMP;
vma->vm_flags |= VM_RESERVED;
Replacing VM_RESERVED to VM_DONTEXPAND | VM_DONTDUMP allow build fine.
I couldn't reproduce this problem with kernel-3.7.9 and virtualbox-modules-4.2.6. Any chance this got fixed by the kernel developers meanwhile?
This problem only if the kernel source is pumped out of git. However, this problem is now fixed. Bug may be closed
This commit solve issue
For those still having this problem: this is because you have a stalled include/linux/version.h in your kernel source tree. Probably because you use your own checkout.
Just remove it, and the problem is gone.
(and I think this bug could be closed now)
For most arches, the 3.7 sources are no longer available due to security problems and I haven't experienced this with later versions; thus this bug should likely be closed, just let people that experience this again on much more recent versions file a new bug.
It seems to be fixed upstream, closing