KMK Fails to compile vboxvideo_drm

Discussions related to using the OSE version of VirtualBox.

KMK Fails to compile vboxvideo_drm

Postby DonJuanCherryTempo » 20. Feb 2014, 19:02

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

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 20. Feb 2014, 20:27

Post the configure.log ( located in the top level of your build trunk) as an attachment.
Perryg
Site Moderator
 
Posts: 34373
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

Postby DonJuanCherryTempo » 20. Feb 2014, 21:15

Alright, here it is.
Attachments
configure.log
(23.88 KiB) Downloaded 23 times
DonJuanCherryTempo
 
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 20. Feb 2014, 21:31

OK so now I need to see the remainder of the build log. Post as an attachment.
Perryg
Site Moderator
 
Posts: 34373
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

Postby DonJuanCherryTempo » 20. Feb 2014, 21:43

Here is the output. I didn't see a build log anywhere.
Attachments
kmkoutput.txt
(127.17 KiB) Downloaded 24 times
DonJuanCherryTempo
 
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 21. Feb 2014, 00:03

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   Expand viewCollapse view
VBOX_JAVA_HOME := /usr/lib64/jvm/java-1.6.0-sun-1.6.0 <replace with your version>
Perryg
Site Moderator
 
Posts: 34373
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

Postby DonJuanCherryTempo » 21. Feb 2014, 19:14

Ok. Added the LocalConfig.kmk file with my absolute path to java.

Looks like this:
Code: Select all   Expand viewCollapse view
[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 21 times
DonJuanCherryTempo
 
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 21. Feb 2014, 19:22

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
Perryg
Site Moderator
 
Posts: 34373
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

Postby DonJuanCherryTempo » 21. Feb 2014, 19:48

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

Postby DonJuanCherryTempo » 24. Feb 2014, 17:51

So after reading the FAQ and using: https://forums.virtualbox.org/viewtopic ... 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?
DonJuanCherryTempo
 
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 24. Feb 2014, 18:26

What is the host? not suse/opensuse I hope.
Perryg
Site Moderator
 
Posts: 34373
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

Postby DonJuanCherryTempo » 24. Feb 2014, 18:29

OSX 10.7
DonJuanCherryTempo
 
Posts: 14
Joined: 20. Feb 2014, 18:30

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 24. Feb 2014, 18:38

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?
Perryg
Site Moderator
 
Posts: 34373
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

Postby DonJuanCherryTempo » 24. Feb 2014, 18:45

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

Re: KMK Fails to compile vboxvideo_drm

Postby Perryg » 24. Feb 2014, 18:57

Try this

add the following to your LocalConfig.kmk

VBOX_WITH_LIBVPX :=

See if that makes a difference
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Next

Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest