| 1 | Building the main VirtualBox module.
|
|---|
| 2 | Error building the module:
|
|---|
| 3 | make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.8.4-200.fc32.x86_64/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
|
|---|
| 4 | make[1]: warning: -jN forced in submake: disabling jobserver mode.
|
|---|
| 5 | make -f ./scripts/Makefile.build obj=/tmp/vbox.0 \
|
|---|
| 6 | single-build= \
|
|---|
| 7 | need-builtin=1 need-modorder=1
|
|---|
| 8 | gcc -Wp,-MMD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/10/include -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/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -Wno-address-of-packed-member -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -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-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -fcf-protection=none -Wno-packed-not-aligned -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 -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
|
|---|
| 9 | gcc -Wp,-MMD,/tmp/vbox.0/.SUPDrv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/10/include -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/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -Wno-address-of-packed-member -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 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -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 -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -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-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -fcf-protection=none -Wno-packed-not-aligned -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 -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
|
|---|
| 10 | In file included from ./include/asm-generic/percpu.h:7,
|
|---|
| 11 | from ./arch/x86/include/asm/percpu.h:556,
|
|---|
| 12 | from ./arch/x86/include/asm/preempt.h:6,
|
|---|
| 13 | from ./include/linux/preempt.h:78,
|
|---|
| 14 | from ./include/linux/spinlock.h:51,
|
|---|
| 15 | from /tmp/vbox.0/linux/../SUPDrvInternal.h:79,
|
|---|
| 16 | from /tmp/vbox.0/linux/SUPDrv-linux.c:32:
|
|---|
| 17 | /tmp/vbox.0/linux/SUPDrv-linux.c: In function ‘supdrvOSChangeCR4’:
|
|---|
| 18 | /tmp/vbox.0/linux/SUPDrv-linux.c:760:38: error: ‘cpu_tlbstate’ undeclared (first use in this function); did you mean ‘cpuhp_state’?
|
|---|
| 19 | 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
|
|---|
| 20 | | ^~~~~~~~~~~~
|
|---|
| 21 | ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘__pcpu_size_call_return’
|
|---|
| 22 | 318 | typeof(variable) pscr_ret__; \
|
|---|
| 23 | | ^~~~~~~~
|
|---|
| 24 | /tmp/vbox.0/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’
|
|---|
| 25 | 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
|
|---|
| 26 | | ^~~~~~~~~~~~~
|
|---|
| 27 | /tmp/vbox.0/linux/SUPDrv-linux.c:760:38: note: each undeclared identifier is reported only once for each function it appears in
|
|---|
| 28 | 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
|
|---|
| 29 | | ^~~~~~~~~~~~
|
|---|
| 30 | ./include/linux/percpu-defs.h:318:9: note: in definition of macro ‘__pcpu_size_call_return’
|
|---|
| 31 | 318 | typeof(variable) pscr_ret__; \
|
|---|
| 32 | | ^~~~~~~~
|
|---|
| 33 | /tmp/vbox.0/linux/SUPDrv-linux.c:760:24: note: in expansion of macro ‘this_cpu_read’
|
|---|
| 34 | 760 | RTCCUINTREG uOld = this_cpu_read(cpu_tlbstate.cr4);
|
|---|
| 35 | | ^~~~~~~~~~~~~
|
|---|
| 36 | make[2]: *** [scripts/Makefile.build:281: /tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
|
|---|
| 37 | make[2]: *** Waiting for unfinished jobs....
|
|---|
| 38 | ./tools/objtool/objtool orc generate --module --no-fp --retpoline --uaccess /tmp/vbox.0/SUPDrv.o
|
|---|
| 39 | make[1]: *** [Makefile:1756: /tmp/vbox.0] Error 2
|
|---|
| 40 | make: *** [/tmp/vbox.0/Makefile-footer.gmk:117: vboxdrv] Error 2
|
|---|