[Boost-bugs] [Boost C++ Libraries] #6826: boost build fails to detect python3.2 correctly

Subject: [Boost-bugs] [Boost C++ Libraries] #6826: boost build fails to detect python3.2 correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-04-24 13:06:05


#6826: boost build fails to detect python3.2 correctly
------------------------------+---------------------------------------------
 Reporter: Treeve Jelbert | Owner: rwgk
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: Python
  Version: Boost 1.49.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 bootstrap detects python3.2


 but does not locate the library and include files correctly


 This is because when python3.2 is built with threading support, which is
 default on Linux, the include subdirectory and library are named
 python${VERSION}m, with the letter 'm' appended.

 #/usr/bin/python3.2-config --includes
 -I/usr/include/python3.2m

 #/usr/bin/python3.2-config --libs
 -lintl -lpthread -ldl -lutil -lm -lpython3.2m


 or

 $ pkg-config python-3.2 --cflags-only-I --libs-only-l
 -I/usr/include/python3.2m -lpython3.2m


 Building in dir: /usr/src/boost_1_49_0
 boost 1_49_0

 Building Boost.Build engine with toolset gcc...
 tools/build/v2/engine/bin.linuxx86_64/b2
 Detecting Python version... 3.2
 Detecting Python root... /usr
 Unicode/ICU support for Boost.Regex?... /usr
 Generating Boost.Build configuration in project-config.jam...


 ./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No
 such file or directory
 compilation terminated.

     "g++" -ftemplate-depth-128 -Wno-strict-aliasing -march=native
 -mtune=native -m64 -pipe -O3 -finline-functions -Wno-inline -Wall -pthread
 -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_PYTHON_SOURCE -DNDEBUG -I"."
 -I"/usr/include/python3.2" -c -o
 "bin.v2/libs/python/build/gcc-4.7.0/release/threading-multi/numeric.o"
 "libs/python/src/numeric.cpp"

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6826>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC