|
Boost : |
Subject: Re: [boost] Unable to build boost python library in 1.46.1
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-03-25 11:44:42
At Fri, 25 Mar 2011 10:38:11 -0400,
Richard Hadsell wrote:
>
> Dave Abrahams wrote:
> > At Thu, 24 Mar 2011 18:33:43 -0400,
> > Richard Hadsell wrote:
> >
> >> I tried to follow the latest Getting Started instructions, which
> >> changed a bit from the last version I built (1.44.0) to build bjam:
> >>
> >> cd tools/build/v2
> >> bootstrap.sh
> >> bjam install --prefix=../../..
> >> cd ../../..
> >> bin/bjam --user-config=user-config.LINUX_AMDF7 threading=multi instruction-set=opteron address-model=64 variant=release link=static,shared --stagedir=stageF7 stage
> >>
> >
> > If you add --debug-configuration to your bjam command-line, it should be revealing.
> >
> Running this command:
>
> bin/bjam --user-config=user-config.LINUX_AMDF7 --debug-configuration threading=multi instruction-set=opteron address-model=64 variant=release link=static,shared --stagedir=stageF7 stage | & tee build.release.log
| grep python and rearranging a bit:
> gcc.compile.c++ bin.v2/libs/python/build/gcc-4.1.2/release/address-model-64/instruction-set-opteron/link-static/threading-multi/numeric.o
> In file included from ./boost/python/detail/prefix.hpp:13,
> from ./boost/python/numeric.hpp:8,
> from libs/python/src/numeric.cpp:6:
> ./boost/python/detail/wrap_python.hpp:50:23: error: pyconfig.h: No such file or directory
OK, so this is failing to find the python headers.
>
> notice: [python-cfg] Configuring python...
> notice: [python-cfg] user-specified version: "2.5"
> notice: [python-cfg] user-specified cmd-or-prefix: "/usr"
> notice: [python-cfg] Checking interpreter command "/usr/bin/python2.5"...
> notice: [python-cfg] running command '"/usr/bin/python2.5" -c "from sys import *; print('version=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_info[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
> notice: [python-cfg] ...requested configuration matched!
> notice: [python-cfg] Details of this Python configuration:
> notice: [python-cfg] interpreter command: "/usr/bin/python2.5"
> notice: [python-cfg] include path: "/usr/include/python2.5"
Does that path have a file called pyconfig.h in it? If not, you might
need to add something to your user-config or site-config file that
gives the correct #include path.
> error: No best alternative for /python_for_extensions
> next alternative: required properties: <python>2.5 <target-os>linux
> matched
> next alternative: required properties: <python>2.5 <target-os>linux
> matched
> error: No best alternative for /python_for_extensions
> next alternative: required properties: <python>2.5 <target-os>linux
> matched
> next alternative: required properties: <python>2.5 <target-os>linux
> matched
I've never really understood the logic behind Boost.Build's matching
of alternatives. I think the messages above are probably innocuous,
but they could be a problem (possibly related to
https://trac.lvk.cs.msu.su/boost.build/wiki/AlternativeSelection).
You should ask about that on the boost.build mailing list.
HTH,
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk