VirtualBox FIX

Guillaume sirocco at gmx.fr
Tue Jun 15 23:23:37 CEST 2010


Hi,

I'm unable to compile the last version of VirtualBox :

/usr/src/VirtualBox-3.2.4_OSE/include/iprt/asm-amd64-x86.h:490: error: 'asm' operand has impossible constraints
kmk[2]: *** [/usr/src/VirtualBox-3.2.4_OSE/out/linux.x86/release/obj/tstInlineAsmPIC/tstInlineAsm.o] Error 1
The failing command:
@g++ ... blah, blah, blah ... /usr/src/VirtualBox-3.2.4_OSE/out/linux.x86/release/obj/tstInlineAsmPIC/tstInlineAsm.o /usr/src/VirtualBox-3.2.4_OSE/src/VBox/Runtime/testcase/tstInlineAsm.cpp


I see a patch for gcc-4.5 in the BUILD file but I'm using gcc-4.4
In order to get VirtualBox compile with my gcc-4.4 I did the following change :


diff a/virtual/VirtualBox b/virtual/VirtualBox
--- a/virtual/VirtualBox/BUILD  2010-06-15 22:41:32.000000000 +0200
+++ b/virtual/VirtualBox/BUILD  2010-06-15 22:52:35.000000000 +0200
@@ -2,6 +2,8 @@
 
   patch_it $SOURCE_CACHE/$SOURCE2 1  &&
 
+  echo "VBOX_WITH_TESTCASES =" > LocalConfig.kmk &&
+
   # Disable qt3
   sedit s at WITH_QT3=1 at WITH_QT3=0@ configure &&


As VirtualBox is in the moonbase, it should work for some users, so I didn't lvu submitted this patch.
If someone need it ... :)

Guillaume


More information about the Lunar mailing list