KMK Fails to compile vboxvideo_drm

Discussions related to using the OSE version of VirtualBox.
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

KMK Fails to compile vboxvideo_drm

Post 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
Last edited by DonJuanCherryTempo on 24. Feb 2014, 18:58, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post by Perryg »

Post the configure.log ( located in the top level of your build trunk) as an attachment.
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post by DonJuanCherryTempo »

Alright, here it is.
Attachments
configure.log
(23.88 KiB) Downloaded 44 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post by Perryg »

OK so now I need to see the remainder of the build log. Post as an attachment.
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post by DonJuanCherryTempo »

Here is the output. I didn't see a build log anywhere.
Attachments
kmkoutput.txt
(127.17 KiB) Downloaded 43 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post 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>
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post 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)
Attachments
kmkerror.txt
(9.22 KiB) Downloaded 41 times
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post 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
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post 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.
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post 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?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post by Perryg »

What is the host? not suse/opensuse I hope.
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post by DonJuanCherryTempo »

OSX 10.7
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post 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?
DonJuanCherryTempo
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Post 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.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: KMK Fails to compile vboxvideo_drm

Post by Perryg »

Try this

add the following to your LocalConfig.kmk

VBOX_WITH_LIBVPX :=

See if that makes a difference
Post Reply