DKMS fails to build on current kernels
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=
ERROR (dkms apport): kernel package linux-headers-
Error! Bad return status for module build on kernel: 4.10.0-
Consult /var/lib/
$ cat /var/lib/
DKMS make.log for virtualbox-5.0.24 for kernel 4.10.0-
Mon 16 Jan 18:47:04 GMT 2017
make: Entering directory '/usr/src/
LD /var/lib/
LD /var/lib/
CC [M] /var/lib/
In file included from /var/lib/
/var/lib/
# define true (1)
^
./include/
char true; /* character printed when tainted */
^
/var/lib/
# define false (0)
^
./include/
char false; /* character printed when not tainted */
^
scripts/
make[2]: *** [/var/lib/
scripts/
make[1]: *** [/var/lib/
Makefile:1496: recipe for target '_module_
make: *** [_module_
make: Leaving directory '/usr/src/
$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04
$ apt-cache policy virtualbox-dkms
virtualbox-dkms:
Installed: 5.0.24-
Candidate: 5.0.24-
Version table:
*** 5.0.24-
500 http://
500 http://
100 /var/lib/
5.
500 http://
500 http://
5.
500 http://
500 http://
$ apt-cache policy linux-image-
linux-image-
Installed: 4.10.0-
Candidate: 4.10.0-
Version table:
*** 4.10.0-
100 /var/lib/
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