Opened 8 years ago

Last modified 6 years ago

#10275 new Bugs

darwin.jam fails to detect installed SDK on MacOS 10.9 with XCode 5.1 installed

Reported by: randy du <randydu@…> Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.56.0 Severity: Problem
Keywords: darwin.jam Cc:

Description

On MacOS 10.9 / XCode 5.1, the SDKs are installed to a new location instead of "/Developer/":

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/

as a result the boost's darwin.jam fails to locate the available SDKs. The following command line will output errors:

./b2 macosx-version-min=10.7

errors:

tools/build/src/build/feature.jam:493: in validate-value-string from module feature error: "10.7" is not a known value of feature <macosx-version-min> error: legal values: ... The workaround is create a soft link to new SDK location and everything works fine:

cd / sudo ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/ Developer

FYI: The XCode5 installs iOS sdks under:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/

so darwin.jam should search both /Developer/ and these new SDK locations for installed SDKs.

Change History (1)

comment:1 by stefano.bider@…, 6 years ago

I confirm: building boost 1.61 on mac os 10.10.5 targeting 10.7 has the same issue. I also confirm that the solution proposed by randy works and that darwin.jam should be modified accordingly.

Note: See TracTickets for help on using tickets.