:: [DNG] virtualbox-dkms fails to buil…
Top Pagina
Delete this message
Reply to this message
Auteur: Thaddeus Nielsen
Datum:  
Aan: dng
Nieuwe Onderwerpen: Re: [DNG] virtualbox-dkms fails to build on Devuan, Re: [DNG] virtualbox-dkms fails to build on Devuan
Onderwerp: [DNG] virtualbox-dkms fails to build on Devuan
    Greetings! I have been using Devuan Jessie 1.0 Beta2 for
nearly two months. I regularly update the system. Once I had
virtualbox running fine but then removed it. Since then the kernel has
been upgraded at least twice. I have reinstalled virtualbox and all
the components are working except virtualbox-dkms fails to build. This
means there is no vboxdrv driver. Below please find the install
error and the build make log. Advice would be appreciated.

        Thaddeus Nielsen


    When attempting to (re)install virtualbox-dkms, here is the
output to the screen:


Setting up virtualbox-dkms (5.1.8-dfsg-6~bpo8+2) ...
Loading new virtualbox-5.1.8 DKMS files...
Building for 4.9.0-0.bpo.2-amd64
Building initial module for 4.9.0-0.bpo.2-amd64
Error! Bad return status for module build on kernel: 4.9.0-0.bpo.2-amd64
(x86_64)
Consult /var/lib/dkms/virtualbox/5.1.8/build/make.log for more
information. [ ok ] Unloading VirtualBox kernel modules....
[....] Loading VirtualBox kernel modules...[....] No suitable module for
running[FAILel found ... failed!
failed!
invoke-rc.d: initscript virtualbox, action "restart" failed.

    And here is /var/lib/dkms/virutalbox/5.1.8/build/make.log:


DKMS make.log for virtualbox-5.1.8 for kernel 4.9.0-0.bpo.2-amd64
(x86_64) Sat Mar 25 14:57:30 CDT 2017
make: Entering directory '/usr/src/linux-headers-4.9.0-0.bpo.2-amd64'
  LD      /var/lib/dkms/virtualbox/5.1.8/build/built-in.o
  LD      /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/built-in.o
  CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/linux/SUPDrv-linux.o
CC [M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrv.o CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrvGip.o CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrvSem.o CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPDrvTracer.o CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/SUPLibAll.o CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/alloc-r0drv.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/initterm-r0drv.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/memobj-r0drv.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/powernotification-r0drv.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
CC
[M]  /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:
In function
‘rtR0MemObjNativeLockUser’: /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1053:33:
warning: passing argument 4 of ‘get_user_pages’ makes pointer from
integer without a cast fWrite,                 /* force write access.
*/ ^ In file included
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31: /usr/src/linux-headers-4.9.0-0.bpo.2-common/include/linux/mm.h:1302:6:
note: expected ‘struct page **’ but argument is of type ‘int’ long
get_user_pages(unsigned long start, unsigned long nr_pages,
^ /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1054:33:
warning: passing argument 5 of ‘get_user_pages’ from incompatible
pointer type &pMemLnx->apPages[0],   /* Page array. */ ^ In file
included
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31: /usr/src/linux-headers-4.9.0-0.bpo.2-common/include/linux/mm.h:1302:6:
note: expected ‘struct vm_area_struct **’ but argument is of type
‘struct page **’ long get_user_pages(unsigned long start, unsigned long
nr_pages,
^ /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1050:18:
error: too many arguments to function ‘get_user_pages’ rc =
get_user_pages(R3Ptr,                  /* Where from. */ ^ In file
included
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31: /usr/src/linux-headers-4.9.0-0.bpo.2-common/include/linux/mm.h:1302:6:
note: declared here long get_user_pages(unsigned long start, unsigned
long nr_pages,
^ /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1067:33:
warning: passing argument 6 of ‘get_user_pages_remote’ makes pointer
from integer without a cast fWrite,                 /* force write
access. */ ^ In file included
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31: /usr/src/linux-headers-4.9.0-0.bpo.2-common/include/linux/mm.h:1298:6:
note: expected ‘struct page **’ but argument is of type ‘int’ long
get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
^ /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1068:33:
warning: passing argument 7 of ‘get_user_pages_remote’ from
incompatible pointer type &pMemLnx->apPages[0],   /* Page array. */ ^
In file included
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31: /usr/src/linux-headers-4.9.0-0.bpo.2-common/include/linux/mm.h:1298:6:
note: expected ‘struct vm_area_struct **’ but argument is of type
‘struct page **’ long get_user_pages_remote(struct task_struct *tsk,
struct mm_struct *mm,
^ /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:1061:18:
error: too many arguments to function ‘get_user_pages_remote’ rc =
get_user_pages_remote( ^ In file included
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/the-linux-kernel.h:98:0,
from /var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31: /usr/src/linux-headers-4.9.0-0.bpo.2-common/include/linux/mm.h:1298:6:
note: declared here long get_user_pages_remote(struct task_struct *tsk,
struct mm_struct *mm,
^ /usr/src/linux-headers-4.9.0-0.bpo.2-common/scripts/Makefile.build:298:
recipe for target
'/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o'
failed make[4]: ***
[/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o]
Error 1 make[4]: *** Waiting for unfinished
jobs.... /usr/src/linux-headers-4.9.0-0.bpo.2-common/scripts/Makefile.build:549:
recipe for target '/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv' failed
make[3]: *** [/var/lib/dkms/virtualbox/5.1.8/build/vboxdrv] Error
2 /usr/src/linux-headers-4.9.0-0.bpo.2-common/Makefile:1507: recipe for
target '_module_/var/lib/dkms/virtualbox/5.1.8/build' failed make[2]:
*** [_module_/var/lib/dkms/virtualbox/5.1.8/build] Error 2
Makefile:150: recipe for target 'sub-make' failed make[1]: ***
[sub-make] Error 2 Makefile:8: recipe for target 'all' failed make: ***
[all] Error 2 make: Leaving directory
'/usr/src/linux-headers-4.9.0-0.bpo.2-amd64'