bryancatanzaro / copperhead

Data Parallel Python
Apache License 2.0
207 stars 28 forks source link

Compile error related to boost #18

Closed bucknerns closed 2 years ago

bucknerns commented 7 years ago

Processing /home/user/code_reference/copperhead Complete output from command python setup.py egg_info: Scanning installed packages Setuptools installation detected at /home/user/code/env/lib/python2.7/site-packages Non-egg installation Could not locate setuptools*.egg-info Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.4.tar.gz Extracting in /tmp/tmpdajBlr Now working in /tmp/tmpdajBlr/distribute-0.6.4 Building a Distribute egg in /tmp/pip-q06Tl7-build Creating /tmp/pip-q06Tl7-build/setuptools-0.6c9-py2.7.egg-info Creating /tmp/pip-q06Tl7-build/setuptools.pth scons: Reading SConscript files ...

*************** siteconf.py not found ***************
We will try building anyway, but may not succeed.
Read the README for more details.

Checking g++ version... (cached) 6.2.0
Checking nvcc version... (cached) 8.0
Checking for C++ library cudart... yes
Checking for C++ library python2.7... yes
Checking for C++ library boost_python... yes
Checking for C++ header file thrust/host_vector.h... yes
Checking Thrust version...1.8.1
Checking for C++ header file tbb/tbb.h... no
********************* BACKEND SUPPORT *********************
CUDA backend: True
OpenMP backend: True
TBB backend: False
***********************************************************
Submodule 'backend' (git://github.com/copperhead/copperhead-compiler) registered for path 'backend'
Cloning into '/tmp/pip-q06Tl7-build/backend'...
Submodule path 'backend': checked out '11067c1d4bb1c850e88f9038782c41a6be3edd3c'
scons: done reading SConscript files.
scons: Building targets ...
g++ -o backend/build/allocate.os -c -O2 -Wall -O3 -std=c++0x -Wall -fPIC -DCUDA_SUPPORT -DOMP_SUPPORT -I/usr/local/cuda/include -Ibackend/inc backend/src/allocate.cpp
In file included from backend/inc/rewriter.hpp:146:0,
                 from backend/inc/allocate.hpp:27,
                 from backend/src/allocate.cpp:1:
backend/inc/rewriter.inl: In member function 'boost::static_visitor<std::shared_ptr<const backend::node> >::result_type backend::rewriter<Derived>::operator()(const backend::tuple&)':
backend/inc/rewriter.inl:67:47: error: call of overloaded 'move(std::vector<std::shared_ptr<const backend::expression> >&)' is ambiguous
     return result_type(new tuple(move(n_values), t, ct));
                                               ^
In file included from /usr/include/c++/6/bits/nested_exception.h:40:0,
                 from /usr/include/c++/6/exception:171,
                 from /usr/include/c++/6/new:40,
                 from /usr/include/boost/variant/variant.hpp:19,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/c++/6/bits/move.h:101:5: note: candidate: constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&) [with _Tp = std::vector<std::shared_ptr<const backend::expression> >&; typename std::remove_reference< <template-parameter-1-1> >::type = std::vector<std::shared_ptr<const backend::expression> >]
     move(_Tp&& __t) noexcept
     ^~~~
In file included from /usr/include/boost/move/utility.hpp:29:0,
                 from /usr/include/boost/move/move.hpp:29,
                 from /usr/include/boost/variant/detail/move.hpp:28,
                 from /usr/include/boost/variant/detail/initializer.hpp:23,
                 from /usr/include/boost/variant/variant.hpp:30,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/boost/move/utility_core.hpp:212:93: note: candidate: typename boost::move_detail::remove_reference<T>::type&& boost::move(T&&) [with T = std::vector<std::shared_ptr<const backend::expression> >&; typename boost::move_detail::remove_reference<T>::type = std::vector<std::shared_ptr<const backend::expression> >]
          BOOST_MOVE_FORCEINLINE typename ::boost::move_detail::remove_reference<T>::type && move(T&& t) BOOST_NOEXCEPT
                                                                                             ^~~~
In file included from backend/inc/rewriter.hpp:146:0,
                 from backend/inc/allocate.hpp:27,
                 from backend/src/allocate.cpp:1:
backend/inc/rewriter.inl: In member function 'boost::static_visitor<std::shared_ptr<const backend::node> >::result_type backend::rewriter<Derived>::operator()(const backend::suite&)':
backend/inc/rewriter.inl:226:46: error: call of overloaded 'move(std::vector<std::shared_ptr<const backend::statement> >&)' is ambiguous
     return result_type(new suite(move(n_stmts)));
                                              ^
In file included from /usr/include/c++/6/bits/nested_exception.h:40:0,
                 from /usr/include/c++/6/exception:171,
                 from /usr/include/c++/6/new:40,
                 from /usr/include/boost/variant/variant.hpp:19,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/c++/6/bits/move.h:101:5: note: candidate: constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&) [with _Tp = std::vector<std::shared_ptr<const backend::statement> >&; typename std::remove_reference< <template-parameter-1-1> >::type = std::vector<std::shared_ptr<const backend::statement> >]
     move(_Tp&& __t) noexcept
     ^~~~
In file included from /usr/include/boost/move/utility.hpp:29:0,
                 from /usr/include/boost/move/move.hpp:29,
                 from /usr/include/boost/variant/detail/move.hpp:28,
                 from /usr/include/boost/variant/detail/initializer.hpp:23,
                 from /usr/include/boost/variant/variant.hpp:30,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/boost/move/utility_core.hpp:212:93: note: candidate: typename boost::move_detail::remove_reference<T>::type&& boost::move(T&&) [with T = std::vector<std::shared_ptr<const backend::statement> >&; typename boost::move_detail::remove_reference<T>::type = std::vector<std::shared_ptr<const backend::statement> >]
          BOOST_MOVE_FORCEINLINE typename ::boost::move_detail::remove_reference<T>::type && move(T&& t) BOOST_NOEXCEPT
                                                                                             ^~~~
In file included from backend/inc/rewriter.hpp:146:0,
                 from backend/inc/allocate.hpp:27,
                 from backend/src/allocate.cpp:1:
backend/inc/rewriter.inl: In member function 'boost::static_visitor<std::shared_ptr<const backend::node> >::result_type backend::rewriter<Derived>::operator()(const backend::structure&)':
backend/inc/rewriter.inl:247:70: error: call of overloaded 'move(std::vector<std::shared_ptr<const backend::ctype::type_t> >&)' is ambiguous
     return result_type(new structure(n_id, n_stmts, move(new_typevars)));
                                                                      ^
In file included from /usr/include/c++/6/bits/nested_exception.h:40:0,
                 from /usr/include/c++/6/exception:171,
                 from /usr/include/c++/6/new:40,
                 from /usr/include/boost/variant/variant.hpp:19,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/c++/6/bits/move.h:101:5: note: candidate: constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&) [with _Tp = std::vector<std::shared_ptr<const backend::ctype::type_t> >&; typename std::remove_reference< <template-parameter-1-1> >::type = std::vector<std::shared_ptr<const backend::ctype::type_t> >]
     move(_Tp&& __t) noexcept
     ^~~~
In file included from /usr/include/boost/move/utility.hpp:29:0,
                 from /usr/include/boost/move/move.hpp:29,
                 from /usr/include/boost/variant/detail/move.hpp:28,
                 from /usr/include/boost/variant/detail/initializer.hpp:23,
                 from /usr/include/boost/variant/variant.hpp:30,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/boost/move/utility_core.hpp:212:93: note: candidate: typename boost::move_detail::remove_reference<T>::type&& boost::move(T&&) [with T = std::vector<std::shared_ptr<const backend::ctype::type_t> >&; typename boost::move_detail::remove_reference<T>::type = std::vector<std::shared_ptr<const backend::ctype::type_t> >]
          BOOST_MOVE_FORCEINLINE typename ::boost::move_detail::remove_reference<T>::type && move(T&& t) BOOST_NOEXCEPT
                                                                                             ^~~~
backend/src/allocate.cpp: In member function 'std::shared_ptr<const backend::ctype::type_t> backend::allocate::container_type(const backend::ctype::type_t&)':
backend/src/allocate.cpp:52:22: error: call of overloaded 'move(std::vector<std::shared_ptr<const backend::ctype::type_t> >&)' is ambiguous
             move(subs));
                      ^
In file included from /usr/include/c++/6/bits/nested_exception.h:40:0,
                 from /usr/include/c++/6/exception:171,
                 from /usr/include/c++/6/new:40,
                 from /usr/include/boost/variant/variant.hpp:19,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/c++/6/bits/move.h:101:5: note: candidate: constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&) [with _Tp = std::vector<std::shared_ptr<const backend::ctype::type_t> >&; typename std::remove_reference< <template-parameter-1-1> >::type = std::vector<std::shared_ptr<const backend::ctype::type_t> >]
     move(_Tp&& __t) noexcept
     ^~~~
In file included from /usr/include/boost/move/utility.hpp:29:0,
                 from /usr/include/boost/move/move.hpp:29,
                 from /usr/include/boost/variant/detail/move.hpp:28,
                 from /usr/include/boost/variant/detail/initializer.hpp:23,
                 from /usr/include/boost/variant/variant.hpp:30,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/boost/move/utility_core.hpp:212:93: note: candidate: typename boost::move_detail::remove_reference<T>::type&& boost::move(T&&) [with T = std::vector<std::shared_ptr<const backend::ctype::type_t> >&; typename boost::move_detail::remove_reference<T>::type = std::vector<std::shared_ptr<const backend::ctype::type_t> >]
          BOOST_MOVE_FORCEINLINE typename ::boost::move_detail::remove_reference<T>::type && move(T&& t) BOOST_NOEXCEPT
                                                                                             ^~~~
backend/src/allocate.cpp: In member function 'boost::static_visitor<std::shared_ptr<const backend::node> >::result_type backend::allocate::operator()(const backend::bind&)':
backend/src/allocate.cpp:145:51: error: call of overloaded 'move(std::vector<std::shared_ptr<const backend::statement> >&)' is ambiguous
         return make_shared<const suite>(move(stmts));
                                                   ^
In file included from /usr/include/c++/6/bits/nested_exception.h:40:0,
                 from /usr/include/c++/6/exception:171,
                 from /usr/include/c++/6/new:40,
                 from /usr/include/boost/variant/variant.hpp:19,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/c++/6/bits/move.h:101:5: note: candidate: constexpr typename std::remove_reference< <template-parameter-1-1> >::type&& std::move(_Tp&&) [with _Tp = std::vector<std::shared_ptr<const backend::statement> >&; typename std::remove_reference< <template-parameter-1-1> >::type = std::vector<std::shared_ptr<const backend::statement> >]
     move(_Tp&& __t) noexcept
     ^~~~
In file included from /usr/include/boost/move/utility.hpp:29:0,
                 from /usr/include/boost/move/move.hpp:29,
                 from /usr/include/boost/variant/detail/move.hpp:28,
                 from /usr/include/boost/variant/detail/initializer.hpp:23,
                 from /usr/include/boost/variant/variant.hpp:30,
                 from /usr/include/boost/variant.hpp:17,
                 from backend/inc/node.hpp:19,
                 from backend/inc/allocate.hpp:18,
                 from backend/src/allocate.cpp:1:
/usr/include/boost/move/utility_core.hpp:212:93: note: candidate: typename boost::move_detail::remove_reference<T>::type&& boost::move(T&&) [with T = std::vector<std::shared_ptr<const backend::statement> >&; typename boost::move_detail::remove_reference<T>::type = std::vector<std::shared_ptr<const backend::statement> >]
          BOOST_MOVE_FORCEINLINE typename ::boost::move_detail::remove_reference<T>::type && move(T&& t) BOOST_NOEXCEPT
                                                                                             ^~~~
scons: *** [backend/build/allocate.os] Error 1
scons: building terminated because of errors.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-q06Tl7-build/setup.py", line 40, in <module>
    raise CompileError("Error while building Python Extensions")
distutils.errors.CompileError: Error while building Python Extensions

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-q06Tl7-build/