VirtualBox

Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#21961 closed defect (duplicate)

vboxdrv Compiler error on 7.0.14-161095-Ubuntu on 22.04 6.5.0-14-generic

Reported by: jfowlie Owned by:
Component: installer Version: VirtualBox-7.0.14
Keywords: Cc: jfowlie
Guest type: other Host type: Linux

Description

After processing upgrades today, I've been unable to get VirtualBox running as the vboxdrv will not compile. I cannot get any guests to start.

I'm using the virtualbox.org repo.

Attempting to downgrade to 7.0.12 did not fix the issue either.

From the logs:


Building the main VirtualBox module. Error building the module: make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.5.0-14-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j8 modules make[1]: warning: -j8 forced in submake: resetting jobserver mode. warning: the compiler differs from the one used to build the kernel

The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using:

make -f ./scripts/Makefile.build obj=/tmp/vbox.0 need-builtin=1 need-modorder=1 # cmd_mod /tmp/vbox.0/vboxdrv.mod

printf '%s

' linux/SUPDrv-linux.o SUPDrv.o SUPDrvGip.o SUPDrvSem.o SUPDrvTracer.o SUPLibAll.o common/string/strformatrt.o combined-agnostic1.o combined-agnostic2.o combined-os-specific.o | awk '!x[$0]++ { print("/tmp/vbox.0/"$0) }' > /tmp/vbox.0/vboxdrv.mod # CC [M] /tmp/vbox.0/linux/SUPDrv-linux.o

gcc-12 -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -DKERNEL -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -mno-80387 -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -O2 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -falign-functions=16 -Wvla -Wno-pointer-sign -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -g -gdwarf-5 -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I./include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -DKERNEL -DMODULE -DRT_WITHOUT_PRAGMA_ONCE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -DVBOX_WITH_HARDENING -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX_WITHOUT_EFLAGS_AC_SET_IN_VBOXDRV -DIPRT_WITHOUT_EFLAGS_AC_PRESERVING -DVBOX_WITH_64_BITS_GUESTS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64 -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"SUPDrv_linux"' -DKBUILD_MODNAME='"vboxdrv"' -DKBUILD_MODNAME=kmod_vboxdrv -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /tmp/vbox.0/linux/SUPDrv-linux.o

/bin/sh: 1: gcc-12: not found make[2]: * [scripts/Makefile.build:251: /tmp/vbox.0/linux/SUPDrv-linux.o] Error 127 make[2]: * Waiting for unfinished jobs.... make[1]: * [Makefile:2037: /tmp/vbox.0] Error 2 make: * vboxdrv Error 2


Retrying the compiling by running /sbinsbin/vboxconfig results in the same error.

I've looked around to see if this error has been reported for this release and have not been able to find anything. My apologies if I've missed it. Other similar reports for prior releases resulted in a new minor version release to fix the issue, so I don't think my limited skills will be of use in finding the solution.

Thanks! --J

Change History (2)

comment:1 by galitsyn, 5 months ago

Resolution: duplicate
Status: newclosed

Hi jfowlie,

I think this issue needs to be submitted to Ubuntu guys. I do not see it has something to do w/ VBox itself. Just install gcc-12 as suggested in ticket below.

Duplicate of #21957.

comment:2 by jfowlie, 5 months ago

OK... will do.

Thanks for the quick response!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use