Boost logo

Boost-Build :

Subject: Re: [Boost-build] Mac OS X Universal python link problem
From: Matt Bendiksen (matt_boost_at_[hidden])
Date: 2010-02-14 18:21:02


Okay, scratch that previous message. I don't know what I was thinking saying the OS X frameworks didn't include 64-bit PPC versions -- they do. Something is causing link errors though and removing the arch flag for 64-bit PPC prevents the problem. I'll figure it out and email the list when I do…

Matt

On Feb 14, 2010, at 4:27 PM, Matt Bendiksen wrote:

> Boost vers: 1.42.0
> OS: Mac 10.6 (but I'm targetting 10.5)
>
> I'm able to build and run the python example files, but when I try to create a Universal shared library (PPC+x86 32/64-bit) using the bjam 'address-model=32_64' arg g++ is failing on the link. I dug into it a bit, and it appears the problem is because executing bjam address-model=32_64 is passing the '-arch ppc64' flag to g++ (libtool). However, the OS X system installed Python framework only includes ppc, i386 and x86_64, so it fails with a bunch of unresolved funcs. I remove the '-arch ppc64' from the g++ link line, and it then linked without errors.
>
> I'm not sure what correct fix is for this, but for the time being I've hacked "support-ppc64" to 0 inside darwin.jam. I suppose there might be an argument for wanting to build 64-bit PPC when the toolset is darwin, but if the os-x version targeted is Mac it seems that 64-bit PPC should always be dropped to avoid link problems against system frameworks.
>
> Matt Bendiksen
>


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