When i try to compile the code using -
python3 setup.py build
I get the following error -
In file included from external/boost-python-ublas-subset/boost_subset/boost/bind/mem_fn.hpp:25,
from external/boost-python-ublas-subset/boost_subset/boost/mem_fn.hpp:22,
from external/boost-python-ublas-subset/boost_subset/boost/function/detail/prologue.hpp:18,
from external/boost-python-ublas-subset/boost_subset/boost/function/function_template.hpp:13,
from external/boost-python-ublas-subset/boost_subset/boost/function/detail/maybe_include.hpp:13,
from external/boost-python-ublas-subset/boost_subset/boost/function/function0.hpp:11,
from external/boost-python-ublas-subset/boost_subset/boost/python/errors.hpp:13,
from external/boost-python-ublas-subset/boost_subset/boost/python/handle.hpp:11,
from external/boost-python-ublas-subset/boost_subset/libs/python/src/converter/builtin_converters.cpp:6:
external/boost-python-ublas-subset/boost_subset/boost/get_pointer.hpp:27:40: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
27 | template<class T> T * get_pointer(std::auto_ptr<T> const& p)
| ^~~~~~~~
In file included from /usr/include/c++/9/memory:80,
from external/boost-python-ublas-subset/boost_subset/boost/function/function_base.hpp:16,
from external/boost-python-ublas-subset/boost_subset/boost/function/detail/prologue.hpp:17,
from external/boost-python-ublas-subset/boost_subset/boost/function/function_template.hpp:13,
from external/boost-python-ublas-subset/boost_subset/boost/function/detail/maybe_include.hpp:13,
from external/boost-python-ublas-subset/boost_subset/boost/function/function0.hpp:11,
from external/boost-python-ublas-subset/boost_subset/boost/python/errors.hpp:13,
from external/boost-python-ublas-subset/boost_subset/boost/python/handle.hpp:11,
from external/boost-python-ublas-subset/boost_subset/libs/python/src/converter/builtin_converters.cpp:6:
/usr/include/c++/9/bits/unique_ptr.h:53:28: note: declared here
53 | template<typename> class auto_ptr;
| ^~~~~~~~
external/boost-python-ublas-subset/boost_subset/libs/python/src/converter/builtin_converters.cpp: In function ‘void* pyviennaclboost::python::converter::{anonymous}::convert_to_cstring(PyObject*)’:
external/boost-python-ublas-subset/boost_subset/libs/python/src/converter/builtin_converters.cpp:51:35: error: invalid conversion from ‘const void*’ to ‘void*’ [-fpermissive]
51 | return PyUnicode_Check(obj) ? _PyUnicode_AsString(obj) : 0;
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
When i try to compile the code using - python3 setup.py build
I get the following error -