failed to install boost.python on Lion

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

failed to install boost.python on Lion

Liguo Kong
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
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

Any ideas how to solve the problem?

Thanks a lot.

Liguo

_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig
Reply | Threaded
Open this post in threaded view
|

Re: failed to install boost.python on Lion

Nat Goodspeed-2
On Oct 26, 2011, at 9:54 AM, Liguo Kong <[hidden email]> wrote:

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.

Uh, maybe toolset=darwin?
_______________________________________________
Cplusplus-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/cplusplus-sig