VirtualBox

Opened 9 months ago

Last modified 8 months ago

#21794 new defect

Error: Building the main VirtualBox module.

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

Description

hi. i try installed vbox 7.0 from apt tool with repo configured and when it building the main module i get error that say:

vboxdrv.sh: failed: Look at /var/log/vbox-setup.log to find out what went wrong.

There were problems setting up VirtualBox.  To re-start the set-up process, run
  /sbin/vboxconfig
as root.  If your system is using EFI Secure Boot you may need to sign the
kernel modules (vboxdrv, vboxnetflt, vboxnetadp, vboxpci) before you can load
them. Please see your Linux system's documentation for more information.

The content of file "/var/log/vbox-setup.log" is this:

Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.10.0-23-amd64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -j4 forced in submake: resetting jobserver mode.
make -C /usr/src/linux-headers-5.10.0-23-amd64 -f /usr/src/linux-headers-5.10.0-23-common/Makefile modules
make -f /usr/src/linux-headers-5.10.0-23-common/scripts/Makefile.build obj=/tmp/vbox.0 \
single-build= \
need-builtin=1 need-modorder=1
   gcc-10 -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.10.0-23-common/include -I./include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.10.0-23-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.10.0-23-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.10.0-23-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-5.10.0-23-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-5.10.0-23-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -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  -DMODULE  -DKBUILD_BASENAME='"SUPDrv_linux"' -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/linux/SUPDrv-linux.o /tmp/vbox.0/linux/SUPDrv-linux.c
   gcc-10 -Wp,-MMD,/tmp/vbox.0/.SUPDrv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.10.0-23-common/include -I./include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.10.0-23-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.10.0-23-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.10.0-23-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-5.10.0-23-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-5.10.0-23-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -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  -DMODULE  -DKBUILD_BASENAME='"SUPDrv"' -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/SUPDrv.o /tmp/vbox.0/SUPDrv.c
   gcc-10 -Wp,-MMD,/tmp/vbox.0/.SUPDrvGip.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.10.0-23-common/include -I./include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.10.0-23-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.10.0-23-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.10.0-23-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-5.10.0-23-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-5.10.0-23-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -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  -DMODULE  -DKBUILD_BASENAME='"SUPDrvGip"' -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/SUPDrvGip.o /tmp/vbox.0/SUPDrvGip.c
   gcc-10 -Wp,-MMD,/tmp/vbox.0/.SUPDrvSem.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-5.10.0-23-common/include -I./include -I/usr/src/linux-headers-5.10.0-23-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-5.10.0-23-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-5.10.0-23-common/include/linux/kconfig.h -include /usr/src/linux-headers-5.10.0-23-common/include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=/usr/src/linux-headers-5.10.0-23-common/= -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mfunction-return=thunk-extern -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=2048 -fstack-protector-strong -Wimplicit-fallthrough -Wno-unused-but-set-variable -Wno-unused-const-variable -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -include /tmp/vbox.0/include/VBox/SUPDrvMangling.h -fno-omit-frame-pointer -fno-pie -Wno-declaration-after-statement -I/usr/src/linux-headers-5.10.0-23-common/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -D__KERNEL__ -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  -DMODULE  -DKBUILD_BASENAME='"SUPDrvSem"' -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/SUPDrvSem.o /tmp/vbox.0/SUPDrvSem.c
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --rethunk --uaccess /tmp/vbox.0/SUPDrvSem.o
  Error: unknown option `rethunk'

 Usage: objtool orc generate [<options>] file.o
    or: objtool orc dump file.o

    -a, --uaccess         enable uaccess checking
    -b, --backtrace       unwind on error
    -d, --duplicate       duplicate validation for vmlinux.o
    -f, --no-fp           Skip frame pointer validation
    -l, --vmlinux         vmlinux.o validation
    -m, --module          Indicates the object will be part of a kernel module
    -r, --retpoline       Validate retpoline assumptions
    -s, --stats           print statistics
    -u, --no-unreachable  Skip 'unreachable instruction' warnings

make[3]: *** [/usr/src/linux-headers-5.10.0-23-common/scripts/Makefile.build:291: /tmp/vbox.0/SUPDrvSem.o] Error 129
make[3]: *** Deleting file '/tmp/vbox.0/SUPDrvSem.o'
make[3]: *** Waiting for unfinished jobs....
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --rethunk --uaccess /tmp/vbox.0/linux/SUPDrv-linux.o
  Error: unknown option `rethunk'

 Usage: objtool orc generate [<options>] file.o
    or: objtool orc dump file.o

    -a, --uaccess         enable uaccess checking
    -b, --backtrace       unwind on error
    -d, --duplicate       duplicate validation for vmlinux.o
    -f, --no-fp           Skip frame pointer validation
    -l, --vmlinux         vmlinux.o validation
    -m, --module          Indicates the object will be part of a kernel module
    -r, --retpoline       Validate retpoline assumptions
    -s, --stats           print statistics
    -u, --no-unreachable  Skip 'unreachable instruction' warnings

make[3]: *** [/usr/src/linux-headers-5.10.0-23-common/scripts/Makefile.build:291: /tmp/vbox.0/linux/SUPDrv-linux.o] Error 129
make[3]: *** Deleting file '/tmp/vbox.0/linux/SUPDrv-linux.o'
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --rethunk --uaccess /tmp/vbox.0/SUPDrvGip.o
  Error: unknown option `rethunk'

 Usage: objtool orc generate [<options>] file.o
    or: objtool orc dump file.o

    -a, --uaccess         enable uaccess checking
    -b, --backtrace       unwind on error
    -d, --duplicate       duplicate validation for vmlinux.o
    -f, --no-fp           Skip frame pointer validation
    -l, --vmlinux         vmlinux.o validation
    -m, --module          Indicates the object will be part of a kernel module
    -r, --retpoline       Validate retpoline assumptions
    -s, --stats           print statistics
    -u, --no-unreachable  Skip 'unreachable instruction' warnings

make[3]: *** [/usr/src/linux-headers-5.10.0-23-common/scripts/Makefile.build:291: /tmp/vbox.0/SUPDrvGip.o] Error 129
make[3]: *** Deleting file '/tmp/vbox.0/SUPDrvGip.o'
   ./tools/objtool/objtool orc generate  --module --no-fp --retpoline --rethunk --uaccess /tmp/vbox.0/SUPDrv.o
  Error: unknown option `rethunk'

 Usage: objtool orc generate [<options>] file.o
    or: objtool orc dump file.o

    -a, --uaccess         enable uaccess checking
    -b, --backtrace       unwind on error
    -d, --duplicate       duplicate validation for vmlinux.o
    -f, --no-fp           Skip frame pointer validation
    -l, --vmlinux         vmlinux.o validation
    -m, --module          Indicates the object will be part of a kernel module
    -r, --retpoline       Validate retpoline assumptions
    -s, --stats           print statistics
    -u, --no-unreachable  Skip 'unreachable instruction' warnings

make[3]: *** [/usr/src/linux-headers-5.10.0-23-common/scripts/Makefile.build:291: /tmp/vbox.0/SUPDrv.o] Error 129
make[3]: *** Deleting file '/tmp/vbox.0/SUPDrv.o'
make[2]: *** [/usr/src/linux-headers-5.10.0-23-common/Makefile:1852: /tmp/vbox.0] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-23-common/Makefile:192: __sub-make] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:133: vboxdrv] Error 2

My OS it's LMDE 5, kernel version it's 5.10.0-23 and EFI Secure Boot it's enble.

any help is welcome. Thanks in advance.

Change History (2)

comment:1 by felix_c, 8 months ago

Luego de la actualizacion del kernel a 5.10.191-1 y "signing" los módulos logre instalar VBox7 sin problemas.

comment:2 by galitsyn, 8 months ago

Hi felix_c,

It looks like misconfigured build environment to me at first sight. Which APT repo do you use and which Linux distribution?

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use