Skip to main content
Topic: Virtualbox DKMS package fails to rebuild kernel modules (Read 943 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Virtualbox DKMS package fails to rebuild kernel modules

Hello,

After the latest round of updates (this morning), Virtualbox DKMS fails to rebuild kernel modules.

I find the following error in the generated make.log :

Code: [Select]
DKMS (dkms-3.2.2) make.log for vboxhost/7.2.2_OSE for kernel 6.16.7-artix1-1 (x86_64)
Thu Sep 25 08:30:23 CEST 2025

Building module(s)
# command: make -j16 KERNELRELEASE=6.16.7-artix1-1 -C /usr/lib/modules/6.16.7-artix1-1/build M=/var/lib/dkms/vboxhost/7.2.2_OSE/build
make: Entering directory '/usr/lib/modules/6.16.7-artix1-1/build'
make[1]: Entering directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
  CC [M]  vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  vboxdrv/linux/SUPDrv-linux.o
  CC [M]  vboxnetflt/VBoxNetFlt.o
  CC [M]  vboxnetadp/VBoxNetAdp.o
  CC [M]  vboxdrv/SUPDrv.o
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.

I tried to reinstall gcc and virtualbox-host-dkms packages, but I still get the error.

Any idea about what went wrong ?

The reason for needing to rebuild the DKMS virtualbox modules is that I get this error when starting the host manager :
Code: [Select]
Failed to create the VirtualBoxClient COM object.
The application will now terminate.
Callee RC:NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)

Yesterday it was starting just fine.

Re: Virtualbox DKMS package fails to rebuild kernel modules

Reply #1
what's the output of sudo pacman -Fy cc1 ?

artist

Re: Virtualbox DKMS package fails to rebuild kernel modules

Reply #2
I get the following :
Code: [Select]
:: Synchronizing package databases...
 system is up to date
 world                                                                                                        19,5 MiB  39,9 MiB/s 00:00 [------------------------------------------------------------------------------------] 100%
 galaxy                                                                                                        9,1 MiB  16,7 MiB/s 00:01 [------------------------------------------------------------------------------------] 100%
 omniverse is up to date
 extra                                                                                                        46,0 MiB  12,2 MiB/s 00:04 [------------------------------------------------------------------------------------] 100%
system/gcc 15.2.1+r22+gc4e96a094636-1 [installed]
    usr/lib/gcc/x86_64-pc-linux-gnu/15.2.1/cc1
world/aarch64-linux-gnu-gcc 15.1.0-2
    usr/lib/gcc/aarch64-linux-gnu/15.1.0/cc1
world/arm-none-eabi-gcc 14.2.0-1
    usr/lib/gcc/arm-none-eabi/14.2.0/cc1
world/gcc14 14.3.1+r25+g42e99e057bd7-1 [installed]
    usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/cc1
world/gstreamer-docs 1.26.6-2
    usr/share/doc/gstreamer/html/assets/js/search/cc1
world/mingw-w64-gcc 15.2.0-1 (mingw-w64-toolchain mingw-w64)
    usr/lib/gcc/i686-w64-mingw32/15.2.0/cc1
    usr/lib/gcc/x86_64-w64-mingw32/15.2.0/cc1
world/riscv64-linux-gnu-gcc 15.1.0-2 (risc-v)
    usr/lib/gcc/riscv64-linux-gnu/15.1.0/cc1
extra/aarch64-linux-gnu-gcc 15.1.0-2
    usr/lib/gcc/aarch64-linux-gnu/15.1.0/cc1
extra/arm-none-eabi-gcc 14.2.0-1
    usr/lib/gcc/arm-none-eabi/14.2.0/cc1
extra/avr-gcc 15.1.0-1
    usr/lib/gcc/avr/15.1.0/cc1
extra/gcc14 14.3.1+r25+g42e99e057bd7-1 [installed]
    usr/lib/gcc/x86_64-pc-linux-gnu/14.3.1/cc1
extra/gstreamer-docs 1.26.6-2
    usr/share/doc/gstreamer/html/assets/js/search/cc1
extra/lm32-elf-gcc 14.1.0-1
    usr/lib/gcc/lm32-elf/14.1.0/cc1
extra/mingw-w64-gcc 15.2.0-1 (mingw-w64-toolchain mingw-w64)
    usr/lib/gcc/i686-w64-mingw32/15.2.0/cc1
    usr/lib/gcc/x86_64-w64-mingw32/15.2.0/cc1
extra/nds32le-elf-gcc 14.1.0-1
    usr/lib/gcc/nds32le-elf/14.1.0/cc1
extra/or1k-elf-gcc 14.1.0-1
    usr/lib/gcc/or1k-elf/14.1.0/cc1
extra/riscv64-elf-gcc 14.1.0-1
    usr/lib/gcc/riscv64-elf/14.1.0/cc1
extra/riscv64-linux-gnu-gcc 15.1.0-2 (risc-v)
    usr/lib/gcc/riscv64-linux-gnu/15.1.0/cc1
extra/sdcc 4.5.0-2
    usr/lib/sdcc/x86_64-pc-linux-gnu/12.1.0/cc1

Re: Virtualbox DKMS package fails to rebuild kernel modules

Reply #3
Did you try after a reboot.

Do these directories exist?
- /usr/lib/modules/6.16.7-artix1-1/build
- /var/lib/dkms/vboxhost/7.2.2_OSE/build

artist

Re: Virtualbox DKMS package fails to rebuild kernel modules

Reply #4
Both directories exist.
Just to make sure, I rebooted and then removed and installed again all Virtualbox packages (virtualbox, virtualbox-guest-iso and virtualbox-host-dkms).
The same error is raised when DKMS builds the kernel modules :
Code: [Select]
DKMS (dkms-3.2.2) make.log for vboxhost/7.2.2_OSE for kernel 6.16.7-artix1-1 (x86_64)
Thu Sep 25 22:27:42 CEST 2025

Building module(s)
# command: make -j16 KERNELRELEASE=6.16.7-artix1-1 -C /usr/lib/modules/6.16.7-artix1-1/build M=/var/lib/dkms/vboxhost/7.2.2_OSE/build
make: Entering directory '/usr/lib/modules/6.16.7-artix1-1/build'
make[1]: Entering directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
  CC [M]  vboxdrv/linux/SUPDrv-linux.o
  CC [M]  vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  vboxdrv/SUPDrv.o
  CC [M]  vboxnetadp/linux/VBoxNetAdp-linux.o
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
  CC [M]  vboxnetflt/VBoxNetFlt.o
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
  CC [M]  vboxnetadp/VBoxNetAdp.o
  CC [M]  vboxdrv/SUPDrvGip.o
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxnetflt/linux/VBoxNetFlt-linux.o] Error 1
make[4]: *** Waiting for unfinished jobs....
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxdrv/linux/SUPDrv-linux.o] Error 1
compilation terminated.
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
make[4]: *** Waiting for unfinished jobs....
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxnetadp/linux/VBoxNetAdp-linux.o] Error 1
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxdrv/SUPDrv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
  CC [M]  vboxnetflt/SUPR0IdcClient.o
  CC [M]  vboxdrv/SUPDrvSem.o
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxnetflt/VBoxNetFlt.o] Error 1
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxnetadp/VBoxNetAdp.o] Error 1
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxdrv/SUPDrvGip.o] Error 1
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
make[3]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:555: vboxnetadp] Error 2
make[3]: *** Waiting for unfinished jobs....
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxnetflt/SUPR0IdcClient.o] Error 1
make[3]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:555: vboxnetflt] Error 2
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
make[4]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:287: vboxdrv/SUPDrvSem.o] Error 1
make[3]: *** [/usr/lib/modules/6.16.7-artix1-1/build/scripts/Makefile.build:555: vboxdrv] Error 2
make[2]: *** [/usr/lib/modules/6.16.7-artix1-1/build/Makefile:2003: .] Error 2
make[1]: *** [/usr/lib/modules/6.16.7-artix1-1/build/Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/lib/modules/6.16.7-artix1-1/build'

# exit code: 2
# elapsed time: 00:00:00
----------------------------------------------------------------

Interestingly, the module for Xanmod kernel gets built with no issues:
Code: [Select]
DKMS (dkms-3.2.2) make.log for vboxhost/7.2.2_OSE for kernel 6.16.8-x64v3-xanmod1 (x86_64)
Thu Sep 25 22:27:38 CEST 2025

Building module(s)
# command: make -j16 KERNELRELEASE=6.16.8-x64v3-xanmod1 -C /usr/lib/modules/6.16.8-x64v3-xanmod1/build M=/var/lib/dkms/vboxhost/7.2.2_OSE/build LLVM=1
make: Entering directory '/usr/lib/modules/6.16.8-x64v3-xanmod1/build'
make[1]: Entering directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: Debian clang version 19.1.7 (3)
  You are using:           clang version 20.1.8
  CC [M]  vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  vboxdrv/linux/SUPDrv-linux.o
  CC [M]  vboxnetadp/VBoxNetAdp.o
  CC [M]  vboxnetflt/VBoxNetFlt.o
  CC [M]  vboxdrv/SUPDrv.o
  CC [M]  vboxnetflt/SUPR0IdcClient.o
  CC [M]  vboxdrv/SUPDrvGip.o
  CC [M]  vboxnetflt/SUPR0IdcClientComponent.o
  CC [M]  vboxdrv/SUPDrvSem.o
  CC [M]  vboxnetflt/linux/SUPR0IdcClient-linux.o
  CC [M]  vboxdrv/SUPDrvTracer.o
  CC [M]  vboxdrv/SUPLibAll.o
  CC [M]  vboxdrv/common/string/strformatrt.o
  CC [M]  vboxdrv/combined-agnostic1.o
clangclangclangclangclang: : : : : warning: warning: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]warning: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]



  CC [M]  vboxdrv/combined-agnostic2.o
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clangclang: : warning: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]

clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
  CC [M]  vboxdrv/combined-os-specific.o
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
vboxdrv/SUPDrvTracer.c:1274:42: warning: cast from 'void (*)(struct VTGPROBELOC *, uintptr_t, uintptr_t, uintptr_t, uintptr_t, uintptr_t)' (aka 'void (*)(struct VTGPROBELOC *, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long)') to 'PFNRT' (aka 'void (*)(void)') converts to incompatible function type [-Wcast-function-type-strict]
 1274 |             g_pfnSupdrvProbeFireKernel = (PFNRT)pDevExt->pTracerOps->pfnProbeFireKernel;
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
  LD [M]  vboxnetadp/vboxnetadp.o
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
  LD [M]  vboxdrv/vboxdrv.o
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
  LD [M]  vboxnetflt/vboxnetflt.o
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
vboxdrv/vboxdrv.o: warning: objtool: supdrvTracerCommonDeregisterImpl+0x25: relocation to !ENDBR: supdrvTracerProbeFireStub+0x0
vboxdrv/vboxdrv.o: warning: objtool: .export_symbol+0x518: data relocation to !ENDBR: SUPR0TracerFireProbe+0x0
vboxdrv/vboxdrv.o: warning: objtool: g_aFunctions+0xea0: data relocation to !ENDBR: SUPR0TracerFireProbe+0x0
vboxdrv/vboxdrv.o: warning: objtool: g_pfnSupdrvProbeFireKernel+0x0: data relocation to !ENDBR: supdrvTracerProbeFireStub+0x0
  MODPOST Module.symvers
  CC [M]  vboxdrv/vboxdrv.mod.o
  CC [M]  .module-common.o
  CC [M]  vboxnetflt/vboxnetflt.mod.o
  CC [M]  vboxnetadp/vboxnetadp.mod.o
clangclangclang: : : warning: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]warning:

argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
clang: warning: argument '-fbasic-block-sections=labels' is deprecated, use '-fbasic-block-address-map' instead [-Wdeprecated]
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
  LD [M]  vboxnetadp/vboxnetadp.ko
  LD [M]  vboxnetflt/vboxnetflt.ko
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
  BTF [M] vboxnetadp/vboxnetadp.ko
Skipping BTF generation for vboxnetadp/vboxnetadp.ko due to unavailability of vmlinux
  BTF [M] vboxnetflt/vboxnetflt.ko
Skipping BTF generation for vboxnetflt/vboxnetflt.ko due to unavailability of vmlinux
  LD [M]  vboxdrv/vboxdrv.ko
ld.lld: warning: '--lto-basic-block-sections=labels' is deprecated; Please use '--lto-basic-block-address-map' instead
  BTF [M] vboxdrv/vboxdrv.ko
