Opened 12 years ago
Closed 12 years ago
#11036 closed defect (fixed)
guest additions do not build with 3.7 kernel
Reported by: | Andre Robatino | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.2.0 |
Keywords: | Cc: | ||
Guest type: | Linux | Host type: | all |
Description
Fedora Rawhide just got the 3.7.0-0.rc0.git2.4.fc19 kernel. Guest additions fail to build on my Rawhide guest:
Error! Bad return status for module build on kernel: 3.7.0-0.rc0.git2.4.fc19.x86_64 (x86_64) Consult /var/lib/dkms/vboxguest/4.2.0/build/make.log for more information.
Attaching the above file along with VBox.log.
Attachments (7)
Change History (28)
by , 12 years ago
by , 12 years ago
comment:1 by , 12 years ago
by , 12 years ago
Attachment: | VBox.2.log added |
---|
comment:2 by , 12 years ago
After upgrading to VirtualBox 4.2.4, I decided to retest, even though I saw nothing about 3.7 kernel fixes in the Changelog. I have 3 kernels installed:
kernel-3.7.0-0.rc1.git1.1.fc19.x86_64 kernel-3.7.0-0.rc2.git2.1.fc19.x86_64 kernel-3.7.0-0.rc2.git3.1.fc19.x86_64
I found that when attempting to use VBoxLinuxAdditions.run, the build fails on the first two kernels, but succeeds on the third (and "dkms status" shows the expected output for a full successful build). I will continue to check if later kernel modules build successfully as well.
comment:3 by , 12 years ago
Guest additions build successfully for the next kernel (3.7.0-0.rc2.git4.2.fc19.x86_64) as well. Is this expected to be fixed?
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Might be more a question for the Fedora guys. The Linux modules of VBox 4.2.4 should build fine with Linux 3.7. Please reopen if still relevant.
comment:5 by , 12 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
They do not build for me. I am on Gentoo Linux 3.7.0 and I get the following error:
/vbox.0/vboxdrv/ -I/tmp/vbox.0/vboxdrv/include -I/tmp/vbox.0/vboxdrv/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(memobj_r0drv_linux)" -D"KBUILD_MODNAME=KBUILD_STR(vboxdrv)" -c -o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In Funktion »rtR0MemObjNativeMapUser«: /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1465:38: Fehler: »VM_RESERVED« nicht deklariert (erste Benutzung in dieser Funktion) /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1465:38: Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede Funktion, in der er vorkommt, gemeldet make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Fehler 1 make[1]: *** [_module_/tmp/vbox.0] Fehler 2 make: *** [vboxdrv] Fehler 2
when I do
sudo /etc/init.d/vboxdrv setup
this worked fine for Kernel 3.6.0
uname -a Linux zenogentoo 3.7.0 #21 SMP Thu Dec 13 16:51:05 CET 2012 x86_64 Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz GenuineIntel GNU/Linux
Best Zeno
comment:6 by , 12 years ago
You forgot to add an important information: Which VirtualBox version is that?
comment:8 by , 12 years ago
In that case I would like to see the preprocessed file. When you compile the kernel driver with 'V=1', the command line is written to the terminal. Copy and paste the command and replace '-c' with '-E -dD' and replace '-o <object>.o' with '<object>.i'. Please attach the compressed resulting <object>.i file to this ticket.
comment:9 by , 12 years ago
I do not understand what you mean. I do the following:
sudo /etc/init.d/vboxdrv setup
and then I copied the last lines from
/var/log/vbox-install.log
Do I have to check some kernel options? I build the Kernel with
sudo make silentoldconfig
Normally I just rebuild the VirtualBox driver with:
sudo /etc/init.d/vboxdrv setup
Best Zeno
comment:10 by , 12 years ago
Please do the following:
- Go to /usr/src/vboxguest-4.2.4
- Do
make V=1
- Copy and paste the last failing command
- Replace '-c' by '-E -dD' and '-o <object>.o' with '-o <object>.i'
- Execute the changed command, compress the resulting <object>.i and attach it to this ticket.
comment:11 by , 12 years ago
Sorry, I do not have the following directories
/usr/src/vboxguest-4.2.4 /usr/src/vboxguest
I install VirtualBox by downloading the installer from
https://www.virtualbox.org/wiki/Linux_Downloads
I just tried with the newest version 4.2.6 and the problem is still there:
rv)" -c -o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In Funktion »rtR0MemObjNativeMapUser«: /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1465:38: Fehler: »VM_RESERVED« nicht deklariert (erste Benutzung in dieser Funktion) /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1465:38: Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede Funktion, in der er vorkommt, gemeldet make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Fehler 1 make[1]: *** [_module_/tmp/vbox.0] Fehler 2 make: *** [vboxdrv] Fehler 2
My VirtualBox installation is in /opt/VirtualBox
ls
/opt/VirtualBox> ls
LICENSE VBoxEFI32.fd VBoxPython2_4.so VBoxXPCOMC.so nls UserManual.pdf VBoxEFI64.fd VBoxPython2_5.so VBoxXPCOMIPCD rdesktop-vrdp VBox.png VBoxExtPackHelperApp VBoxPython2_6.so VMMGC.gc rdesktop-vrdp-keymaps VBox.sh VBoxGuestControlSvc.so VBoxPython2_7.so VMMR0.r0 rdesktop-vrdp.tar.gz VBoxAuth.so VBoxGuestPropSvc.so VBoxREM.so VirtualBox routines.sh VBoxAuthSimple.so VBoxHeadless VBoxRT.so VirtualBox.chm scripts VBoxAutostart VBoxHeadless.so VBoxSDL VirtualBox.so sdk VBoxBalloonCtrl VBoxHostChannel.so VBoxSDL.so accessible src VBoxCreateUSBNode.sh VBoxKeyboard.so VBoxSVC additions uninstall.sh VBoxDD.so VBoxManage VBoxSharedClipboard.so components vboxshell.py VBoxDD2.so VBoxNetAdpCtl VBoxSharedCrOpenGL.so helpers vboxwebsrv VBoxDD2GC.gc VBoxNetDHCP VBoxSharedFolders.so icons virtualbox.desktop VBoxDD2R0.r0 VBoxNetDHCP.so VBoxSysInfo.sh kchmviewer virtualbox.xml VBoxDDGC.gc VBoxOGLhostcrutil.so VBoxTestOGL libQtCoreVBox.so.4 webtest VBoxDDR0.r0 VBoxOGLhosterrorspu.so VBoxTunctl libQtGuiVBox.so.4 VBoxDDU.so VBoxOGLrenderspu.so VBoxVMM.so libQtNetworkVBox.so.4 VBoxDbg.so VBoxPython.so VBoxVolInfo libQtOpenGLVBox.so.4 VBoxDragAndDropSvc.so VBoxPython2_3.so VBoxXPCOM.so libvboxjxpcom.so
Best Zeno
comment:12 by , 12 years ago
kernel-3.7.1-2.fc18 was just pushed to Fedora 18 updates-testing. The guest additions don't build, even though they were building on Rawhide (although Rawhide currently only has kernel-3.7.0, and there hasn't been a new Rawhide kernel for a while). I will attach the indicated file.
[root@localhost ~]# dkms install vboxguest/4.2.6 -k 3.7.1-2.fc18.x86_64 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area.... make KERNELRELEASE=3.7.1-2.fc18.x86_64 -C /lib/modules/3.7.1-2.fc18.x86_64/build M=/var/lib/dkms/vboxguest/4.2.6/build....(bad exit status: 2) Error! Bad return status for module build on kernel: 3.7.1-2.fc18.x86_64 (x86_64) Consult /var/lib/dkms/vboxguest/4.2.6/build/make.log for more information. [root@localhost ~]#
comment:13 by , 12 years ago
My latest problem may be due to this bug:
3.7.1-2.fc18 - include/linux/version.h prevents kernel modules compiling https://bugzilla.redhat.com/show_bug.cgi?id=892373
I'll test the next hopefully fixed one and report back.
comment:14 by , 12 years ago
Once I delete the empty file /usr/src/kernels/3.7.1-2.fc18.x86_64/include/linux/version.h referred to in the bug report, the guest additions compile for that kernel.
comment:15 by , 12 years ago
Yes, thank you Robatino this solved it for me as well!
mv /usr/src/linux/include/linux/version.h /tmp/
something strange seems to have happened because of the header file...
Best Zeno
comment:17 by , 12 years ago
Trouble with the latest Fedora Rawhide 3.8 kernel:
[root@localhost ~]# dkms install vboxguest/4.2.6 -k 3.8.0-0.rc4.git1.1.fc19.x86_64 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area.... make KERNELRELEASE=3.8.0-0.rc4.git1.1.fc19.x86_64 -C /lib/modules/3.8.0-0.rc4.git1.1.fc19.x86_64/build M=/var/lib/dkms/vboxguest/4.2.6/build....(bad exit status: 2) Error! Bad return status for module build on kernel: 3.8.0-0.rc4.git1.1.fc19.x86_64 (x86_64) Consult /var/lib/dkms/vboxguest/4.2.6/build/make.log for more information. [root@localhost ~]#
Attaching the indicated file.
comment:18 by , 12 years ago
Also see https://forums.virtualbox.org/viewtopic.php?f=3&t=53708 . It appears to be the same issue.
comment:20 by , 12 years ago
VirtualBox 4.2.8 builds guest additions for 3.8 and earlier kernels, but not for 3.9. Opened https://www.virtualbox.org/ticket/11529 for 3.9.
comment:21 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Still having trouble with VirtualBox 4.2.2:
Attaching /var/log/vboxadd-install.log, /var/lib/dkms/vboxguest/4.2.2/build/make.log (referenced in vboxadd-install.log), and VBox.log.