|
Boost-Build : |
Subject: [Boost-build] Unable to build Boost.Python with MinGW
From: Davidson, Josh (josh.davidson_at_[hidden])
Date: 2010-01-15 20:30:54
I am trying to put a build of Boost together on Windows XP using MinGW to use the Boost.Python bindings and am running into difficulties. When I attempt to build with bjam, it complains that Python isn't configured. I did some scrounging on the web and edited C:\boost_1_41_0\boost_1_41_0\tools\build\v2\user-config.jam and placed the following two lines near the top of the file:
using python : 2.5 ;
using python : : c:\Python25\python.exe ;
However, I'm still getting the same error message. Below is a dump of my compiler version, the bjam command I am trying to issue to build, and the same command with --debug-configuration. The one weird thing is that it looks like it is attempting to run C:\Python25\python, which is correct (see output after the bjam debug command below), but it is getting hung up on something.
----------------------------------BEGIN COMPILER INFO---------------------------------------
C:\boost_1_41_0\boost_1_41_0>gcc -v
Using built-in specs.
Target: mingw32
Configured with: ../gcc-4.3.3/configure --prefix=/mingw --build=mingw32 --enable
-languages=c,c++ --with-bugurl=http://www.simics.net --disable-nls --disable-win
32-registry --enable-threads --disable-symvers --enable-cxx-flags='-fno-function
-sections -fno-data-sections' --enable-fully-dynamic-string --enable-version-spe
cific-runtime-libs --enable-sjlj-exceptions --with-pkgversion='4.3.3-vt-1 mingw3
2'
Thread model: win32
gcc version 4.3.3 (4.3.3-vt-1 mingw32)
----------------------------------END COMPILER INFO---------------------------------------
----------------------------------BEGIN BJAM COMMAND---------------------------------------
C:\boost_1_41_0\boost_1_41_0>bjam --build-dir=C:\Boost toolset=gcc --build-type=
complete stage
WARNING: No python installation configured and autoconfiguration
failed. See http://www.boost.org/libs/python/doc/building.html
for configuration instructions or pass --without-python to
suppress this message and silently skip all Boost.Python targets
warning: Building Boost.Regex with the optional Unicode/ICU support disabled.
note: Please refer to the Boost.Regex documentation for more information
note: this is a strictly optional feature.
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
----------------------------------END BJAM COMMAND---------------------------------------
----------------------------------BEGIN BJAM DEBUG COMMAND---------------------------------------
C:\boost_1_41_0\boost_1_41_0>bjam --build-dir=C:\Boost toolset=gcc --debug-confi
guration --build-type=complete stage
notice: found boost-build.jam at C:/boost_1_41_0/boost_1_41_0/boost-build.jam
notice: loading Boost.Build from C:/boost_1_41_0/boost_1_41_0/tools/build/v2
notice: Searching C:\WINDOWS H:\ C:\Documents and Settings\davidsj2 C:\boost_1_4
1_0\boost_1_41_0\tools/build/v2 C:/boost_1_41_0/boost_1_41_0/tools/build/v2/kern
el C:/boost_1_41_0/boost_1_41_0/tools/build/v2/util C:/boost_1_41_0/boost_1_41_0
/tools/build/v2/build C:/boost_1_41_0/boost_1_41_0/tools/build/v2/tools C:/boost
_1_41_0/boost_1_41_0/tools/build/v2/contrib C:/boost_1_41_0/boost_1_41_0/tools/b
uild/v2/. for site-config configuration file site-config.jam .
notice: Loading site-config configuration file site-config.jam from C:/boost_1_4
1_0/boost_1_41_0/tools/build/v2/site-config.jam .
notice: Searching H:\ C:\Documents and Settings\davidsj2 C:\boost_1_41_0\boost_1
_41_0\tools/build/v2 C:/boost_1_41_0/boost_1_41_0/tools/build/v2/kernel C:/boost
_1_41_0/boost_1_41_0/tools/build/v2/util C:/boost_1_41_0/boost_1_41_0/tools/buil
d/v2/build C:/boost_1_41_0/boost_1_41_0/tools/build/v2/tools C:/boost_1_41_0/boo
st_1_41_0/tools/build/v2/contrib C:/boost_1_41_0/boost_1_41_0/tools/build/v2/. f
or user-config configuration file user-config.jam .
notice: Loading user-config configuration file user-config.jam from C:/boost_1_4
1_0/boost_1_41_0/tools/build/v2/user-config.jam .
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified version: "2.5"
notice: [python-cfg] Registry indicates Python 2.5 installed at "C:\Python25\"
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Cygwin\bin\python.exe" 2>
&1'
notice: [python-cfg] running command '"python" -c "from sys import *; print('ver
sion=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_in
fo[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "C:\Python25\python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Python25\python.exe" 2>&1
'
notice: [python-cfg] running command '"C:\Python25\python" -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] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Cygwin\bin\python.exe" 2>
&1'
notice: [python-cfg] falling back to "python"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python"
notice: [python-cfg] include path: "Include"
notice: [python-cfg] library path: "\libs"
notice: [python-cfg] DLL search path: "<empty>"
notice: [python-cfg] Configuring python...
notice: [python-cfg] user-specified cmd-or-prefix: "c:Python25python.exe"
notice: [python-cfg] Checking interpreter command "c:Python25python.exe"...
notice: [python-cfg] running command '"c:Python25python.exe" -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] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.
notice: [python-cfg] falling back to "c:Python25python.exe"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "c:Python25python.exe"
notice: [python-cfg] include path: "Include"
notice: [python-cfg] library path: "\libs"
notice: [python-cfg] DLL search path: "<empty>"
notice: [cmdline-cfg] Detected command-line request for gcc: toolset= gcc versio
n=
notice: [cmdline-cfg] toolset gcc not previously configured; attempting to auto-
configure now
notice: will use 'g++' for gcc, condition <toolset>gcc-4.3.3-mingw
notice: using gcc libraries :: <toolset>gcc-4.3.3-mingw :: c:\MinGW/bin c:\MinGW
/lib c:\MinGW/lib32 c:\MinGW/lib64
notice: using gcc archiver :: <toolset>gcc-4.3.3-mingw :: c:\MinGW\bin\ar.exe
notice: using rc compiler :: <toolset>gcc-4.3.3-mingw :: c:\MinGW\bin\windres.ex
e
notice: iostreams: not using zlib compression
notice: iostreams: not using zlib compression
notice: iostreams: not using bzip2 compression
notice: iostreams: not using bzip2 compression
notice: [python-cfg] Configuring python...
notice: [python-cfg] Registry indicates Python 2.5 installed at "C:\Python25\"
notice: [python-cfg] Checking interpreter command "python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Cygwin\bin\python.exe" 2>
&1'
notice: [python-cfg] running command '"python" -c "from sys import *; print('ver
sion=%d.%d\nplatform=%s\nprefix=%s\nexec_prefix=%s\nexecutable=%s' % (version_in
fo[0],version_info[1],platform,prefix,exec_prefix,executable))" 2>&1'
notice: [python-cfg] ...does not invoke a working interpreter
notice: [python-cfg] Checking interpreter command "C:\Python25\python"...
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Python25\python.exe" 2>&1
'
notice: [python-cfg] running command '"C:\Python25\python" -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] ...does not invoke a working interpreter
notice: [python-cfg] No working Python interpreter found.
notice: [python-cfg] running command 'DIR /-C /A:S "C:\Cygwin\bin\python.exe" 2>
&1'
notice: [python-cfg] falling back to "python"
notice: [python-cfg] Details of this Python configuration:
notice: [python-cfg] interpreter command: "python"
notice: [python-cfg] include path: "Include"
notice: [python-cfg] library path: "\libs"
notice: [python-cfg] DLL search path: "<empty>"
WARNING: No python installation configured and autoconfiguration
failed. See http://www.boost.org/libs/python/doc/building.html
for configuration instructions or pass --without-python to
suppress this message and silently skip all Boost.Python targets
warning: Building Boost.Regex with the optional Unicode/ICU support disabled.
note: Please refer to the Boost.Regex documentation for more information
note: this is a strictly optional feature.
warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the
note: directories containing the Expat headers and libraries, respectively.
warning: Graph library does not contain MPI-based parallel components.
note: to enable them, add "using mpi ;" to your user-config.jam
warning: skipping optional Message Passing Interface (MPI) library.
note: to enable MPI support, add "using mpi ;" to user-config.jam.
note: to suppress this message, pass "--without-mpi" to bjam.
note: otherwise, you can safely ignore this message.
Skipping build of: libs/python/build/boost_python <build>no in common properti
es
^C
C:\boost_1_41_0\boost_1_41_0>C:\Python25\python
Python 2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
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