viennacl / pyviennacl-dev

Developer repository for PyViennaCL. Visit http://viennacl.sourceforge.net/ for latest releases.
MIT License
32 stars 6 forks source link

Unable to compile on Ubuntu 20.04 #46

Open be-thomas opened 3 years ago

be-thomas commented 3 years ago

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
deepakraina99 commented 2 years ago

Same error

FrederikVinter commented 2 years ago

Got the same error as well