Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtualbox guest additions install fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Excal__
n00b
n00b


Joined: 10 Dec 2014
Posts: 2

PostPosted: Wed Dec 10, 2014 8:16 pm    Post subject: Virtualbox guest additions install fails Reply with quote

I'm a total newbie with Gentoo so please be patient :)

I installed Gentoo minimal install with genkernel as a Virtualbox guest (Windows 7 host). Everything seemed to go fine with installation. Now I'm trying to figure out how install desktop environment (Openbox), but I'm stuck with it. I'm having trouble installing Virtualbox Guest Additions. When I emerge virtualbox-guest-additions package everything goes fine except I get errors with video drivers:

Code:
kmk_builtin_append -n "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/edid.o.dep" "" "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/src/VBox/Additions/x11/vboxvideo/edid.c:" ""
  C vboxvideo_drv_system - {C}/vboxvideo_dri.c
gcc -c -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wno-long-long -Wno-long-long -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Werror-implicit-function-declaration   -Wno-variadic-macros -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fPIC -std=c99 -Wno-conversion -Wno-unused-parameter -Wno-variadic-macros  -include xorg-server.h -m64 -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/src/VBox/Runtime/include -I/usr/include/x11 -I/usr/include/X11/dri -I/usr/include/libdrm -I/usr/include/xorg -I/usr/include/pixman-1 -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/dtrace -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DIN_RING3 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DIN_GUEST -DIN_GUEST_R3 -DIN_RT_R3 -DGC_ARCH_BITS=64 -DPIC -DLOG_TO_BACKDOOR -DVBOX_GUESTR3XORGMOD -DRTMEM_NO_WRAP_TO_EF_APIS -D_XSERVER64 -DIN_MODULE -DXORG_7X -DRENDER=1 -DIN_RT_STATIC -DVBOXVIDEO_13 -DVBOX_DRI -DNO_ANSIC -DPCIACCESS -DXSERVER_LIBPCIACCESS -DLOG_USE_C99 -DRT_WITHOUT_EXEC_ALLOC -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_dri.o.dep -Wp,-MT,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_dri.o -Wp,-MP -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_dri.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c
kmk_builtin_append -n "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_dri.o.dep" "" "/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c:" ""
  LD vboxvideo_drv_system
kmk_builtin_rm -f -- /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_drv_system.dep /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_drv_system.so  /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_drv_system.map
gcc -shared                -fPIC  -Wl,-z,noexecstack -Wl,--as-needed -m64   -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_drv_system.so -Wl,-soname=vboxvideo_drv_system.so /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/pointer.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/setmode.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxutils.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vbva.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/src/VBox/Additions/common/VBoxVideo/HGSMIBase.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/src/VBox/Additions/common/VBoxVideo/Modesetting.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/src/VBox/Additions/common/VBoxVideo/VBVABase.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/src/VBox/GuestHost/HGSMI/HGSMICommon.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/src/VBox/Runtime/common/alloc/heapsimple.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/src/VBox/Runtime/common/alloc/heapoffset.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/edid.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_dri.o     /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/lib/additions/VBoxGuestR3LibShared.a   /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/lib/additions/RuntimeGuestR3Mini.a   /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/lib/additions/VBoxGuestR3LibShared.a   /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/lib/additions/RuntimeGuestR3Mini.a
  INST vboxvideo_drv_system => {O}/bin/additions/vboxvideo_drv_system.so
kmk_builtin_install --hard-link-files-when-possible    -- /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/obj/vboxvideo_drv_system/vboxvideo_drv_system.so /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24/out/linux.amd64/release/bin/additions/vboxvideo_drv_system.so
 * Preparing vboxvideo module
make HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- 'LDFLAGS=-m elf_x86_64' KERN_DIR=/usr/src/linux KERNOUT=/lib/modules/3.16.5-gentoo/build all
grep: /usr/src/linux/include/linux/version.h: No such file or directory
make KBUILD_VERBOSE=1 -C /usr/src/linux SUBDIRS=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm SRCROOT=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm modules
make[1]: Entering directory '/usr/src/linux-3.16.5-gentoo'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (      \
echo >&2;                     \
echo >&2 "  ERROR: Kernel configuration is invalid.";      \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";   \
echo >&2 ;                     \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/.vboxvideo_drm.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/include -I./arch/x86/include -Iarch/x86/include/generated  -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/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 -m64 -mno-mmx -mno-sse -mno-80387 -mno-fp-ret-in-387 -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_CRC32=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 -fno-delete-null-pointer-checks -Os -Wno-maybe-uninitialized -Wframe-larger-than=2048 -fno-stack-protector -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-assignments -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -fshort-wchar -I/usr/src/linux/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/ -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/include -I/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE -DIN_GUEST_R0 -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxvideo_drm)"  -D"KBUILD_MODNAME=KBUILD_STR(vboxvideo)" -c -o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/.tmp_vboxvideo_drm.o /var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:159:5: error: unknown field 'pci_driver' specified in initializer
     .pci_driver =
     ^
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:160:5: warning: braces around scalar initializer [enabled by default]
     {
     ^
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:160:5: warning: (near initialization for 'driver.bus') [enabled by default]
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:161:9: error: field name not in record or union initializer
         .name = DRIVER_NAME,
         ^
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:161:9: error: (near initialization for 'driver.bus')
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:161:9: warning: initialization from incompatible pointer type [enabled by default]
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:161:9: warning: (near initialization for 'driver.bus') [enabled by default]
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:162:9: error: field name not in record or union initializer
         .id_table = pciidlist,
         ^
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:162:9: error: (near initialization for 'driver.bus')
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:162:9: warning: excess elements in scalar initializer [enabled by default]
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:162:9: warning: (near initialization for 'driver.bus') [enabled by default]
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c: In function 'vboxvideo_init':
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:184:5: error: implicit declaration of function 'drm_init' [-Werror=implicit-function-declaration]
     return drm_init(&driver);
     ^
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c: In function 'vboxvideo_exit':
/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.c:193:5: error: implicit declaration of function 'drm_exit' [-Werror=implicit-function-declaration]
     drm_exit(&driver);
     ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.o' failed
make[2]: *** [/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm/vboxvideo_drm.o] Error 1
Makefile:1333: recipe for target '_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm' failed
make[1]: *** [_module_/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm] Error 2
make[1]: Leaving directory '/usr/src/linux-3.16.5-gentoo'
Makefile:225: recipe for target 'vboxvideo' failed
make: *** [vboxvideo] Error 2
 * ERROR: x11-drivers/xf86-video-virtualbox-4.2.24::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-virtualbox-4.2.24::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-virtualbox-4.2.24::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm'
 * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24'

>>> Failed to emerge x11-drivers/xf86-video-virtualbox-4.2.24, Log file:

>>>  '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/temp/build.log'

 * Messages for package x11-drivers/xf86-video-virtualbox-4.2.24:

 * ERROR: x11-drivers/xf86-video-virtualbox-4.2.24::gentoo failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/xf86-video-virtualbox-4.2.24::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/xf86-video-virtualbox-4.2.24::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/vboxvideo_drm'
 * S: '/var/tmp/portage/x11-drivers/xf86-video-virtualbox-4.2.24/work/VirtualBox-4.2.24'


This goes totally over my head. I can see it's somehow angry about kernel configuration, but I'm not sure what this actually means. I looked around in kernel configuration (make menuconfig), but didn't find anything about virtualbox.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 6972
Location: Saint Amant, Acadiana

PostPosted: Wed Dec 10, 2014 11:56 pm    Post subject: Reply with quote

You are not alone, see https://forums.gentoo.org/viewtopic-t-1004062.html
You could install an earlier version.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Excal__
n00b
n00b


Joined: 10 Dec 2014
Posts: 2

PostPosted: Thu Dec 11, 2014 8:24 pm    Post subject: Reply with quote

Jaglover wrote:
You are not alone, see https://forums.gentoo.org/viewtopic-t-1004062.html
You could install an earlier version.


Installing earlier version solved the problem. Thanks!
Back to top
View user's profile Send private message
oblivion_vr
n00b
n00b


Joined: 19 May 2013
Posts: 22

PostPosted: Mon Dec 22, 2014 8:26 am    Post subject: Reply with quote

Excal__ wrote:
Jaglover wrote:
You are not alone, see https://forums.gentoo.org/viewtopic-t-1004062.html
You could install an earlier version.


Installing earlier version solved the problem. Thanks!


I am facing a similar problem.
How did you install a previous version?
Back to top
View user's profile Send private message
eliddell
n00b
n00b


Joined: 16 Nov 2004
Posts: 28

PostPosted: Mon Dec 29, 2014 9:05 pm    Post subject: Reply with quote

You specify a package version using "emerge =[package]-[version]". For instance, "emerge =virtualbox-guest-additions-4.3.18" (that particular version of the package installed for me successfully earlier today, for what it's worth). If it grumps at you about keywords and/or masks, check the "Working with portage" section of the handbook (under "Mixing stable with testing" and "Masked packages").
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum