LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-07-2010, 03:44 AM   #1
Barx
Member
 
Registered: Jun 2004
Distribution: Slack x86 current
Posts: 126

Rep: Reputation: 16
error compiling virtualbox 3.2.10 on current


Hi

I'm trying to compile virtualbox 3.2.10 con slackware current 32bit through sbopkg

I get this error (I'll copy only the end part)

Code:
 CXX     VMMR3 - {C}/src/VBox/VMM/VMMAll/TMAllCpu.cpp
cc1plus: warnings being treated as errors
In file included from /tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAll.cpp:236:0:
/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h: In function 'int pgmR3GstAMD64GetPage(VMCPU*, RTGCPTR, uint64_t*, RTGCPHYS*)':
/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h:81:17: error: 'Pdpe.X86PDPE::n.X86PDPEBITS::u1Present' may be used uninitialized in this function [-Wuninitialized]
/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h:81:17: error: 'Pdpe.X86PDPE::lm.X86PDPEAMD64BITS::u1Write' may be used uninitialized in this function [-Wuninitialized]
/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h:81:17: error: 'Pdpe.X86PDPE::lm.X86PDPEAMD64BITS::u1User' may be used uninitialized in this function [-Wuninitialized]
/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h:81:17: error: 'Pdpe.X86PDPE::lm.X86PDPEAMD64BITS::u1Accessed' may be used uninitialized in this function [-Wuninitialized]
/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAllGst.h:81:17: error: 'Pdpe.X86PDPE::lm.X86PDPEAMD64BITS::u1NoExecute' may be used uninitialized in this function [-Wuninitialized]
  CXX     VMMR3 - {C}/src/VBox/VMM/VMMAll/TMAllReal.cpp
  CXX     VMMR3 - {C}/src/VBox/VMM/VMMAll/TMAllVirtual.cpp
  CXX     VMMR3 - {C}/src/VBox/VMM/VMMAll/TRPMAll.cpp
  CXX     VMMR3 - {C}/src/VBox/VMM/VMMAll/VMAll.cpp
kmk[2]: *** [/tmp/SBo/VirtualBox-3.2.10_OSE/out/linux.x86/release/obj/VMMR3/VMMAll/PGMAll.o] Error 1
The failing command:
@g++ -c -O2 -g -pipe -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-long-long -Wno-variadic-macros -march=i586 -O2 -mtune=generic -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden -Werror -m32 -I/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM -I/tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/PATM -I/tmp/SBo/VirtualBox-3.2.10_OSE/include -I/tmp/SBo/VirtualBox-3.2.10_OSE/out/linux.x86/release -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_VMM_R3 -DIN_DIS -DIN_GMM_R3 -DIN_DBG -DVBOX_WITH_MULTI_CORE -DVBOX_WITH_USB -DVBOX_WITH_PDM_ASYNC_COMPLETION -DVBOX_WITH_RAW_MODE -Wp,-MD,/tmp/SBo/VirtualBox-3.2.10_OSE/out/linux.x86/release/obj/VMMR3/VMMAll/PGMAll.o.dep -Wp,-MT,/tmp/SBo/VirtualBox-3.2.10_OSE/out/linux.x86/release/obj/VMMR3/VMMAll/PGMAll.o -Wp,-MP -o /tmp/SBo/VirtualBox-3.2.10_OSE/out/linux.x86/release/obj/VMMR3/VMMAll/PGMAll.o /tmp/SBo/VirtualBox-3.2.10_OSE/src/VBox/VMM/VMMAll/PGMAll.cpp
kmk[2]: *** Waiting for unfinished jobs....
kmk[2]: Leaving directory `/tmp/SBo/VirtualBox-3.2.10_OSE'
kmk[2]: Entering directory `/tmp/SBo/VirtualBox-3.2.10_OSE'
kmk[2]: *** Exiting with status 2
kmk[1]: *** [pass_libraries_this] Error 2
kmk[1]: Leaving directory `/tmp/SBo/VirtualBox-3.2.10_OSE'
kmk: *** [pass_libraries_order] Error 2
Any hint?

Thank you all

Bye
 
Old 12-07-2010, 07:00 AM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,373

Rep: Reputation: 164Reputation: 164
I wouldn't use the OSE version - I'd use this one:

http://download.virtualbox.org/virtu...-Linux_x86.run

Make the file executable and run in a terminal as root:

Code:
./VirtualBox-3.2.12-68302-Linux_x86.run
You will have usb support in this version.
 
Old 12-07-2010, 11:15 AM   #3
ppr:kut
Member
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 356

Rep: Reputation: 91
The solutions as provided in http://forums.virtualbox.org/viewtopic.php?f=10&t=31388 is to add

Code:
VBOX_WITH_WARNINGS_AS_ERRORS :=
to LocalConfig.kmk

I'll have a look if that is already automatically done with 4.0, if not I'll add it once that's stable.
 
Old 12-07-2010, 11:23 AM   #4
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 538
Blog Entries: 7

Rep: Reputation: 54
Quote:
Originally Posted by mlangdn View Post
I wouldn't use the OSE version - I'd use this one:

http://download.virtualbox.org/virtu...-Linux_x86.run

Make the file executable and run in a terminal as root:

Code:
./VirtualBox-3.2.12-68302-Linux_x86.run
You will have usb support in this version.
I can confirm the above statement.

I am using the VBox from the official site with no issues or problems.
 
Old 12-13-2010, 05:46 AM   #5
Barx
Member
 
Registered: Jun 2004
Distribution: Slack x86 current
Posts: 126

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ppr:kut View Post
The solutions as provided in http://forums.virtualbox.org/viewtopic.php?f=10&t=31388 is to add

Code:
VBOX_WITH_WARNINGS_AS_ERRORS :=
to LocalConfig.kmk

I'll have a look if that is already automatically done with 4.0, if not I'll add it once that's stable.
Thanks, this solved the problem.

I prefer to use the OSE edition instead of the closed source edition.

While building vbox through sbopkg the only way I've found to do the trick was the following:

1) tell sbopkg to build virtualbox-ose
2) after the "configure" process, when the compile process starts, hit CTRL-Z to pause the process
3) edit the file /tmp/SBo/VirtualBox-3.2.10_OSE/LocalConfig.kmk and add the line VBOX_WITH_WARNINGS_AS_ERRORS := at the end of the file
4) save, exit and run 'fg 1' to restart the compile process

That's all folks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error while compiling kernel 2.6.36 in slackware 13.1 -current el_jauzaa Slackware 8 08-29-2012 08:36 PM
Which current distro gives virtualbox access to usb? skola Linux - Virtualization and Cloud 14 08-03-2010 08:09 AM
[SOLVED] Video Problems in VirtualBox on Slackware64-current TSquaredF Slackware 8 10-20-2009 11:44 PM
New current kernel 2.6.29.1 on VirtualBox bgeddy Slackware 5 04-15-2009 07:27 PM
Can't Compile VirtualBox 1.6.6 In Slackware Current Woodsman Slackware 8 12-18-2008 02:36 PM


All times are GMT -5. The time now is 07:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration