LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Kernel build Virtualbox error (https://www.linuxquestions.org/questions/linux-kernel-70/kernel-build-virtualbox-error-4175459743/)

CollieJim 04-26-2013 11:51 PM

Kernel build Virtualbox error
 
I have Mint 14 installed with kernel 3.5.0 on a Toshiba NB205-N210 netbook.
It frequently hangs. Input from mouse or keyboard gets things moving again.
I've been using gentoo on the machine for years with no problems, so I tried using its .config to build a new kernel.
I downloaded 3.8.9 from a kernel mirror, copied in .config, and 'make oldconfig' taking the default option in all cases.

The build worked, but the install failed with a problem with virtualbox?
Code:

/ # cd /usr/src/linux-3.8.9
linux-3.8.9 # make install
sh /usr/src/linux-3.8.9/arch/x86/boot/install.sh 3.8.9-01 arch/x86/boot/bzImage \
                System.map "/boot"
run-parts: executing /etc/kernel/postinst.d/dkms 3.8.9-01 /boot/vmlinuz-3.8.9-01
Error! Bad return status for module build on kernel: 3.8.9-01 (i686)
Consult /var/lib/dkms/virtualbox-guest/4.1.18/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.8.9-01 /boot/vmlinuz-3.8.9-01
update-initramfs: Generating /boot/initrd.img-3.8.9-01
Warning: No support for locale: en_AU.utf8
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.8.9-01 /boot/vmlinuz-3.8.9-01
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.8.9-01 /boot/vmlinuz-3.8.9-01
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.8.9-01 /boot/vmlinuz-3.8.9-01
Generating grub.cfg ...
run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return code 2
make[1]: *** [install] Error 1
make: *** [install] Error 2

linux-3.8.9 # cat /var/lib/dkms/virtualbox-guest/4.1.18/build/make.log
DKMS make.log for virtualbox-guest-4.1.18 for kernel 3.8.9-01 (i686)
Sat Apr 27 11:10:56 WST 2013
  LD      /var/lib/dkms/virtualbox-guest/4.1.18/build/built-in.o
  LD      /var/lib/dkms/virtualbox-guest/4.1.18/build/vboxguest/built-in.o
  CC [M]  /var/lib/dkms/virtualbox-guest/4.1.18/build/vboxguest/VBoxGuest-linux.o
/var/lib/dkms/virtualbox-guest/4.1.18/build/vboxguest/VBoxGuest-linux.c:206:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_VBoxGuestPciId’
/var/lib/dkms/virtualbox-guest/4.1.18/build/vboxguest/VBoxGuest-linux.c:216:1: error: ‘__mod_pci_device_table’ aliased to undefined symbol ‘g_VBoxGuestPciId’
make[4]: *** [/var/lib/dkms/virtualbox-guest/4.1.18/build/vboxguest/VBoxGuest-linux.o] Error 1
make[3]: *** [/var/lib/dkms/virtualbox-guest/4.1.18/build/vboxguest] Error 2
make[2]: *** [_module_/var/lib/dkms/virtualbox-guest/4.1.18/build] Error 2

linux-3.8.9 # grep -i vbox .config
linux-3.8.9 # grep -i virt .config
# CONFIG_PARAVIRT_GUEST is not set
CONFIG_VIRT_TO_BUS=y
CONFIG_REGULATOR_VIRTUAL_CONSUMER=m
# CONFIG_FB_VIRTUAL is not set
# CONFIG_SND_VIRTUOSO is not set
# Virtio drivers
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_MMIO is not set
# CONFIG_VIRT_DRIVERS is not set
# CONFIG_DEBUG_VIRTUAL is not set
# CONFIG_VIRTUALIZATION is not set

As far as I know I do not have anything related to virtual enabled.

Thoughts?

Jim

Sigg3.net 04-27-2013 08:21 AM

Try version 4.2.8 instead;
https://forums.virtualbox.org/viewtopic.php?f=3&t=53708

CollieJim 04-27-2013 10:21 AM

Thanks, but I do not want virtual on this machine. It is a netbook with a 1.6GHz single-core Atom processor.

Sigg3.net 04-27-2013 10:25 AM

Oh, sorry! :)
Use the kernel config tool of your choice and remove the virtualbox flags.


All times are GMT -5. The time now is 06:10 PM.