Skipping BTF generation for vboxdrv/vboxdrv.ko due to unavailability of vmlinux
make[1]: Leaving directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
make: Leaving directory '/usr/lib/modules/6.16.8-x64v3-xanmod1/build'

# exit code: 0
# elapsed time: 00:00:03
----------------------------------------------------------------

Re: Virtualbox DKMS package fails to rebuild kernel modules

Reply #5
I saw on the gremlins the kernel 6.16.9.artix1-1 and I installed it.
Now the Virtualbox DKMS module is built without problems:

Code: [Select]
DKMS (dkms-3.2.2) make.log for vboxhost/7.2.2_OSE for kernel 6.16.9-artix1-1 (x86_64)
ven. 26 sept. 2025 18:51:12 CEST

Building module(s)
# command: make -j16 KERNELRELEASE=6.16.9-artix1-1 -C /usr/lib/modules/6.16.9-artix1-1/build M=/var/lib/dkms/vboxhost/7.2.2_OSE/build
make: Entering directory '/usr/lib/modules/6.16.9-artix1-1/build'
make[1]: Entering directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
  CC [M]  vboxdrv/linux/SUPDrv-linux.o
  CC [M]  vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  vboxdrv/SUPDrv.o
  CC [M]  vboxnetflt/VBoxNetFlt.o
  CC [M]  vboxnetadp/VBoxNetAdp.o
  CC [M]  vboxdrv/SUPDrvGip.o
  CC [M]  vboxnetflt/SUPR0IdcClient.o
  CC [M]  vboxnetflt/SUPR0IdcClientComponent.o
  CC [M]  vboxdrv/SUPDrvSem.o
  CC [M]  vboxnetflt/linux/SUPR0IdcClient-linux.o
  CC [M]  vboxdrv/SUPDrvTracer.o
  CC [M]  vboxdrv/SUPLibAll.o
  CC [M]  vboxdrv/common/string/strformatrt.o
  CC [M]  vboxdrv/combined-agnostic1.o
  CC [M]  vboxdrv/combined-agnostic2.o
  CC [M]  vboxdrv/combined-os-specific.o
  LD [M]  vboxnetadp/vboxnetadp.o
  LD [M]  vboxnetflt/vboxnetflt.o
  LD [M]  vboxdrv/vboxdrv.o
vboxdrv/vboxdrv.o: warning: objtool: supdrvTracerCommonDeregisterImpl+0x3d: relocation to !ENDBR: supdrvTracerProbeFireStub+0x0
vboxdrv/vboxdrv.o: warning: objtool: .export_symbol+0x518: data relocation to !ENDBR: SUPR0TracerFireProbe+0x0
vboxdrv/vboxdrv.o: warning: objtool: g_aFunctions+0xea0: data relocation to !ENDBR: SUPR0TracerFireProbe+0x0
vboxdrv/vboxdrv.o: warning: objtool: g_pfnSupdrvProbeFireKernel+0x0: data relocation to !ENDBR: supdrvTracerProbeFireStub+0x0
  MODPOST Module.symvers
  CC [M]  vboxdrv/vboxdrv.mod.o
  CC [M]  .module-common.o
  CC [M]  vboxnetflt/vboxnetflt.mod.o
  CC [M]  vboxnetadp/vboxnetadp.mod.o
  LD [M]  vboxnetadp/vboxnetadp.ko
  LD [M]  vboxnetflt/vboxnetflt.ko
  BTF [M] vboxnetadp/vboxnetadp.ko
  BTF [M] vboxnetflt/vboxnetflt.ko
  LD [M]  vboxdrv/vboxdrv.ko
  BTF [M] vboxdrv/vboxdrv.ko
make[1]: Leaving directory '/var/lib/dkms/vboxhost/7.2.2_OSE/build'
make: Leaving directory '/usr/lib/modules/6.16.9-artix1-1/build'

# exit code: 0
# elapsed time: 00:00:03
----------------------------------------------------------------

Re: Virtualbox DKMS package fails to rebuild kernel modules

Reply #6
Unfortunately this is still not sufficient to address the issue with the error thrown when launching Virtualbox GUI console.

Code: [Select]
Failed to create the VirtualBoxClient COM object.
The application will now terminate.
Callee RC:NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154)

When removing the Virtualbox pakage from official repository (world) and installing the AUR package , the GUI console starts and works normally.

My guess is that the official package probably suffers from a bad dependency  ?