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 :
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:
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
----------------------------------------------------------------