Page 1 of 1

centos 7 fails installing Guest Additions

Posted: 10. Jul 2014, 18:33
by pidloop
Hello. For fun today I tried installing Centos 7 on VB 4.3.12 r93733 on host Mac OS X.9.4. All went well until I tried to install the Guest Additions. As root I ran the script VBoxLinuxAdditions.run. It failed building the main Guest Addition module. I know Centos 7 is not supported but wanted to post what I found FWIW. The last few lines of the log contain a syntax error which seems to be the cause of the failure. Thanks all.

Code: Select all

  gcc -Wp,-MD,/tmp/vbox.0/r0drv/linux/.memobj-r0drv-linux.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.2/include -I/usr/src/kernels/3.10.0-123.4.2.el7.x86_64/arch/x86/include -Iarch/x86/include/generated  -Iinclude -I/usr/src/kernels/3.10.0-123.4.2.el7.x86_64/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/kernels/3.10.0-123.4.2.el7.x86_64/include/uapi -Iinclude/generated/uapi -include /usr/src/kernels/3.10.0-123.4.2.el7.x86_64/include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -O2 -m64 -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -include /tmp/vbox.0/include/VBox/VBoxGuestMangling.h -I/lib/modules/3.10.0-123.4.2.el7.x86_64/build/include -I/tmp/vbox.0/ -I/tmp/vbox.0/include -I/tmp/vbox.0/r0drv/linux -I/tmp/vbox.0/vboxguest/ -I/tmp/vbox.0/vboxguest/include -I/tmp/vbox.0/vboxguest/r0drv/linux -D__KERNEL__ -DMODULE -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(memobj_r0drv_linux)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxguest)" -c -o /tmp/vbox.0/r0drv/linux/.tmp_memobj-r0drv-linux.o /tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function â~@~XrtR0MemObjNativeMapUserâ~@~Y:
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1542:26: error: â~@~Xstruct mm_structâ~@~Y has no member named â~@~Xnuma_next_resetâ~@~Y
                 pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL;
                          ^
make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2

Re: centos 7 fails installing Guest Additions

Posted: 10. Jul 2014, 22:56
by noteirak
Try 4.3.14_RC1 which has a fix for REHL7 and possibly CentOS7 by extension for the guest additions.

Re: centos 7 fails installing Guest Additions

Posted: 25. Jul 2014, 07:41
by Inky22
Try 4.3.14_RC1 which has a fix for REHL7 and possibly CentOS7 by extension for the guest additions.
NO. To the OP, please follow my reply in this thread and do not install RC1. I have installed Guest Addition on my CentOS 7 just follow my replies as I will be helping other people in that thread.

viewtopic.php?f=3&t=62485&p=294219#p294219