Boost logo

Boost-Build :

Subject: [Boost-build] compilation SnowLeopard targeting Leopard and Tiger
From: Marie Fétiveau (mfe_at_[hidden])
Date: 2010-09-15 04:01:54

Hello !

I'm experiencing some problems in compiling with bjam on SnowLeopard for
Leopard and Tiger.

I recently swaped my Old Mac Mini ( Proc 1.66 GHz Intel Core Duo, Mem 1 Go
DDR2, MacOSX 10.4.11) for a new generation Mac Mini (Proc 2.53 GHz Intel
Core 2 Duo, Mem 4 Go DDR3, MacOSX 10.6.3).

I installed XCode 3.2.1 coming with i686-apple-darwin10-gcc-4.2.1.

I'd like to compile my different applications on snow Leopard and get
binaries that can also run on Tiger and Leopard.

As usual, I'm developping on Eclipse (Galileo) with bjam (boost 1.43.0).

So here's my bjam command :
bjam address-model=32 architecture=x86 macosx-version=10.6
macosx-version-min=10.4 --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk

First, the bjam binary (I compiled when I installed boost) give me some
errors at the beginning of each compilation :
syntax error at EOF
But these errors don't seem to bother the process.

At the end of the compilation, I get a :
ld: warning: unknown option to -iphoneos_version_min, not 2.x or 3.x.

When I try to launch binaries created that way on 10.5 and my old mac Mini
(10.4), they crash and I get this error :
dyld: unknown required load command 0x80000022

I tried to add :
<linkflags>"-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -arch i386"
in my jamroot, I got a :
dyld: lazy symbol binding failed: Symbol not found:
  Referenced from: /Volumes/Untitled 1/./ColorRamdac
  Expected in: /usr/lib/libstdc++.6.dylib

dyld: Symbol not found:
  Referenced from: /Volumes/Untitled 1/./ColorRamdac
  Expected in: /usr/lib/libstdc++.6.dylib

Trace/BPT trap

I tried different permutations on macosx-version, macosx-version-min and
macosx-sdk values(10.4u, 10.5, 10.6), I got quite same problems.

Here's an hello world code that illustrate the error and the full log I got

I Hope you'll be able to help me :)



Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at