|
Boost-Build : |
Subject: Re: [Boost-build] bjam for Mac OS X
From: Gevorg Voskanyan (v_gevorg_at_[hidden])
Date: 2011-02-22 03:28:04
er wrote:
> Hello,
>
> I have OSX 10.6.6. Calling the default,
> sudo bjam toolset=darwin
> works fine. However, I'd like to run a test suite on different compilers. I
>need some guidance in setting up user-config.jam and invoking bjam. Here's what
>I did so far:
>
> In /usr/local/boost-trunk/tools/build/v2/user-config.jam I added,
IMO it is better to place these declarations in ~/user-config.jam rather than
modifying the one in Boost.
> # ----------------------
> # Darwin configuration.
> # ----------------------
> using darwin : 4.0 : g++-4.0;
> using darwin : 4.2 : g++-4.2;
Whitespace is important in jamfiles. Tokens should always be separated by
whitespace. Here, you're missing a space before semicolon. Try adding space
before ; everywhere, and it should work better.
> # ----------------------
> # Clang configuration.
> # ----------------------
> using clang : 4.2 : "/usr/llvm-gcc-4.2/bin/llvm-g++-4.2";
>
> # ----------------------
> # GCC configuration. (ported from unix using fink)
> # ----------------------
> using gcc : 4.4 : "/sw/lib/gcc4.4/bin/g++";
>
>
> I invoke bjam like this
>
> sudo bjam toolset=darwin-4.2
>
> but it gives this:
>
> /usr/local/boost-trunk/tools/build/v2/build/toolset.jam:38: in toolset.using
> *** argument error
> * rule darwin.init ( version ? : command * : options * : requirement * )
> * called with: ( 4.0 : g++-4.0; using darwin : 4.2 : g++-4.2; using gcc : 4.4
>: /sw/lib/gcc4.4/bin/g++; using xsltproc : : )
> * extra argument 4.4
> /usr/local/boost-trunk/tools/build/v2/tools/darwin.jam:79:see definition of
>rule 'init' being called
> /usr/local/boost-trunk/tools/build/v2/build/project.jam:886: in using
> /usr/local/boost-trunk/tools/build/v2/user-config.jam:82: in modules.load
> /usr/local/boost-trunk/tools/build/v2/build-system.jam:257: in load-config
> /usr/local/boost-trunk/tools/build/v2/build-system.jam:399: in
>load-configuration-files
> /usr/local/boost-trunk/tools/build/v2/build-system.jam:554: in load
> /usr/local/boost-trunk/tools/build/v2/kernel/modules.jam:283: in import
> /usr/local/boost-trunk/tools/build/v2/kernel/bootstrap.jam:142: in
boost-build
> /usr/local/boost-trunk/boost-build.jam:17: in module scope
>
> Thanks.
HTH,
Gevorg
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