VirtualBox

Opened 5 years ago

Closed 5 years ago

#18963 closed defect (duplicate)

VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm GAs fail to build on CentOS-8 Stream -> duplicate of 18917

Reported by: tru_tru Owned by:
Component: other Version: VirtualBox 6.0.12
Keywords: Cc:
Guest type: other Host type: other

Description

Installing VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm work fine, but sudo /sbin/vboxconfig fails with kernel-4.18.0-144.el8.x86_64

/var/log/vbox-setup.log:

...
  gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.memuserkernel-r0drv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/8/include -I./arch/x86/include -I./arch/x86/include/generated   -I./include/drm-backport 
-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__ -Wa
ll -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -DCC_HAVE_ASM_GOTO -mno-sse -mno-mmx -m
no-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 -funit-at-a-time -DCONFIG
_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -
DCONFIG_AS_SHA256_NI=1 -pipe -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-f
ormat-truncation -Wno-format-overflow -Wno-int-in-bool-context -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-
var-tracking-assignments -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflo
w -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-
prefix-map=./= -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_WITH_64_BITS_GUE
STS -DCONFIG_VBOXDRV_AS_MISC -DRT_ARCH_AMD64  -DMODULE  -DKBUILD_BASENAME='"memuserkernel_r0drv_linux"' -DKBUILD_MODNAME='"vboxdrv"' -c -o /tmp/vbox.0/r0drv/linux/.tmp_memuserkernel-r0drv-linux.o /tmp/vbox.0/r0d
rv/linux/memuserkernel-r0drv-linux.c
/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.c: In function ‘VBoxHost_RTR0MemUserIsValidAddr’:
/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.c:72:55: error: macro "access_ok" passed 3 arguments, but takes just 2
     bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
                                                       ^
/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.c:72:16: error: ‘access_ok’ undeclared (first use in this function)
     bool fRc = access_ok(VERIFY_READ, (void *)R3Ptr, 1);
                ^~~~~~~~~
/tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.c:72:16: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [scripts/Makefile.build:313: /tmp/vbox.0/r0drv/linux/memuserkernel-r0drv-linux.o] Error 1
make[1]: *** [Makefile:1547: _module_/tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile-footer.gmk:111: vboxdrv] Error 2

Change History (5)

comment:1 by tru_tru, 5 years ago

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/x86/include/asm/uaccess.h?id=96d4f267e40f9509e8a66e2b39e8b95655617693

has probably been backported in the 4.18.0-144 kernel

I override the "#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)" check in /usr/share/virtualbox/src/vboxhost/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.c and it compiles now.

comment:2 by Akemi Yagi, 5 years ago

Nice find and a fix. Thank you, tru_tru.

comment:3 by Klaus Espenlaub, 5 years ago

Already fixed in the current 6.0.13 test builds (there is an el8 rpm available)...

comment:4 by tru_tru, 5 years ago

marker to the beta page downloads for next time: https://www.virtualbox.org/wiki/Testbuilds

let's close this ticket!

Thx again for looking at it.

comment:5 by paulson, 5 years ago

Resolution: duplicate
Status: newclosed
Summary: VirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm on CentOS-8 StreamVirtualBox-6.0-6.0.12_133076_el8-2.x86_64.rpm GAs fail to build on CentOS-8 Stream -> duplicate of 18917

This was addressed by the changes in ticket #18917. Closing as a duplicate.

Note: See TracTickets for help on using tickets.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette