Boa tarde a todos!
Não sei se o problema é específico do Debian, mas está ocorrendo desde a
atualização do kernel de 4.6.0 para 4.7.0, distro testing (stretch).
Sempre que se tenta compilar os módulos do virtualbox 5.0.26 ocorre o
seguinte erro:
-----------------X---------------------
/etc/kernel/header_postinst.d/dkms:
Error! Bad return status for module build on kernel: 4.7.0-1-686-pae (i686)
Consult /var/lib/dkms/vboxhost/5.0.26/build/make.log for more information.
----------------X----------------------
Procurei pelo google, mas só acho respostas para problemas semelhantes
antigos.
Anexo a este o make.log acima.
Interessante que em outra máquina com a mesma distro, mas arquitetura
AMD64, os módulos são compilados sem problema algum e o virtualbox
5.0.26 funciona corretamente.
Agradeço a quem puder ajudar.
Vinicius
DKMS make.log for vboxhost-5.0.26 for kernel 4.7.0-1-686-pae (i686)
sex out 21 14:54:58 BRST 2016
make: Entering directory '/usr/src/linux-headers-4.7.0-1-686-pae'
LD /var/lib/dkms/vboxhost/5.0.26/build/built-in.o
LD /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/linux/VBoxNetAdp-linux.o
LD /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/linux/VBoxNetFlt-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/linux/VBoxPci-linux.o
LD /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/SUPR0IdcClient.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/VBoxPci.o
LD /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/linux/SUPDrv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/SUPDrv.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/SUPR0IdcClientComponent.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/linux/SUPR0IdcClient-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/math/gcc/divdi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/math/gcc/moddi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/math/gcc/qdivrem.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/math/gcc/udivdi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/VBoxNetAdp.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/math/gcc/umoddi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/math/gcc/divdi3.o
LD [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxpci/vboxpci.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/VBoxNetFlt.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/math/gcc/moddi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/math/gcc/qdivrem.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/math/gcc/udivdi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/math/gcc/umoddi3.o
LD [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetadp/vboxnetadp.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/SUPDrvGip.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/SUPR0IdcClient.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/SUPR0IdcClientComponent.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/SUPDrvSem.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/linux/SUPR0IdcClient-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/math/gcc/divdi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/math/gcc/moddi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/math/gcc/qdivrem.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/math/gcc/udivdi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/math/gcc/umoddi3.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/SUPDrvTracer.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/SUPLibAll.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/alloc-r0drv.o
LD [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxnetflt/vboxnetflt.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/initterm-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/memobj-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/mpnotification-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/powernotification-r0drv.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
CC [M] /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
In file included from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/paravirt_types.h:44:0,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/ptrace.h:71,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/math_emu.h:4,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/processor.h:11,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/cpufeature.h:4,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/thread_info.h:52,
from /usr/src/linux-headers-4.7.0-1-common/include/linux/thread_info.h:54,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-headers-4.7.0-1-common/include/linux/preempt.h:59,
from /usr/src/linux-headers-4.7.0-1-common/include/linux/spinlock.h:50,
from /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/the-linux-kernel.h:71,
from /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:31:
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c: In function ârtR0MemAllocExâ:
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/the-linux-kernel.h:252:42: error: âcpu_has_pgeâ undeclared (first use in this function)
# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
^
/usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/pgtable_types.h:363:36: note: in definition of macro â__pgprotâ
#define __pgprot(x) ((pgprot_t) { (x) } )
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:269:100: note: in expansion of macro âMY_PAGE_KERNEL_EXECâ
pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM | __GFP_NOWARN, MY_PAGE_KERNEL_EXEC);
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/the-linux-kernel.h:252:42: note: each undeclared identifier is reported only once for each function it appears in
# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
^
/usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/pgtable_types.h:363:36: note: in definition of macro â__pgprotâ
#define __pgprot(x) ((pgprot_t) { (x) } )
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.c:269:100: note: in expansion of macro âMY_PAGE_KERNEL_EXECâ
pHdr = (PRTMEMHDR)__vmalloc(cb + sizeof(*pHdr), GFP_KERNEL | __GFP_HIGHMEM | __GFP_NOWARN, MY_PAGE_KERNEL_EXEC);
^
/usr/src/linux-headers-4.7.0-1-common/scripts/Makefile.build:294: recipe for target '/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o' failed
make[4]: *** [/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o] Error 1
make[4]: ** Esperando que outros processos terminem.
In file included from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/paravirt_types.h:44:0,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/ptrace.h:71,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/math_emu.h:4,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/processor.h:11,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/cpufeature.h:4,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/thread_info.h:52,
from /usr/src/linux-headers-4.7.0-1-common/include/linux/thread_info.h:54,
from /usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-headers-4.7.0-1-common/include/linux/preempt.h:59,
from /usr/src/linux-headers-4.7.0-1-common/include/linux/spinlock.h:50,
from /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/the-linux-kernel.h:71,
from /var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:31:
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c: In function ârtR0MemObjLinuxConvertProtâ:
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/the-linux-kernel.h:252:42: error: âcpu_has_pgeâ undeclared (first use in this function)
# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
^
/usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/pgtable_types.h:363:36: note: in definition of macro â__pgprotâ
#define __pgprot(x) ((pgprot_t) { (x) } )
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:156:32: note: in expansion of macro âMY_PAGE_KERNEL_EXECâ
pgprot_t fPg = MY_PAGE_KERNEL_EXEC;
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/the-linux-kernel.h:252:42: note: each undeclared identifier is reported only once for each function it appears in
# define MY_PAGE_KERNEL_EXEC __pgprot(cpu_has_pge ? __PAGE_KERNEL_EXEC | _PAGE_GLOBAL : __PAGE_KERNEL_EXEC)
^
/usr/src/linux-headers-4.7.0-1-common/arch/x86/include/asm/pgtable_types.h:363:36: note: in definition of macro â__pgprotâ
#define __pgprot(x) ((pgprot_t) { (x) } )
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:156:32: note: in expansion of macro âMY_PAGE_KERNEL_EXECâ
pgprot_t fPg = MY_PAGE_KERNEL_EXEC;
^
/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.c:169:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/usr/src/linux-headers-4.7.0-1-common/scripts/Makefile.build:294: recipe for target '/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o' failed
make[4]: *** [/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o] Error 1
/usr/src/linux-headers-4.7.0-1-common/scripts/Makefile.build:445: recipe for target '/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv' failed
make[3]: *** [/var/lib/dkms/vboxhost/5.0.26/build/vboxdrv] Error 2
/usr/src/linux-headers-4.7.0-1-common/Makefile:1475: recipe for target '_module_/var/lib/dkms/vboxhost/5.0.26/build' failed
make[2]: *** [_module_/var/lib/dkms/vboxhost/5.0.26/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.7.0-1-686-pae'