[C++-sig] failed to install boost.python on Lion
Liguo Kong
liguokong at gmail.com
Wed Oct 26 15:54:46 CEST 2011
Hello,
I am trying to install boost.python on Mac Lion OS. I used python 2.6
installed by default and
built boost.build with *./bootstrap.sh --set-toolset=gcc *and then *./b2
install --prefix=~/workspace/boost_build*.
The gcc version is "gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
build 2335.15.00)".
I followed the instructions
http://www.boost.org/doc/libs/1_41_0/more/getting_started/unix-variants.html#expected-build-output
to install boost.python with
bjam --build-dir=/Users/lkong/workspace/boost_python toolset=gcc
--with-python stage
It fails with the message:
Component configuration:
- chrono : not building
- date_time : not building
- exception : not building
- filesystem : not building
- graph : not building
- graph_parallel : not building
- iostreams : not building
- math : not building
- mpi : not building
- program_options : not building
- python : building
- random : not building
- regex : not building
- serialization : not building
- signals : not building
- system : not building
- test : not building
- thread : not building
- wave : not building
...patience...
...patience...
...found 1540 targets...
...updating 77 targets...
common.mkdir stage
common.mkdir stage/lib
common.mkdir /Users/lkong/workspace/boost_python/boost
common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2
common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs
common.mkdir /Users/lkong/workspace/boost_python/boost/bin.v2/libs/python
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/numeric.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/list.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/long.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/dict.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/tuple.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/str.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/slice.o
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter
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
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/registry.o
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
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/enum.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/class.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/inheritance.o
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
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
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/module.o
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
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
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/iterator.o
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
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_protocol.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_operators.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/wrapper.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o
gcc.compile.c++
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/exec.o
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
gcc.link.dll
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/libboost_python.dylib
*ld: unknown option: -R*
collect2: ld returned 1 exit status
"g++" -L"/System/Library/Frameworks/Python.framework/Versions/2.6/lib"
-L"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config"
-Wl,-R -Wl,"/System/Library/Frameworks/Python.framework/Versions/2.6/lib"
-Wl,-R
-Wl,"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/config"
-o
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/libboost_python.dylib"
-Wl,-h -Wl,libboost_python.dylib -shared -Wl,--start-group
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/numeric.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/list.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/long.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/dict.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/tuple.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/str.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/slice.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/from_python.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/registry.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/type_id.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/enum.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/class.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/inheritance.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/life_support.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/pickle_support.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/errors.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/module.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/builtin_converters.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/converter/arg_to_python_base.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/iterator.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/stl_iterator.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_protocol.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object_operators.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/wrapper.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/import.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/exec.o"
"/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi/object/function_doc_signature.o"
-Wl,-Bstatic -Wl,-Bdynamic -lpython2.6 -Wl,--end-group
...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...
...skipped <pstage/lib>libboost_python.dylib for lack of
<p/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/threading-multi>libboost_python.dylib...
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi
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
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
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
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
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
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
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
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/converter
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
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
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
common.mkdir
/Users/lkong/workspace/boost_python/boost/bin.v2/libs/python/build/gcc-4.2.1/release/link-static/threading-multi/object
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
common.copy stage/lib/libboost_python.a
...failed updating 1 target...
...skipped 1 target...
...updated 75 targets...
The problem "*ld: unknown option: -R*" also appeared when I tried the
quickstart example
as in
http://www.boost.org/doc/libs/1_47_0/libs/python/doc/building.html
Any ideas how to solve the problem?
Thanks a lot.
Liguo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20111026/c19f5892/attachment-0001.html>
More information about the Cplusplus-sig
mailing list