Subject: Re: [Boost-build] Patch for building Boost 1.40 on Mac OS X Snow Leopard
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-10-14 14:35:42
I second the request for a patch for this issue to get into the next
release, at least the portion of the patch that removes the -m64
option from the command line. This is really important for Macintosh
On Oct 14, 2009, at 10:26 AM, Michael Jackson wrote:
> I applied bits and pieces of your patch on an OS X 10.5.8 Intel
> system and am currently compiling boost 1.40.0.
> Wondering if this patch can make it into the boost 1.40.1 release or
> what ever patch release is coming out next.
> This was my command:
> bjam toolset=darwin --with-test --with-filesystem --with-
> program_options --with-iostreams --with-thread variant=release,debug
> threading=multi link=static runtime-link=shared --prefix=/Users/
> Shared/Toolkits/boost-1_40/ -layout=tagged architecture=combined
> address-model=32_64 install
> Mike Jackson <www.bluequartz.net>
> On Oct 2, 2009, at 12:58 PM, Michael Jackson wrote:
>> Part of your statements need some clarification:
>> The version of GCC that OS X 10.6 ships with (4.2.x) WILL indeed
>> create 4-way binaries (32 and 64 Bit PPC and x86) when using the
>> 10.5 SDK which is entirely possible for someone to do considering
>> that a developer is using OS X 10.6 but wants to target earlier
>> versions of OS X running on Both PPC and Intel hardware.
>> I have not looked at the patches but you will probably need to
>> interrogate what SDK the developer is using before hard-setting any
>> rules about what arguments can and can not be used.
>> Mike Jackson mike.jackson_at_[hidden]
>> BlueQuartz Software www.bluequartz.net
>> Principal Software Engineer Dayton, Ohio
>> On Oct 2, 2009, at 11:11 AM, Stuart A. Malone wrote:
>>> Today I took the time to patch my local copy of Boost 1.40 to
>>> allow building under Snow Leopard. You can see discussions about
>>> this problem in places like:
>>> My patches address two problems:
>>> - The -m64 option is incompatible with the generation of 32-bit
>>> - Versions of Apple's gcc 4.2 and later do not support generation
>>> of ppc64 binaries
>>> Since my company uses both gcc 4.0 and gcc 4.2, I wanted a
>>> solution that still supports ppc64 binaries when using gcc 4.0,
>>> but avoids creating ppc64 binaries under gcc 4.2 and later. I
>>> believe these patches solve the problem and provide optimal
>>> behavior under both Leopard and Snow Leopard, gcc 4.0 and 4.2.1.
>>> Best wishes,
>>> --Stuart A. Malone
>>> Llamagraphics, Inc.
>>> Makers of Life Balance personal coaching software
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk