KMK Fails to compile vboxvideo_drm on CentOS 6.5

Discussions related to using the OSE version of VirtualBox.

KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby 45456451 » 7. Jul 2014, 10:05

Hello All:
I am trying to Build Virtualbox 4.3.12 from source on CentOS6.5(AMD64),KMK is failing when it starts to compile vboxvideo_drm.

I ran the ./configure --with-ow-dir=/home/watcom/ , 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
kmk_builtin_chmod a-x /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/VBoxDDGC/VBoxDDGC.debug
objcopy --strip-debug --strip-unneeded --add-gnu-debuglink=/data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/VBoxDDGC/VBoxDDGC.debug /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/VBoxDDGC/VBoxDDGC.gc
kBuild: Compiling VBoxNetAdp - /data/tools/VirtualBox-4.3.12/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c
kBuild: Compiling VBoxPci - /data/tools/VirtualBox-4.3.12/src/VBox/HostDrivers/VBoxPci/VBoxPci.c
kBuild: Compiling VBoxPci - /data/tools/VirtualBox-4.3.12/src/VBox/HostDrivers/VBoxPci/linux/VBoxPci-linux.c
kBuild: Compiling VBoxGuest - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/common/VBoxGuest/VBoxGuest-linux.c
kBuild: Compiling VBoxGuest - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
kBuild: Compiling VBoxGuest - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/common/VBoxGuest/VBoxGuest2.cpp
kBuild: Linking vboxvideo_drv
kBuild: Linking vboxmouse_drv
objcopy --keep-global-symbol vboxmouseModuleData /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxmouse_drv/vboxmouse_drv.o /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxmouse_drv/vboxmouse_drv.o-objcopy
kmk_builtin_mv -f /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxmouse_drv/vboxmouse_drv.o-objcopy /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxmouse_drv/vboxmouse_drv.o
kBuild: Compiling vboxsf - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/sharedfolders/vfsmod.c
objcopy --keep-global-symbol vboxvideoModuleData /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drv/vboxvideo_drv.o /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drv/vboxvideo_drv.o-objcopy
kmk_builtin_mv -f /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drv/vboxvideo_drv.o-objcopy /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drv/vboxvideo_drv.o
kBuild: Compiling vboxsf - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/sharedfolders/utils.c
kBuild: Compiling vboxsf - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/sharedfolders/dirops.c
kBuild: Compiling vboxsf - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/sharedfolders/lnkops.c
kBuild: Compiling vboxsf - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/sharedfolders/regops.c
kBuild: Compiling vboxvideo_drm - /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/drm/vboxvideo_drm.c
In file included from /lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/drm/drmP.h:53,
                 from /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/drm/vboxvideo_drm.c:79:
