Problem while building 3.2.0 in ArchLinux

Discussions related to using the OSE version of VirtualBox.

Problem while building 3.2.0 in ArchLinux

Postby floffredo » 26. May 2010, 13:45

hello everybody,

I have some trouble when I compile VirtualBox.

here, I join some log of kmk :

Code: Select all   Expand viewCollapse view
cc1plus: warnings being treated as errors
In file included from /tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMAll/PGMAll.cpp:193:0:
/tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMAll/PGMAllBth.h: In function ‘unsigned int pgmRCBthPAEPAEAssertCR3(VMCPU*, uint64_t, uint64_t, RTGCPTR, RTGCPTR)’:
/tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMAll/PGMAllBth.h:3750:29: erreur: ‘PdpeSrc.X86PDPE::u’ may be used uninitialized in this function [-Wuninitialized]
kBuild: Compiling VMMGC - /tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMAll/PGMAllPool.cpp
kmk[2]: *** [/tmp/VirtualBox-3.2.0_OSE/out/linux.x86/debug/obj/VMMGC/VMMAll/PGMAll.o] Error 1
The failing command:
@g++ -c -g -nostdinc -g -pipe -Werror -pedantic -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-long-long -Wno-variadic-macros -fno-exceptions -O2 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-strict-aliasing -fno-stack-protector -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden -fno-rtti -I/tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM -I/tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMGC -I/tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/PATM -I/tmp/VirtualBox-3.2.0_OSE/include/iprt/nocrt -I/tmp/VirtualBox-3.2.0_OSE/include -I/tmp/VirtualBox-3.2.0_OSE/out/linux.x86/debug -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_LOCK_STRICT -DRT_LOCK_STRICT_ORDER -DDEBUG -DDEBUG_floffredo -DDEBUG_USERNAME=floffredo -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_X86 -D__X86__ -DIN_RC -DIPRT_NO_CRT -DRT_WITH_NOCRT_ALIASES -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=64 -DIN_VMM_RC -DIN_RT_RC -DIN_DIS -DDIS_CORE_ONLY -DVBOX_WITH_RAW_MODE -DVBOX_WITH_MULTI_CORE -Wp,-MD,/tmp/VirtualBox-3.2.0_OSE/out/linux.x86/debug/obj/VMMGC/VMMAll/PGMAll.o.dep -Wp,-MT,/tmp/VirtualBox-3.2.0_OSE/out/linux.x86/debug/obj/VMMGC/VMMAll/PGMAll.o -Wp,-MP -o /tmp/VirtualBox-3.2.0_OSE/out/linux.x86/debug/obj/VMMGC/VMMAll/PGMAll.o /tmp/VirtualBox-3.2.0_OSE/src/VBox/VMM/VMMAll/PGMAll.cpp
kmk[2]: *** Waiting for unfinished jobs....
kmk[2]: Leaving directory `/tmp/VirtualBox-3.2.0_OSE'
kmk[2]: Entering directory `/tmp/VirtualBox-3.2.0_OSE'
kmk[2]: *** Exiting with status 2
kmk[1]: *** [pass_binaries_this] Error 2
kmk[1]: Leaving directory `/tmp/VirtualBox-3.2.0_OSE'
kmk: *** [pass_binaries_order] Error 2


??
floffredo
 
Posts: 6
Joined: 22. May 2010, 15:50
Primary OS: Other
VBox Version: PUEL
Guest OSses: Windows, ArchLinux

Re: Problem while building 3.2.0 in ArchLinux

Postby Frank Mehnert » 1. Jun 2010, 11:55

Please create a file LocalConfig.kmk in your VBox root directory and add
Code: Select all   Expand viewCollapse view
VBOX_WITH_WARNINGS_AS_ERRORS :=
to that file.
Frank Mehnert
Oracle Corporation
 
Posts: 2523
Joined: 7. Jun 2007, 09:11
Location: Dresden, Germany
Primary OS: Debian Lenny
VBox Version: PUEL
Guest OSses: Linux, Windows


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 3 guests