gcc problems on mac os 10.6...

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?

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-co...
On Wed, Nov 25, 2009 at 5:30 PM, Wong Hua
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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Boris Dušek
-
Wong Hua