|
Boost-Build : |
Subject: Re: [Boost-build] bjam for Mac OS X
From: er (er.ci.2020_at_[hidden])
Date: 2011-02-22 05:27:35
>> 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.
>
Thanks, indeed.
For toolset=darwin-4.0 or -4.2. it works seamlessly, but I noticed
amending the configuration is not even necessary.
>> # ----------------------
>> # 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 replaced the using line by
using gcc : 4.4 : "/sw/lib/gcc4.4/bin/g++" ;
and invoked
sudo bjam toolset=gcc-4.4
but it yields errors (see below) and I'm not sure how to interpret them.
Any suggestion?
...patience...
...patience...
...found 1503 targets...
...updating 48 targets...
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug
gcc.compile.c++
../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug/detail.o
common.mkdir ../../../../../bin.v2/libs/test/build/gcc-4.4
common.mkdir ../../../../../bin.v2/libs/test/build/gcc-4.4/debug
common.mkdir ../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/compiler_log_formatter.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/debug.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/exception_safety.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/execution_monitor.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/framework.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/interaction_based.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/logged_expectations.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/plain_report_formatter.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/progress_monitor.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/results_collector.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/results_reporter.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/test_tools.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/unit_test_log.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/unit_test_main.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/unit_test_monitor.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/unit_test_parameters.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/unit_test_suite.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/xml_log_formatter.o
gcc.compile.c++
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/xml_report_formatter.o
gcc.archive
../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/libboost_unit_test_framework.a
gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug/detail
ld: unknown option: --start-group
collect2: ld returned 1 exit status
"g++-4" -o
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug/detail"
-Wl,--start-group
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug/detail.o"
"../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/libboost_unit_test_framework.a"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g
...failed gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug/detail...
...skipped
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug>detail.run
for lack of
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/detail.test/gcc-4.4/debug>detail...
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug
gcc.compile.c++
../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug/ref.o
gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug/ref
ld: unknown option: --start-group
collect2: ld returned 1 exit status
"g++-4" -o
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug/ref"
-Wl,--start-group
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug/ref.o"
"../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/libboost_unit_test_framework.a"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g
...failed gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug/ref...
...skipped
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug>ref.run
for lack of
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/ref.test/gcc-4.4/debug>ref...
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug
gcc.compile.c++
../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug/put.o
gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug/put
ld: unknown option: --start-group
collect2: ld returned 1 exit status
"g++-4" -o
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug/put"
-Wl,--start-group
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug/put.o"
"../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/libboost_unit_test_framework.a"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g
...failed gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug/put...
...skipped
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug>put.run
for lack of
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/put.test/gcc-4.4/debug>put...
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4
common.mkdir
../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug
gcc.compile.c++
../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug/utility.o
gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug/utility
ld: unknown option: --start-group
collect2: ld returned 1 exit status
"g++-4" -o
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug/utility"
-Wl,--start-group
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug/utility.o"
"../../../../../bin.v2/libs/test/build/gcc-4.4/debug/link-static/libboost_unit_test_framework.a"
-Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -g
...failed gcc.link
../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug/utility...
...skipped
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug>utility.run
for lack of
<p../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/gcc-4.4/debug>utility...
...failed updating 4 targets...
...skipped 8 targets...
...updated 36 targets...
erwann-macbook:unit_testing erwann$ sudo bjam toolset=darwin-4.0
...patience...
...patience...
...found 1503 targets...
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