Hello,<div><br></div><div>I am trying to install boost.python on Mac Lion OS. I used python 2.6 installed by default and</div><div>built boost.build with <b>./bootstrap.sh --set-toolset=gcc </b>and then <b>./b2 install --prefix=~/workspace/boost_build</b>.</div>

<div>The gcc version is &quot;gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)&quot;. </div><div>I followed the instructions</div><div><a href="http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html#expected-build-output">http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html#expected-build-output</a></div>

<div>to install boost.python with</div><div>bjam --build-dir=/Users/lkong/workspace/boost_python toolset=gcc --with-python stage</div><div><br></div><div>It fails with the message:</div><div><div>Component configuration:</div>

<div><br></div><div>  Â  - chrono Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div><div>  Â  - date_time Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - exception Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - filesystem Â  Â  Â  Â  Â  Â  Â  : not building</div>

<div>  Â  - graph Â  Â  Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - graph_parallel Â  Â  Â  Â  Â  : not building</div><div>  Â  - iostreams Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - math Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div>

<div>  Â  - mpi Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - program_options Â  Â  Â  Â  Â : not building</div><div>  Â  - python Â  Â  Â  Â  Â  Â  Â  Â  Â  : building</div><div>  Â  - random Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div>
<div>
  Â  - regex Â  Â  Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - serialization Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - signals Â  Â  Â  Â  Â  Â  Â  Â  Â : not building</div><div>  Â  - system Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div><div>

  Â  - test Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div><div>  Â  - thread Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div><div>  Â  - wave Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  : not building</div><div><br></div><div>...patience...</div><div>...patience...</div>

<div>...found 1540 targets...</div><div>...updating 77 targets...</div><div>common.mkdir stage</div><div>common.mkdir stage/lib</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2</div>

<div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build</div>

<div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/numeric.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/list.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/long.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/dict.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/tuple.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/str.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/slice.o</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/from_python.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/registry.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/type_id.o</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/enum.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/class.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/inheritance.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/life_support.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/pickle_support.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/module.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/builtin_converters.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/arg_to_python_base.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/iterator.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/stl_iterator.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_protocol.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_operators.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/wrapper.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/exec.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function_doc_signature.o</div>

<div>gcc.link.dll /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/libboost_python.dylib</div><div><b>ld: unknown option: -R</b></div><div>collect2: ld returned 1 exit status</div>

<div><br></div><div>  Â  &quot;g++&quot; -L&quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib&quot; -L&quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config&quot; -Wl,-R -Wl,&quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib&quot; -Wl,-R -Wl,&quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config&quot; Â -o &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/libboost_python.dylib&quot; -Wl,-h -Wl,libboost_python.dylib -shared -Wl,--start-group &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/numeric.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/list.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/long.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/dict.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/tuple.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/str.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/slice.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/from_python.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/registry.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/type_id.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/enum.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/class.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/inheritance.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/life_support.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/pickle_support.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/module.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/builtin_converters.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/arg_to_python_base.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/iterator.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/stl_iterator.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_protocol.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_operators.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/wrapper.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/exec.o&quot; &quot;/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function_doc_signature.o&quot; Â -Wl,-Bstatic Â -Wl,-Bdynamic -lpython2.6 -Wl,--end-group Â </div>

<div><br></div><div>...failed gcc.link.dll /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/libboost_python.dylib...</div><div>...skipped &lt;pstage/lib&gt;libboost_python.dylib for lack of &lt;p/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi&gt;libboost_python.dylib...</div>

<div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/numeric.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/list.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/long.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/dict.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/tuple.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/str.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/slice.o</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter/from_python.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter/registry.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter/type_id.o</div><div>common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/enum.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/class.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/function.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/inheritance.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/life_support.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/pickle_support.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/errors.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/module.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter/builtin_converters.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter/arg_to_python_base.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/iterator.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/stl_iterator.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object_protocol.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object_operators.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/wrapper.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/import.o</div>

<div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/exec.o</div><div>gcc.compile.c++ /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object/function_doc_signature.o</div>

<div>gcc.archive /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/libboost_python.a</div><div>common.copy stage/lib/libboost_python.a</div><div>...failed updating 1 target...</div>

<div>...skipped 1 target...</div><div>...updated 75 targets...</div></div><div><br></div><div>The problem &quot;<b>ld: unknown option: -R</b>&quot; also appeared when I tried the quickstart example</div><div>as in</div><div>

<a href="http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html">http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html</a></div><div><br></div><div>Any ideas how to solve the problem?</div><div><br>

</div><div>Thanks a lot.</div><div><br></div><div>Liguo</div>