/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/linux/pci_hotplug.h: 在函数‘pci_hp_register’中:
/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/linux/pci_hotplug.h:181: 错误:隐式声明函数‘KBUILD_STR’ [-Wimplicit-function-declaration]
/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/linux/pci_hotplug.h:181: 错误:‘vboxvideo’未声明(在此函数内第一次使用)
/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/linux/pci_hotplug.h:181: 错误:(即使在一个函数内多次出现,每个未声明的标识符在其
/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/linux/pci_hotplug.h:181: 错误:所在的函数内也只报告一次。)
kBuild: Pass - Other Stuff
kBuild: Pre-processing [1] user_Glossary.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Glossary.xml
kBuild: Pre-processing [1] user_Frontends.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Frontends.xml
kBuild: Pre-processing [1] user_Installation.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Installation.xml
kBuild: Pre-processing [1] user_GuestAdditions.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_GuestAdditions.xml
kBuild: Pre-processing [1] user_Introduction.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Introduction.xml
kBuild: Pre-processing [1] user_KnownIssues.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_KnownIssues.xml
kBuild: Pre-processing [1] user_PrivacyPolicy.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_PrivacyPolicy.xml
kBuild: Pre-processing [1] user_Security.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Security.xml
kBuild: Pre-processing [1] user_Technical.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Technical.xml
kBuild: Pre-processing [1] user_ThirdParty.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_ThirdParty.xml
kBuild: Pre-processing [1] user_Troubleshooting.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Troubleshooting.xml
kBuild: Pre-processing [1] user_VirtualBoxAPI.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_VirtualBoxAPI.xml
kBuild: Pre-processing [1] user_Storage.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Storage.xml
kBuild: Pre-processing [1] user_Networking.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_Networking.xml
kBuild: Pre-processing [3] user_ChangeLog.xml to /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/manual/fr_FR/user_ChangeLog.xml
/data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/testcase/tstShflSizes quiet
tstShflSizes: TESTING
tstShflSizes: SUCCESS
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/COPYING.LIB
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/keyboard.c
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/keyboard-layouts.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/keyboard-list.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/keyboard-tables.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/keyboard-types.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/Makefile
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/misc-staging/VBoxKeyboard/VBox/VBoxKeyboard.h
kBuild: Packing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/VBoxKeyboard-Tarball/vboxkeyboard.tar.bz2
kBuild: Pass - Staging
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/samples/tstVBoxAPIXPCOM.cpp
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/samples/Makefile
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/samples/tstCAPIGlue.c
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/samples/Makefile
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/glue/VBoxCAPIGlue.c
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v2_2.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v3_0.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v3_1.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v3_2.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v4_0.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v4_1.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/c/include/VBoxCAPI_v4_2.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/cbinding/VBoxXPCOMCGlue.c
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/cbinding/VBoxXPCOMCGlue.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v2_2.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v3_0.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v3_1.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v3_2.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v4_0.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v4_1.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v4_2.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/VBoxCAPI_v4_3.h
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/bindings/VirtualBox.xidl
kBuild: Installing /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/bin/sdk/installer/vboxapi/__init__.py
kBuild: xsltproc Python constants - /data/tools/VirtualBox-4.3.12/src/VBox/Main/glue/constants-python.xsl
kmk: *** [/data/tools/VirtualBox-4.3.12/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.20.3.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 /data/tools/VirtualBox-4.3.12/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.20.3.el6.x86_64/build/include -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/asm-i386/mach-default -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/asm-x86/mach-default -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/drm -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/arch/x86/include -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/arch/x86/include/asm/mach-default -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/arch/x86/include/uapi -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/arch/x86/include/generated -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/arch/x86/include/generated/uapi -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/uapi -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include/generated/uapi -I/lib/modules/2.6.32-431.20.3.el6.x86_64/build/include -I/data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drm/dtrace -I/data/tools/VirtualBox-4.3.12/include -I/data/tools/VirtualBox-4.3.12/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,/data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o.dep -Wp,-MT,/data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o -Wp,-MP -o /data/tools/VirtualBox-4.3.12/out/linux.amd64/release/obj/vboxvideo_drm/vboxvideo_drm.o /data/tools/VirtualBox-4.3.12/src/VBox/Additions/linux/drm/vboxvideo_drm.c
kmk: *** Waiting for unfinished jobs....
kmk: *** Exiting with status 2

CentOS kernel is: 2.6.32-431.20.3.el6.x86_64 #1 SMP Thu Jun 19 21:14:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50

Re: KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby Perryg » 7. Jul 2014, 14:40

Post the configure.log (as an attachment)

Moving to OSE.
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 on CentOS 6.5

Postby 45456451 » 8. Jul 2014, 04:29

Alright,here is it!
Attachments
configure.log
(25.16 KiB) Downloaded 25 times
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50

Re: KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby 45456451 » 8. Jul 2014, 04:40

here is config and kmk log
Attachments
config&kmk.log
(91.89 KiB) Downloaded 22 times
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50

Re: KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby Perryg » 8. Jul 2014, 14:09

Code: Select all   Expand viewCollapse view
No package 'vpx' found


Install libvpx-dev
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 on CentOS 6.5

Postby 45456451 » 9. Jul 2014, 08:03

i was installed the libxpx-devel,but the error still
and i was used --disable-libvpx when configure,but no help for kmk,the error still
Attachments
virtualbox.log
(40.97 KiB) Downloaded 17 times
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50

Re: KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby Perryg » 9. Jul 2014, 14:47

The file is corrupt. Characters scrambled in places.

I know that 6.4 had to have --disable-libvpx in the configure statement, because they use a version of libvpx that is too old, but thought they had updated the package.
https://forums.virtualbox.org/viewtopic ... 31&t=52330

Do you always run as root?
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 on CentOS 6.5

Postby 45456451 » 10. Jul 2014, 03:31

I use root when compile the code of VirtualBox
submit a new compile log ,Characters scrambled is a GBK Characters
the compile log file too big , i was zipped up it
Attachments
virtualbox.zip
(30.16 KiB) Downloaded 18 times
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50

Re: KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby Perryg » 10. Jul 2014, 03:57

Code: Select all   Expand viewCollapse view
libvpx: found version 1.1.0

As I thought your libvpx is new enough that you don't need to disable it in the configure line.

As for building under root that is a big mistake. The only thing that needs root permission is if you build the binaries.

Are you building this to install or just run basic?
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 on CentOS 6.5

Postby 45456451 » 10. Jul 2014, 16:44

i want to run it in my system,
and when i install more then one operation system on VIrtualMachine ,i want to install more then one Virtualbox in my system,one virtualbox only install one operation system
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50

Re: KMK Fails to compile vboxvideo_drm on CentOS 6.5

Postby Perryg » 10. Jul 2014, 16:56

The only thing that I can think of that would stop this from building is a missing package, or a static lib.
Common problems are gcc, openwatcom, laytex (texlive) missing font for laytex. Look over the building VirtualBox OSE section for examples.
https://forums.virtualbox.org/viewforum.php?f=31

Also I never build as root so I can't help with that as there are issues that you must overcome that I don't deal with.
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 on CentOS 6.5

Postby 45456451 » 10. Jul 2014, 17:11

all right ,Thank you very much
45456451
 
Posts: 7
Joined: 7. Jul 2014, 09:50


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 1 guest