Opened 11 years ago

Last modified 10 years ago

#6686 new Bugs

Boost does not build with Xcode 4.3

Reported by: arne.schmitz@… Owned by: Vladimir Prus
Milestone: To Be Determined Component: build
Version: Boost 1.49.0 Severity: Regression
Keywords: Cc: boost@…, jonathan.jones@…

Description

With Xcode 4.3, Apple changed it's layout of the SDKs. The folder /Developer does not exist anymore. Instead everything is contained withing the Xcode.app: /Applications/Xcode.app/Contents/Developer is the new starting point. However, the darwin.jam file also globs at the wrong position. The new SDKs for Xcode 4.3.1 are at /Applications/Xcode.app/Contents/Developer/Platforms/*/Developer/SDKs/*.sdk

Attachments (1)

xcode_43.diff (1.4 KB ) - added by arne.schmitz@… 11 years ago.
build fix for xcode 4.3

Download all attachments as: .zip

Change History (9)

by arne.schmitz@…, 11 years ago

Attachment: xcode_43.diff added

build fix for xcode 4.3

comment:1 by arne.schmitz@…, 11 years ago

I have whipped up a small patch that fixes the build problems with Xcode 4.3. This is meant as a quick fix. It breaks building on Xcode < 4.3, so someone else should merge it with the old darwin.jam file.

I propose that bjam uses "xcode-select -print-path" to find out which Xcode version the user has selected as default. It then decides if the version resides in /Developer (Xcode <= 4.2) or in /Applications/Xcode.app (Xcode >= 4.3) and behaves accordingly.

comment:2 by David Brittain <boost@…>, 10 years ago

Cc: boost@… added

This fix seems to work well, how do we get it integrated into a release? The TicketWorkflow here... https://svn.boost.org/trac/boost/wiki/TicketWorkflow recommends setting the owner to the component owner, who is vladimir_prus I don't seem to be able to do that, but maybe the submitter can?

comment:3 by Marshall Clow, 10 years ago

Have you tried 1.50.0 or (even better) one of the 1.51.0 betas?

Wondering because they build fine for me (with Xcode 4.4, and no /Developer folder.)

comment:4 by David Brittain <boost@…>, 10 years ago

I upgraded to 1.50.0 today, and I am using Xcode 4.4. Are you building for iOS? That's when this problem shows, regular MacOSX builds are fine without this patch.

comment:5 by Marshall Clow, 10 years ago

Ah. That would explain why I'm not seeing the problem.

Thanks for the explanation.

comment:6 by David Brittain <boost@…>, 10 years ago

The bug title should be updated too, so that it is clear this is an iOS issue (and that it affects xcode >=4.3)

See http://www.danielsefton.com/2012/03/building-boost-1-49-with-clang-ios-5-1-and-xcode-4-3/

comment:7 by Jonathan Jones <jonathan.jones@…>, 10 years ago

Cc: jonathan.jones@… added

comment:8 by viboes, 10 years ago

Component: Building Boostbuild
Owner: set to Vladimir Prus
Note: See TracTickets for help on using tickets.