Boost logo

Boost-Build :

Subject: Re: [Boost-build] [External] Re: Building Boost giving python error centos 6.5
From: Whitmore, Mattie [USA] (Whitmore_Mattie_at_[hidden])
Date: 2014-09-11 09:21:14


Hi Volodya, Thank you for getting back to me <python version> is just a point to since this happens with any python version I use. I ran the gcc compile and got the following errors: ./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory ./boost/python/detail/wrap_python.hpp:75:24: error: patchlevel.h: No such file or directory ./boost/python/detail/wrap_python.hpp:78:2: error: #error Python 2.2 or higher is required for this version of Boost.Python. ./boost/python/detail/wrap_python.hpp:142:21: error: Python.h: No such file or directory In file included from ./boost/python/object/pointer_holder.hpp:14, from ./boost/python/to_python_indirect.hpp:10, from ./boost/python/converter/arg_to_python.hpp:10, from ./boost/python/call.hpp:15, from ./boost/python/object_core.hpp:14, from ./boost/python/object.hpp:9, from ./boost/python/tuple.hpp:10, from ./boost/python/numeric.hpp:10, from libs/python/src/numeric.cpp:6: ./boost/python/instance_holder.hpp:34: error: ‘PyObject’ has not been declared ./boost/python/instance_holder.hpp:41: error: expected ‘;’ before ‘(’ token ./boost/python/instance_holder.hpp:45: error: ‘PyObject’ has not been declared In file included from ./boost/python/object/pointer_holder.hpp:21, from ./boost/python/to_python_indirect.hpp:10, from ./boost/python/converter/arg_to_python.hpp:10, from ./boost/python/call.hpp:15, from ./boost/python/object_core.hpp:14, from ./boost/python/object.hpp:9, from ./boost/python/tuple.hpp:10, from ./boost/python/numeric.hpp:10, from libs/python/src/numeric.cpp:6: ./boost/python/detail/wrapper_base.hpp:21: error: expected initializer before ‘*’ token ./boost/python/detail/wrapper_base.hpp:23: error: expected initializer before ‘*’ token ./boost/python/detail/wrapper_base.hpp:30: error: expected initializer before ‘*’ token ./boost/python/detail/wrapper_base.hpp:34: error: expected initializer before ‘*’ token etc. Thanks, Mattie Whitmore ________________________________________ From: Boost-build [boost-build-bounces_at_[hidden]] on behalf of Vladimir Prus [ghost_at_[hidden]] Sent: Thursday, September 11, 2014 2:25 AM To: boost-build_at_[hidden] Subject: [External] Re: [Boost-build] Building Boost giving python error centos 6.5 On 09/11/2014 05:59 AM, Whitmore, Mattie [USA] wrote: > Hello, > > I am working on building boost but I get the following error with both Python 2.6 (default) and Python 2.7. > > I am running a super simple build: > ./bootstrap > ./bjam --layout=tagged install > > but i get the following error: > > > "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE > -DNDEBUG -I"." /-I"/usr/include/<python version>/" -c -o "bin.v2/libs/python/build/gcc-4.4.7/release/threading-multi/numeric.o" > "libs/python/src/numeric.cpp" > > ...failed gcc.compile.c++ bin.v2/libs/python/build/gcc-4.4.7/release/threading-multi/numeric.o... Hi Mattie, the above does not contain any error messages from the compiler. What happens if you run that command by hand? Also, what is: /-I"/usr/include/<python version>/" It does not sound like valid option - did you edit something, or that's exactly what you see? - Volodya _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk