DKMS fails to build on current kernels

Bug #1656921 reported by Dave Lambley
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
virtualbox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The virtualbox kernel module cannot be built against current mainline kernels. I have tried v4.9.0 and v4.10.0rc4. Here is the output from v4.10.0rc4;

$ sudo dkms install virtualbox/5.0.24

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=4.10.0-041000rc4-generic -C /lib/modules/4.10.0-041000rc4-generic/build M=/var/lib/dkms/virtualbox/5.0.24/build....(bad exit status: 2)
ERROR (dkms apport): kernel package linux-headers-4.10.0-041000rc4-generic is not supported
Error! Bad return status for module build on kernel: 4.10.0-041000rc4-generic (x86_64)
Consult /var/lib/dkms/virtualbox/5.0.24/build/make.log for more information.

$ cat /var/lib/dkms/virtualbox/5.0.24/build/make.log
DKMS make.log for virtualbox-5.0.24 for kernel 4.10.0-041000rc4-generic (x86_64)
Mon 16 Jan 18:47:04 GMT 2017
make: Entering directory '/usr/src/linux-headers-4.10.0-041000rc4-generic'
  LD /var/lib/dkms/virtualbox/5.0.24/build/built-in.o
  LD /var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/built-in.o
  CC [M] /var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.o
In file included from /var/lib/dkms/virtualbox/5.0.24/build/include/VBox/types.h:30:0,
                 from /var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/../SUPDrvInternal.h:35,
                 from /var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.c:32:
/var/lib/dkms/virtualbox/5.0.24/build/include/iprt/types.h:220:18: error: expected identifier or ‘(’ before numeric constant
 # define true (1)
                  ^
./include/linux/kernel.h:517:7: note: in expansion of macro ‘true’
  char true; /* character printed when tainted */
       ^
/var/lib/dkms/virtualbox/5.0.24/build/include/iprt/types.h:223:18: error: expected identifier or ‘(’ before numeric constant
 # define false (0)
                  ^
./include/linux/kernel.h:518:7: note: in expansion of macro ‘false’
  char false; /* character printed when not tainted */
       ^
scripts/Makefile.build:293: recipe for target '/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.o' failed
make[2]: *** [/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv/linux/SUPDrv-linux.o] Error 1
scripts/Makefile.build:551: recipe for target '/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv' failed
make[1]: *** [/var/lib/dkms/virtualbox/5.0.24/build/vboxdrv] Error 2
Makefile:1496: recipe for target '_module_/var/lib/dkms/virtualbox/5.0.24/build' failed
make: *** [_module_/var/lib/dkms/virtualbox/5.0.24/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.10.0-041000rc4-generic'

$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

$ apt-cache policy virtualbox-dkms
virtualbox-dkms:
  Installed: 5.0.24-dfsg-0ubuntu1.16.04.1
  Candidate: 5.0.24-dfsg-0ubuntu1.16.04.1
  Version table:
 *** 5.0.24-dfsg-0ubuntu1.16.04.1 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages
        100 /var/lib/dpkg/status
     5.0.18-dfsg-2ubuntu1 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages
     5.0.18-dfsg-2build1 500
        500 http://gb.archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages

$ apt-cache policy linux-image-4.10.0-041000rc4-generic
linux-image-4.10.0-041000rc4-generic:
  Installed: 4.10.0-041000rc4.201701152031
  Candidate: 4.10.0-041000rc4.201701152031
  Version table:
 *** 4.10.0-041000rc4.201701152031 100
        100 /var/lib/dpkg/status

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

use virtualbox-source and enjoy your bugs, because the porting with kernel 4.10 is not yet completely done, and the kernel itself needs patching due to regressions

Changed in virtualbox (Ubuntu):
status: New → Invalid
Revision history for this message
Dave Lambley (foodavel) wrote :

I am also getting this problem with kernel 4.9.0. I am using a mainline kernel due to bug #1657072.

Changed in virtualbox (Ubuntu):
status: Invalid → New
Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

In this case, lets mark as dup of 1629870

Revision history for this message
Fjodor (sune-molgaard) wrote :

How is it a duplicate, when the error message is a completely different one?

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

did you test my ppa?

Revision history for this message
Igor Zinovyev (zinigor) wrote :

The ppa:costamagnagianfranco/virtualbox-ppa PPA fixes the problem for me, thank you!

Revision history for this message
Gianfranco Costamagna (costamagnagianfranco) wrote :

well, now the update has been released in the official repositories, my ppa isn't needed anymore

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

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

Changed in virtualbox (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.