Opened 11 years ago

Closed 9 years ago

#40619 closed defect (duplicate)

virtualbox @4.2.16 Wrong SDK Selected

Reported by: kprussing (Keith) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: anddam (Andrea D'Amore), cooljeanius (Eric Gallager)
Port: virtualbox

Description

After recently upgrading to Xcode 5, VirtualBox will not compile. At first glance, the error is identical to that posted in #35808. After reading the comments and investigating the configure log, the command that fails is (full log attached)

/opt/local/bin/g++-apple-4.2 -mmacosx-version-min=10.7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk -g -O -Wall -o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/.tmp_out /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/.tmp_src.cc "-I/opt/local/include /opt/local/lib/libcrypto.dylib /opt/local/lib/libssl.dylib"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/.tmp_src.cc:1:18: error: cstdio: No such file or directory

Digging around, it turns out that the 10.7 SDK has been removed from of Xcode 5 and 10.8 is now included.

Reading ticket:35808#comment9 lead me to the configure script where there is a 'To Do' note to use Xcode/SDK version to get the version number. Playing around a bit, I was able to establish the following code snippet to extract the SDK name and version number

$ sdkname=`xcodebuild -showsdks | grep macosx | awk '{print $NF}'`
$ echo $sdkname
macosx10.8
$ xcodebuild -version -sdk ${sdkname} SDKVersion
10.8

I would offer an explicit patch, but I'm exactly sure where this would need to go, and I don't know how it would effect those who haven't upgraded Xcode yet. I also do not know how wide spread the issue of the missing SDK will be.

Keith

OS X 10.8.5 Xcode 5.0 Build version 5A1413

Attachments (1)

configure.log (67.3 KB) - added by kprussing (Keith) 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by kprussing (Keith)

Attachment: configure.log added

comment:1 Changed 11 years ago by anddam (Andrea D'Amore)

Cc: and.damore@… added

The xcode version is already available to macports through the xcodeversion variable. I've patched 4.2.16 configure script to recognize darwin 13 and using 10.8 SDK but the build breaks anyway due to:

g++-apple-4.2 -c -O2 -g -pipe -pedantic -Wshadow -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option  -Wno-long-long -Wno-long-long  -Wno-variadic-macros -O2 -fno-omit-frame-pointer -fno-strict-aliasing -mmacosx-version-min=10.8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -m64 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/VBox/Runtime/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/libs/liblzf-3.4 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/libs/kStuff/kStuff/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/libs/libxml2-2.6.31/include -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/libs/boost-1.37.0 -I/opt/local/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.amd64/release -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRT_OS_DARWIN -D__DARWIN__ -DRT_ARCH_AMD64 -D__AMD64__ -DRTPATH_APP_PRIVATE=\""/Applications/MacPorts/VirtualBox.app/Contents/MacOS"\" -DRTPATH_APP_PRIVATE_ARCH=\""/Applications/MacPorts/VirtualBox.app/Contents/MacOS"\" -DRTPATH_SHARED_LIBS=\""/Applications/MacPorts/VirtualBox.app/Contents/MacOS"\" -DRTPATH_APP_DOCS=\""/Applications/MacPorts/VirtualBox.app/Contents/MacOS"\" -D_REENTRANT -DBOOST_DISABLE_ASSERTS -DIN_RING3 -DLOG_DISABLED -DIN_RT_R3 -DIN_RT_R3 -DIN_SUP_R3 -DLDR_WITH_NATIVE -DLDR_WITH_ELF32 -DLDR_WITH_PE -DRT_WITH_VBOX -DRT_NO_GIP -DLDR_WITH_KLDR -DRT_WITH_ICONV_CACHE -DMAC_OS_X_VERSION_MIN_REQUIRED=1080 -DMAC_OS_X_VERSION_MAX_ALLOWED=1080 -Wp,-MD,/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.amd64/release/obj/RuntimeBldProg/r3/posix/errvars-posix.o.dep -Wp,-MT,/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.amd64/release/obj/RuntimeBldProg/r3/posix/errvars-posix.o -Wp,-MP -o /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.amd64/release/obj/RuntimeBldProg/r3/posix/errvars-posix.o /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/VBox/Runtime/r3/posix/errvars-posix.cpp
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:19,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:18,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/VBox/Runtime/r3/darwin/RTPathUserDocuments-darwin.cpp:34:
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:203: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:204: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:205: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:206: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:207: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:208: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:209: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:210: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:211: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:212: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:213: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:214: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:215: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:216: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:217: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:219: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:222: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:225: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:228: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:231: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:234: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:237: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:240: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:243: error: expected constructor, destructor, or type conversion before 'int'
/opt/local/lib/apple-gcc42/gcc/i686-apple-darwin13/4.2.1/include/math.h:246: error: expected constructor, destructor, or type conversion before 'int'
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:146,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:38,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:18,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:18,
                 from /opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/src/VBox/Runtime/r3/darwin/RTPathUserDocuments-darwin.cpp:34:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/MacTypes.h:58: error: expected `}' before end of line
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/MacTypes.h:58: error: expected declaration before end of line
kmk: *** [/opt/local/var/macports/build/_opt_local_var_macports_sources_svn.macports.org_trunk_dports_emulators_virtualbox/virtualbox/work/VirtualBox-4.2.16/out/darwin.amd64/release/obj/RuntimeBldProg/r3/darwin/RTPathUserDocuments-darwin.o] Error 1
kmk: *** Waiting for unfinished jobs....
Last edited 11 years ago by anddam (Andrea D'Amore) (previous) (diff)

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: Xcode5 removed
Resolution: duplicate
Status: newclosed

Let's call this a duplicate of #35808.

Note: See TracTickets for help on using tickets.