LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   error compiling virtualbox 3.2.10 on current (http://www.linuxquestions.org/questions/slackware-14/error-compiling-virtualbox-3-2-10-on-current-848811/)

Barx 12-07-2010 03:44 AM

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

mlangdn 12-07-2010 07:00 AM

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.

ppr:kut 12-07-2010 11:15 AM

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.

SeRi@lDiE 12-07-2010 11:23 AM

Quote:

Originally Posted by mlangdn (Post 4183390)
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. :)

Barx 12-13-2010 05:46 AM

Quote:

Originally Posted by ppr:kut (Post 4183722)
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


All times are GMT -5. The time now is 11:49 PM.