Boost logo

Boost-Build :

Subject: Re: [Boost-build] bjam for Mac OS X -gcc4.x
From: er (er.ci.2020_at_[hidden])
Date: 2011-02-22 07:21:55


>
>
> Where this g++ 4.4.comes from? I've had more luck on OS X 10.5 with gcc 4.5 from

It comes from http://pdb.finkproject.org/pdb/package.php/gcc44
I did:

  using darwin : 4.4 : /sw/lib/gcc4.4/bin/g++ :
<linkflags>\"-L/sw/lib/gcc4.4/bin\" ;

and

  sudo bjam toolset=darwin-4.4

and apparently it works! But unfortunately, not with

  sudo bjam toolset=darwin-4.4 cxxflags=-std=c++0x

which was the reason for porting from unix in the first place:

...patience...
...patience...
...found 1503 targets...
...updating 16 targets...
darwin.compile.c++
../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/darwin-4.4/debug/utility.o
cc1plus: error: unrecognized command line option "-std=c++0x"

     "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -dynamic
-no-cpp-precomp -gdwarf-2 -fPIC -std=c++0x -DBOOST_ALL_NO_LIB=1
-DBOOST_TEST_NO_AUTO_LINK=1 -I"../../../../.." -c -o
"../../../../../bin.v2/libs/assign/v2/test/unit_testing/utility.test/darwin-4.4/debug/utility.o"
"utility.cpp"

Replacing darwin by gcc in both user-config and bjam yields:

  sudo bjam toolset=gcc-4.4
...patience...
...patience...
...found 1503 targets...
...updating 12 targets...
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

     "/sw/lib/gcc4.4/bin/g++" -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 "-L/sw/lib/gcc4.4/bin"

etc.


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