Page 1 of 3

KMK Fails to compile vboxvideo_drm

Posted: 20. Feb 2014, 19:02
by DonJuanCherryTempo
Hello all,

I am trying to build Virtualbox 4.3.6 from source on Scientific Linux. KMK is failing when it starts to compile vboxvideo_drm.

I ran the ./configure with the --disable-libvpx (SL does not support the version needed for VBox) and the --enable-vde options. It came back clean and ready to move on. I then preceded to run source env.sh and then kmk.
Here is a snippet from the output of the terminal right before it fails/stops:

Code: Select all

kBuild: Linking vboxsf
kBuild: Compiling vboxvideo_drm - /home/user/VirtualBox-4.3.6/src/VBox/Additions/linux/drm/vboxvideo_drm.c
In file included from /lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/drm/drmP.h:53,
                 from /home/user/VirtualBox-4.3.6/src/VBox/Additions/linux/drm/vboxvideo_drm.c:79:
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h: In function ‘pci_hp_register’:
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: implicit declaration of function ‘KBUILD_STR’ [-Wimplicit-function-declaration]
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: ‘vboxvideo’ undeclared (first use in this function)
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: (Each undeclared identifier is reported only once
/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/pci_hotplug.h:181: error: for each function it appears in.)
kmk: *** [/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o] Error 1
The failing command:
@gcc -c -O2 -nostdinc -iwithprefix include -include /lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/linux/kconfig.h -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wstrict-prototypes -Wno-pointer-sign -Wno-sign-compare -fdiagnostics-show-option -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -include /home/user/VirtualBox-4.3.6/include/VBox/VBoxGuestMangling.h -fshort-wchar -m64 -mno-red-zone -mcmodel=kernel -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-reorder-blocks -ffreestanding -fno-asynchronous-unwind-tables -funit-at-a-time -Wno-sign-compare -Wdeclaration-after-statement -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/asm-i386/mach-default -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/asm-x86/mach-default -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/drm -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/asm/mach-default -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/generated -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/arch/x86/include/generated/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include/generated/uapi -I/lib/modules/2.6.32-431.5.1.el6.x86_64/build/include -I/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/dtrace -I/home/user/VirtualBox-4.3.6/include -I/home/user/VirtualBox-4.3.6/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_DEBUGGER -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/opt/VirtualBox\" -DRTPATH_APP_PRIVATE_ARCH=\"/opt/VirtualBox\" -DRTPATH_SHARED_LIBS=\"/opt/VirtualBox\" -DRTPATH_APP_DOCS=\"/opt/VirtualBox\" -DIN_RING0 -DIN_RT_R0 -DHC_ARCH_BITS=64 -DGC_ARCH_BITS=64 -D__KERNEL__ -DMODULE -DIN_GUEST -DIN_GUEST_R0 -DMODULE -DIN_RT_R0 -DVBOXGUEST -DVBOX_WITH_HGCM -DKBUILD_MODNAME=KBUILD_STR\(vboxvideo\) -DKBUILD_BASENAME=KBUILD_STR\(vboxvideo\) -DDEBUG_HASH=2 -DDEBUG_HASH2=3 -DRT_NO_EXPORT_SYMBOL -Wp,-MD,/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o.dep -Wp,-MT,/home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o -Wp,-MP -o /home/user/VirtualBox-4.3.6/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o /home/user/VirtualBox-4.3.6/src/VBox/Additions/linux/drm/vboxvideo_drm.c
I am a bit lost as to how I need to troubleshoot this. I have not been able to find any working solutions through google and have ran out of ideas.

Any help is greatly appreciated and thank you in advance.

VirtualBox version (that is the one I am trying to build): 4.3.6
Kernel Version: Linux 2.6.32-431.5.1.el6.x86_64

Re: KMK Fails to compile vboxvideo_drm

Posted: 20. Feb 2014, 20:27
by Perryg
Post the configure.log ( located in the top level of your build trunk) as an attachment.

Re: KMK Fails to compile vboxvideo_drm

Posted: 20. Feb 2014, 21:15
by DonJuanCherryTempo
Alright, here it is.

Re: KMK Fails to compile vboxvideo_drm

Posted: 20. Feb 2014, 21:31
by Perryg
OK so now I need to see the remainder of the build log. Post as an attachment.

Re: KMK Fails to compile vboxvideo_drm

Posted: 20. Feb 2014, 21:43
by DonJuanCherryTempo
Here is the output. I didn't see a build log anywhere.

Re: KMK Fails to compile vboxvideo_drm

Posted: 21. Feb 2014, 00:03
by Perryg
Best I can tell VBox is not finding your java package.

You may need to create a file called LocalConfig.kmk in the top level of your build and add the Absolute path. See example below.

Code: Select all

VBOX_JAVA_HOME := /usr/lib64/jvm/java-1.6.0-sun-1.6.0 <replace with your version>

Re: KMK Fails to compile vboxvideo_drm

Posted: 21. Feb 2014, 19:14
by DonJuanCherryTempo
Ok. Added the LocalConfig.kmk file with my absolute path to java.

Looks like this:

Code: Select all

[root@localhost VirtualBox-4.3.6]# cat LocalConfig.kmk 
VBOX_JAVA_HOME := /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64
But still getting the same error (see attachment)

Re: KMK Fails to compile vboxvideo_drm

Posted: 21. Feb 2014, 19:22
by Perryg
Are you doing all of this as root? I don't do it that way and VirtualBox was not really designed for that.

Have a look in the FAQ section and building VirtualBox

Re: KMK Fails to compile vboxvideo_drm

Posted: 21. Feb 2014, 19:48
by DonJuanCherryTempo
I have tried it both with root(sudo) and without. Both fail at the same point...

I'll take a look at the FAQ and try to build it from scratch again. Thank you for your help thus far.

Re: KMK Fails to compile vboxvideo_drm

Posted: 24. Feb 2014, 17:51
by DonJuanCherryTempo
So after reading the FAQ and using: viewtopic.php?f=31&t=35892 as a guideline. It still breaks at the same point.

Another thing that I forgot to mention on my original post (sorry) is that I am trying to build this inside of a Virtual Machine. Guest Additions is installed and all the required packages listed in that howto.

Any more ideas?

Re: KMK Fails to compile vboxvideo_drm

Posted: 24. Feb 2014, 18:26
by Perryg
What is the host? not suse/opensuse I hope.

Re: KMK Fails to compile vboxvideo_drm

Posted: 24. Feb 2014, 18:29
by DonJuanCherryTempo
OSX 10.7

Re: KMK Fails to compile vboxvideo_drm

Posted: 24. Feb 2014, 18:38
by Perryg
I do know that building in a guest does work on Linux hosts, except suse of course.
IIRC SL is based off redhat, have you tried a Debian based guest to see if it will build?

Re: KMK Fails to compile vboxvideo_drm

Posted: 24. Feb 2014, 18:45
by DonJuanCherryTempo
I have not tried to build on a Debian guest. I was running through build in a vm before I moved to a real server running SL.

Re: KMK Fails to compile vboxvideo_drm

Posted: 24. Feb 2014, 18:57
by Perryg
Try this

add the following to your LocalConfig.kmk

VBOX_WITH_LIBVPX :=

See if that makes a difference