[vbox-dev] Build fails on OSX 10.8 (Mountain Lion)

Simon Vetter simon.vetter at gmx.com
Fri Feb 22 00:51:36 GMT 2013


Hi,

has anyone managed to build virtualbox on MacOSX 10.8 (Mountain Lion)?

The build scripts tend to have the 10.6 SDK hardcoded in multiple places, but symlinking /Developer/SDKs/MacOSX10.6.sdk to /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk (where the SDK is in newer versions of OSX) as suggested in one forum post did the trick and allowed me to go pretty far in the compile process.
I'm still getting an error though. It looks like the PVM type is not defined anywhere.
This is the error that i'm getting :

In file included from /Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdm.h:29,
                 from /Users/svetter/code/vbox/VirtualBox-4.2.6/src/VBox/Devices/build/VBoxDD.h:21,
                 from /Users/svetter/code/vbox/VirtualBox-4.2.6/src/VBox/Devices/PC/DrvACPI.cpp:58:
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected `)' before ‘pVM’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected primary-expression before ‘u8Irq’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected primary-expression before ‘u8Level’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: expected primary-expression before ‘uTagSrc’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:44: error: initializer expression list treated as compound expression
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:45: warning: ‘PDMIoApicSetIrq’ initialized and declared ‘extern’
/Users/svetter/code/vbox/VirtualBox-4.2.6/include/VBox/vmm/pdmapi.h:45: error: expected `)' before ‘pVM’ 
...

The line in question is (from pdmapi.h)
VMMDECL(int)        PDMIsaSetIrq(PVM pVM, uint8_t u8Irq, uint8_t u8Level, uint32_t uTagSrc);

Could anyone shed some light on what PVM is and what file I should include to solve this?

I am using xcode 4.6 on OSX 10.8.2 (latest version, 64 bit), with the xcode console tools installed.
The GCC version I am using is 4.2.1 (gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)).
Configure line : ./configure --out-path=/Users/svetter/code/compiled/ --target-arch=amd64 --disable-xpcom --disable-python --disable-java --disable-docs --disable-hardening
I have tried building with --disable-vmmraw as well, to no avail.

Thanks in advance,
Simon




More information about the vbox-dev mailing list