[Boost-bugs] [Boost C++ Libraries] #4657: Boost.MPI Compile failure with Python 3

Subject: [Boost-bugs] [Boost C++ Libraries] #4657: Boost.MPI Compile failure with Python 3
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-18 18:04:50


#4657: Boost.MPI Compile failure with Python 3
------------------------------+---------------------------------------------
 Reporter: smr@… | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: mpi
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Boost 1.44 configured to use Python 3.1 fails on two Boost.MPI files. The
 two fatal error messages are reproduced below, edited (see
 http://lists.boost.org/Archives/boost/2010/09/170659.php for the full
 error output).

 This failure was discussed in Debian (http://bugs.debian.org/cgi-
 bin/bugreport.cgi?bug=595786) and Andreas Kloeckner provided a patch. See
 attached.

 -Steve

     "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -g
 -D_REENTRANT -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MPI_DYN_LINK=1
 -DBOOST_MPI_PYTHON_DYN_LINK=1 -DBOOST_PYTHON_DYN_LINK=1 -DNDEBUG -I"."
 -I"/usr/include/python3.1" -I"/usr/lib/openmpi/include"
 -I"/usr/lib/openmpi/include/openmpi" -c -o
 "bin.v2/libs/mpi/build/gcc-4.4.5/release/debug-symbols-on/python-3.1
 /threading-multi/python/datatypes.o" "libs/mpi/src/python/datatypes.cpp"


 libs/mpi/src/python/datatypes.cpp: In function ‘void
 boost::mpi::python::export_datatypes()’:
 libs/mpi/src/python/datatypes.cpp:20: error: ‘PyInt_Type’ was not
 declared in this scope
 In file included from ./boost/function/detail/prologue.hpp:17,
                  from ./boost/function/function_template.hpp:13,
                  from ./boost/function/detail/maybe_include.hpp:13,
                  from ./boost/function/function0.hpp:11,
                  from ./boost/python/errors.hpp:13,
                  from ./boost/python/handle.hpp:11,
                  from ./boost/python/converter/arg_to_python_base.hpp:7,
                  from ./boost/python/converter/arg_to_python.hpp:14,
                  from ./boost/python/call.hpp:15,
                  from ./boost/python/object_core.hpp:14,
                  from ./boost/python/object.hpp:9,
                  from ./boost/mpi/python/serialize.hpp:25,
                  from libs/mpi/src/python/datatypes.cpp:13:

 ...failed gcc.compile.c++ bin.v2/libs/mpi/build/gcc-4.4.5/release/debug-
 symbols-on/python-3.1/threading-multi/python/datatypes.o...

 and

     "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -g
 -D_REENTRANT -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_MPI_DYN_LINK=1
 -DBOOST_MPI_PYTHON_DYN_LINK=1 -DBOOST_PYTHON_DYN_LINK=1 -DNDEBUG -I"."
 -I"/usr/include/python3.1" -I"/usr/lib/openmpi/include"
 -I"/usr/lib/openmpi/include/openmpi" -c -o
 "bin.v2/libs/mpi/build/gcc-4.4.5/release/debug-symbols-on/python-3.1
 /threading-multi/python/py_environment.o"
 "libs/mpi/src/python/py_environment.cpp"

 libs/mpi/src/python/py_environment.cpp: In function ‘bool
 boost::mpi::python::mpi_init(boost::python::list, bool)’:
 libs/mpi/src/python/py_environment.cpp:53: error: cannot convert
 Ã¢â‚¬Ëœchar**’ to ‘wchar_t**’ for argument ‘2’ to ‘void
 PySys_SetArgv(int, wchar_t**)’
 ...failed gcc.compile.c++ bin.v2/libs/mpi/build/gcc-4.4.5/release/debug-
 symbols-on/python-3.1/threading-multi/python/py_environment.o...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4657>
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:04 UTC