Boost logo

Boost-Build :

Subject: Re: [Boost-build] [EXTERNAL] Hello World Example Max OSX gcc problem
From: Benjamin Häfele (ben.haefele_at_[hidden])
Date: 2012-01-06 08:13:31


Am 05.01.2012 um 21:13 schrieb Belcourt, Kenneth:

>
> On Jan 5, 2012, at 11:57 AM, Benjamin Häfele wrote:
>
>> I am trying to set up boost.build. And I thought everything is configured the right way..... But I have a problem with gcc?!?!
>>
>> I am using OS X Lion and have gcc installed with Xcoce 4.1.
>
> The gcc toolset on the Mac is called darwin. Try building with
>
> bjam toolset=darwin ...
>
> -- Noel

Doesn't help... I guess there is another mistake... in my configuration. If I compile with darwin, following error comes up:

isr054:test Benni$ bjam release
...found 9 targets...
...updating 2 targets...
darwin.compile.c++ bin/darwin/release/hello.o
cc1plus: error: unrecognized command line option "-Wno-long-double"

    "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -dynamic -Wno-long-double -no-cpp-precomp -DNDEBUG -c -o "bin/darwin/release/hello.o" "hello.cpp"

...failed darwin.compile.c++ bin/darwin/release/hello.o...
...skipped <pbin/darwin/release>hello for lack of <pbin/darwin/release>hello.o...
...failed updating 1 target...
...skipped 1 target...
isr054:test Benni$

>
>>
>> Anybody has a clou what I am doing wrong?
>>
>>
>> isr054:test Benni$ gcc --version
>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
>> Copyright (C) 2007 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions. There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>>
>> isr054:test Benni$ bjam --version
>> Boost.Build V2 (Milestone 12)
>> Boost.Jam 03.1.18
>>
>> isr054:test Benni$ bjam release
>> ...found 9 targets...
>> ...updating 1 target...
>> gcc.link bin/gcc-4.2.1/release/hello
>> ld: unknown option: --start-group
>> collect2: ld returned 1 exit status
>>
>> "g++" -o "bin/gcc-4.2.1/release/hello" -Wl,--start-group "bin/gcc-4.2.1/release/hello.o" -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -Wl,--strip-all
>>
>>
>> ...failed gcc.link bin/gcc-4.2.1/release/hello...
>> ...failed updating 1 target...
>> isr054:test Benni$
>>
>>
>>
>> Thanks, for any help in advance.
>>
>>
>> _______________________________________________
>> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build



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