|
Boost Users : |
Subject: Re: [Boost-users] gcc problems on mac os 10.6...
From: Boris Dušek (boris.dusek_at_[hidden])
Date: 2009-11-26 07:14:38
Hi,
I am on Snow Leopard, and Boost.Python builds for me fine (even the
fat 3-way binary). It seems that you have a custom Python installed in
/Library/Frameworks/Python.framework, and the build process prefers
this one instead of the "system"
/System/Library/Frameworks/Python.framework. When I installed the
custom 2.5 one from python.org, I had the same error, because the
build process picked up this custom install of Python. I uninstalled
it, and the build picked up the system python, which worked well.
I am not sure why the python from python.org does not work, if it's
something that's fixed in later releases (2.6, 3.0, 3.1), or not. But
building against system python works (Snow Leopard contains versions
2.3, 2.5 and 2.6, for Tiger, Leopard, and Snow Leopard compatibility
respectively, with 2.6 being the default). How to specify which Python
you want to build against is specified in [1] (not used myself, but
seems it's what will help you).
HTH,
Boris
[1]: http://www.boost.org/doc/libs/1_41_0/libs/python/doc/building.html#python-configuration-parameters
On Wed, Nov 25, 2009 at 5:30 PM, Wong Hua <wong.hua_at_[hidden]> wrote:
> I would like to install the python headers from boost, but after
> successfully (?) building under mac os 1.5, I get this error when trying to
> build boost on mac os 10.6 machines (tried on two machines with the same
> result)
>
> ./bootstrap.sh doesn't have problems
> ./bjam give me all kinds of errors
>
> The kind of errors I get :
>
> ...failed darwin.compile.c++
> bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/numeric.o...
> darwin.compile.c++
> bin.v2/libs/python/build/darwin-4.2.1/release/threading-multi/list.o
> In file included from
> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/Python.h:57,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â from ./boost/python/detail/wrap_python.hpp:142,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â from ./boost/python/detail/prefix.hpp:13,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â from ./boost/python/list.hpp:8,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â from libs/python/src/list.cpp:5:
> /Library/Frameworks/Python.framework/Versions/2.5/include/python2.5/pyport.h:761:2:
> error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc
> config?)."
>
> On the mac os 10.5 machine
> gcc version 4.0.1 (Apple Inc. build 5490)
>
> On the mac os 10.6 machines
> gcc version 4.0.1 (Apple Inc. build 5490)
> gcc version 4.2.1 (Apple Inc. build 5646) (dot 1)
>
> Python is 2.5.4 for all and located in /Library/Frameworks
>
> are there any options I have to use with bootstrap.sh or bjam?
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net