Summary: | =app-emulation/virtualbox-modules-3.2.10 fails to compile | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pavel Shirov <passnet> |
Component: | Current packages | Assignee: | Patrick Lauer <patrick> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | katabami, polynomial-c, swapon |
Priority: | High | ||
Version: | 10.0 | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Pavel Shirov
2010-11-09 09:00:42 UTC
Forgot about locale settings and didn't noticed it before posting. Here is the build log copy in english: *** Building 'vboxdrv' module *** make[1]: Entering directory `/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv' make KBUILD_VERBOSE= -C /usr/src/linux SUBDIRS=/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv SRCROOT=/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv modules make[2]: Entering directory `/usr/src/linux-2.6.34-gentoo-r12' CC [M] /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/SUPDrv-linux.o CC [M] /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/SUPDrvSem.o CC [M] /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/SUPDrv.o In file included from include/linux/gfp.h:4, from include/linux/slab.h:12, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/../SUPDrvInternal.h:100, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/SUPDrv-linux.c:33: include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory include/linux/mmzone.h:252:5: warning: "MAX_NR_ZONES" is not defined include/linux/mmzone.h:254:7: warning: "MAX_NR_ZONES" is not defined include/linux/mmzone.h:256:7: warning: "MAX_NR_ZONES" is not defined In file included from include/linux/gfp.h:4, from include/linux/slab.h:12, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/../SUPDrvInternal.h:100, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/SUPDrv-linux.c:33: include/linux/mmzone.h:294: error: 'MAX_NR_ZONES' undeclared here (not in a function) CC [M] /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/r0drv/alloc-r0drv.o In file included from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/r0drv/linux/the-linux-kernel.h:78, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/SUPDrv-linux.c:34: include/linux/mm.h:457:63: warning: "NR_PAGEFLAGS" is not defined include/linux/mm.h:505:62: warning: "NR_PAGEFLAGS" is not defined make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/linux/SUPDrv-linux.o] Error 1 make[3]: *** Waiting for unfinished jobs.... In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/include/internal/iprt.h:52, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/r0drv/alloc-r0drv.c:32: include/linux/mmzone.h:18:30: error: generated/bounds.h: No such file or directory include/linux/mmzone.h:252:5: warning: "MAX_NR_ZONES" is not defined include/linux/mmzone.h:254:7: warning: "MAX_NR_ZONES" is not defined include/linux/mmzone.h:256:7: warning: "MAX_NR_ZONES" is not defined In file included from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/include/internal/iprt.h:52, from /var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/r0drv/alloc-r0drv.c:32: include/linux/mmzone.h:294: error: 'MAX_NR_ZONES' undeclared here (not in a function) make[3]: *** [/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv/r0drv/alloc-r0drv.o] Error 1 make[2]: *** [_module_/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.34-gentoo-r12' make[1]: *** [vboxdrv] Error 2 make[1]: Leaving directory `/var/tmp/portage/app-emulation/virtualbox-modules-3.2.10/work/vboxdrv' make: *** [all] Error 2 emake failed Ok this was caused by missing autogenerated headers in my gentoo-sources tree (I've did 'make clean'). So 'cd /usr/src/linux && make modules_prepare' fixed this issue, but it wasn't really obvious. I wonder if there are some way to make this more straightforward or at least add some checks and warnings... Let me comment as a non-expert user. Some packages build kernel modules, and I think they should be more informative: * if it needs some header files like this, it should have the line [[ -e /usr/src/linux/include/generated/bounds.h ]] || die "Do cd /usr/src/linux && make modules_prepare" Probably it should be prvided as a function in linux-mod.eclass. * it should einfo "Remember that you have to emerge ${PN} each time you upgrade to a new kernel; modules from former installation won't be deleted." I don't know the general case, but this may better be a linux-mod.eclass bug. If you like, I'd open a seperate bug, but I can't state technical details. Thanks a lot for maintaining Gentoo. app-emulation/virtualbox-modules-3.2.10 is no longer in the tree... This is a doc bug, and independent of ebuild versions. If you don't fix it, you may receive identical reports again. Please read the comment #3. Thanks anyway. I leave the status unchaged. |