5.2rc1 Building vboxvideo fails on OL7 .4

Postings relating to old VirtualBox pre-releases
Post Reply
Dar
Posts: 5
Joined: 21. Aug 2012, 11:23

5.2rc1 Building vboxvideo fails on OL7 .4

Post by Dar »

I have OL7.4 installed (with a more recent kernel 4.12.14, but I don't think that is the problem), and I'm unable to install the guest additions because the build of vboxvideo fails.

The error that I'm seeing is:

Code: Select all

mkdir -p /tmp/vbox.2/.tmp_versions ; rm -f /tmp/vbox.2/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.2
  gcc -Wp,-MD,/tmp/vbox.2/.hgsmi_base.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -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 -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 -fno-delete-null-pointer-checks -O2 -Wno-maybe-uninitialized --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -I/lib/modules/4.12.14-1.el7ocl.x86_64/build/include -I/tmp/vbox.2 -Iinclude/drm -D__KERNEL__ -DMODULE  -DMODULE  -DKBUILD_BASENAME='"hgsmi_base"'  -DKBUILD_MODNAME='"vboxvideo"' -c -o /tmp/vbox.2/.tmp_hgsmi_base.o /tmp/vbox.2/hgsmi_base.c
  gcc -Wp,-MD,/tmp/vbox.2/.modesetting.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -I./arch/x86/include/generated/uapi -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -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 -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 -fno-delete-null-pointer-checks -O2 -Wno-maybe-uninitialized --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -I/lib/modules/4.12.14-1.el7ocl.x86_64/build/include -I/tmp/vbox.2 -Iinclude/drm -D__KERNEL__ -DMODULE  -DMODULE  -DKBUILD_BASENAME='"modesetting"'  -DKBUILD_MODNAME='"vboxvideo"' -c -o /tmp/vbox.2/.tmp_modesetting.o /tmp/vbox.2/modesetting.c
/tmp/vbox.2/hgsmi_base.c: In function ‘hgsmi_send_caps_info’:
/tmp/vbox.2/modesetting.c: In function ‘hgsmi_get_mode_hints’:
/tmp/vbox.2/hgsmi_base.c:99:2: error: implicit declaration of function ‘AssertRC’ [-Werror=implicit-function-declaration]
  AssertRC(p->rc);^M
  ^
/tmp/vbox.2/modesetting.c:330:2: error: implicit declaration of function ‘AssertPtr’ [-Werror=implicit-function-declaration]
   // LogFunc(("HGSMIHeapAlloc failed\n"));^M
  ^
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[2]: *** [/tmp/vbox.2/modesetting.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [/tmp/vbox.2/hgsmi_base.o] Error 1
make[1]: *** [_module_/tmp/vbox.2] Error 2
make: *** [vboxvideo] Error 2
These appear to be defined in the iprt.h header that is part of the guest additions tarball, but for some reason it's not being picked up.

I tried manually modifying the files, just to comment out many of the asserts, and it built - but this really needs to be fixed before 5.2 is released.

I've verified that this is still happening with the latest Guest additions ISO (development revision 118335).

Thanks,

Darren.
JoergK
Posts: 30
Joined: 25. Aug 2017, 09:37

Re: 5.2rc1 Building vboxvideo fails on OL7 .4

Post by JoergK »

This thread seems to be related to this one: viewtopic.php?f=15&t=84852

Guest Additions cannot be installed in EL 7.4.
Dar
Posts: 5
Joined: 21. Aug 2012, 11:23

Re: 5.2rc1 Building vboxvideo fails on OL7 .4

Post by Dar »

Quite likely, it is related yes.

BTW, I've been able to get the video driver to work, by downgrading the guest additions to 5.1.28's version. But the mouse pointer doesn't seem to work at all then.
Post Reply