|
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
--toolset=darwin
First, the bjam binary (I compiled when I installed boost) give me some
errors at the beginning of each compilation :
/Volumes/MFE_VAN/mac32/workspace_ColorTribe_newGeneration/boost-1.43.0/build/v2/tools/types/._asm.jam:1:
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"
<linkflags>"-mmacosx-version-min=10.4"
in my jamroot, I got a :
dyld: lazy symbol binding failed: Symbol not found:
__ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
Referenced from: /Volumes/Untitled 1/./ColorRamdac
Expected in: /usr/lib/libstdc++.6.dylib
dyld: Symbol not found:
__ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i
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
:
http://dl.dropbox.com/u/2979643/testcode_bjam_onSnowLeopard_forPreviousOS.zip
I Hope you'll be able to help me :)
Best,
Marie
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