Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 441804 - dev-libs/boost[mpi,python]: Fix compilation of mpi.so Python module with C++11
Summary: dev-libs/boost[mpi,python]: Fix compilation of mpi.so Python module with C++11
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: C++ Team [disbanded]
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 441810
  Show dependency tree
 
Reported: 2012-11-05 01:27 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2012-11-18 15:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
boost.patch (boost.patch,330 bytes, patch)
2012-11-05 01:30 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
${FILESDIR}/boost-1.51.0-mpi_c++11.patch (boost-1.51.0-mpi_c++11.patch,779 bytes, patch)
2012-11-05 01:32 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2012-11-05 01:27:10 UTC
gcc.compile.c++ bin.v2/libs/mpi/build/gcc-4.7/gentoorelease/pch-off/threading-multi/python/py_nonblocking.o

    "x86_64-pc-linux-gnu-g++"  -ftemplate-depth-128 -march=core2 -O2 -fno-ident -frecord-gcc-switches -pipe -Wall -std=gnu++11 -finline-functions -Wno-inline -Wall -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/python2.6" -c -o "bin.v2/libs/mpi/build/gcc-4.7/gentoorelease/pch-off/threading-multi/python/py_nonblocking.o" "libs/mpi/src/python/py_nonblocking.cpp"

In file included from ./boost/python/detail/wrap_python.hpp:50:0,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/args.hpp:8,
                 from ./boost/python.hpp:11,
                 from libs/mpi/src/python/py_nonblocking.cpp:21:
/usr/include/python2.6/pyconfig.h:1067:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/x86_64-pc-linux-gnu/bits/os_defines.h:40:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++config.h:414,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/bits/stl_algobase.h:60,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/vector:61,
                 from libs/mpi/src/python/py_nonblocking.cpp:17:
/usr/include/features.h:168:0: note: this is the location of the previous definition
In file included from ./boost/python/detail/wrap_python.hpp:50:0,
                 from ./boost/python/detail/prefix.hpp:13,
                 from ./boost/python/args.hpp:8,
                 from ./boost/python.hpp:11,
                 from libs/mpi/src/python/py_nonblocking.cpp:21:
/usr/include/python2.6/pyconfig.h:1079:0: warning: "_XOPEN_SOURCE" redefined [enabled by default]
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/x86_64-pc-linux-gnu/bits/os_defines.h:40:0,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/x86_64-pc-linux-gnu/bits/c++config.h:414,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/bits/stl_algobase.h:60,
                 from /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/vector:61,
                 from libs/mpi/src/python/py_nonblocking.cpp:17:
/usr/include/features.h:170:0: note: this is the location of the previous definition
libs/mpi/src/python/py_nonblocking.cpp: In function ‘std::auto_ptr<std::vector<boost::mpi::python::request_with_value> > {anonymous}::make_request_list_from_py_list(boost::python::api::object)’:
libs/mpi/src/python/py_nonblocking.cpp:70:39: warning: ‘auto_ptr’ is deprecated (declared at /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.2/include/g++-v4/backward/auto_ptr.h:87) [-Wdeprecated-declarations]
libs/mpi/src/python/py_nonblocking.cpp: In function ‘boost::python::api::object {anonymous}::wrap_wait_any({anonymous}::request_list&)’:
libs/mpi/src/python/py_nonblocking.cpp:124:50: error: could not convert ‘std::make_tuple(_Elements&& ...) [with _Elements = {const boost::python::api::object, boost::mpi::status&, long int}; typename std::__decay_and_strip<_Elements>::__type = <type error>]((* & result.std::pair<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > >::first), (* & std::distance<__gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > >((& requests)->std::vector<_Tp, _Alloc>::begin<boost::mpi::python::request_with_value, std::allocator<boost::mpi::python::request_with_value> >(), result.std::pair<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > >::second)))’ from ‘std::tuple<boost::python::api::object, boost::mpi::status, long int>’ to ‘boost::python::api::object’
libs/mpi/src/python/py_nonblocking.cpp: In function ‘boost::python::api::object {anonymous}::wrap_test_any({anonymous}::request_list&)’:
libs/mpi/src/python/py_nonblocking.cpp:140:53: error: could not convert ‘std::make_tuple(_Elements&& ...) [with _Elements = {const boost::python::api::object, boost::mpi::status&, long int}; typename std::__decay_and_strip<_Elements>::__type = <type error>]((* & result.boost::optional<T>::operator-><std::pair<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > > >()->std::pair<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > >::first), (* & std::distance<__gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > >((& requests)->std::vector<_Tp, _Alloc>::begin<boost::mpi::python::request_with_value, std::allocator<boost::mpi::python::request_with_value> >(), result.boost::optional<T>::operator-><std::pair<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::
mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > > >()->std::pair<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > >::second)))’ from ‘std::tuple<boost::python::api::object, boost::mpi::status, long int>’ to ‘boost::python::api::object’
libs/mpi/src/python/py_nonblocking.cpp:143:3: warning: control reaches end of non-void function [-Wreturn-type]
libs/mpi/src/python/py_nonblocking.cpp: In function ‘boost::python::api::object {anonymous}::wrap_wait_any({anonymous}::request_list&)’:
libs/mpi/src/python/py_nonblocking.cpp:125:3: warning: control reaches end of non-void function [-Wreturn-type]
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-11-05 01:30:22 UTC
Created attachment 328382 [details, diff]
boost.patch

Patch backported from Progress Overlay.
Comment 2 Arfrever Frehtes Taifersar Arahesis 2012-11-05 01:32:01 UTC
Created attachment 328384 [details, diff]
${FILESDIR}/boost-1.51.0-mpi_c++11.patch

Patch copied from Progress Overlay.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-11-08 05:43:09 UTC
C++11 won't be supported just yet.