Compiling fails Ubuntu 16.04.5 LTS gcc5.4
Hi! I'm trying to compile the c++ nslr tool. Unfortunately it is failling.
gcc-5.4, ubuntu 16.04.5, python3.5
Either with make, or with
cc -I../../../etcompvenv/include/python3.5m/ -I../deps/pybind11-2.2.1/include/ -I../deps/eigen-eigen-5a0156e40feb/ -std=c++14 cppnslr.cpp
Error seems to be:
nslr/../segmented_regression.hpp:519:49: required from here
/usr/include/c++/5/bits/stl_list.h:114:71: error: no matching function for call to ‘std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>::tuple(double, double)’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
and
/usr/include/c++/5/tuple:612:19: note: template argument deduction/substitution failed:
/usr/include/c++/5/tuple:608:44: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
template<typename _U1, typename _U2, typename = typename
I don't have much experience with c++ so I cannot debug it myself. I used the Eigen & pybind versions specified in the setup.py
Happy to follow all kinds of instructions to get it to work :)
Full setup.py log
running install
running bdist_egg
running egg_info
writing nslr.egg-info/PKG-INFO
writing dependency_links to nslr.egg-info/dependency_links.txt
writing top-level names to nslr.egg-info/top_level.txt
reading manifest file 'nslr.egg-info/SOURCES.txt'
writing manifest file 'nslr.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/include/python3.5m -c /tmp/tmppvfg1wou.cpp -o tmp/tmppvfg1wou.o -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -I/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/include/python3.5m -c /tmp/tmpx4chvy0k.cpp -o tmp/tmpx4chvy0k.o -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
building 'nslr.cppnslr' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ideps/eigen-eigen-5a0156e40feb -Ideps/pybind11-2.2.1/include -I/usr/include/python3.5m -I/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/include/python3.5m -c nslr/cppnslr.cpp -o build/temp.linux-x86_64-3.5/nslr/cppnslr.o -DVERSION_INFO="0.0.5" -std=c++14 -fvisibility=hidden
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from deps/pybind11-2.2.1/include/pybind11/pytypes.h:12:0,
from deps/pybind11-2.2.1/include/pybind11/cast.h:13,
from deps/pybind11-2.2.1/include/pybind11/attr.h:13,
from deps/pybind11-2.2.1/include/pybind11/pybind11.h:43,
from deps/pybind11-2.2.1/include/pybind11/numpy.h:12,
from deps/pybind11-2.2.1/include/pybind11/eigen.h:12,
from nslr/cppnslr.cpp:16:
nslr/cppnslr.cpp: In function ‘PyObject* PyInit_cppnslr()’:
deps/pybind11-2.2.1/include/pybind11/detail/common.h:242:20: warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
return pybind11_init(); \
^
nslr/cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
deps/pybind11-2.2.1/include/pybind11/detail/common.h:227:22: note: declared here
static PyObject *pybind11_init(); \
^
nslr/cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
deps/pybind11-2.2.1/include/pybind11/detail/common.h:242:20: warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
return pybind11_init(); \
^
nslr/cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
deps/pybind11-2.2.1/include/pybind11/detail/common.h:227:22: note: declared here
static PyObject *pybind11_init(); \
^
nslr/cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
deps/pybind11-2.2.1/include/pybind11/detail/common.h:242:34: warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
return pybind11_init(); \
^
nslr/cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
deps/pybind11-2.2.1/include/pybind11/detail/common.h:227:22: note: declared here
static PyObject *pybind11_init(); \
^
nslr/cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
In file included from nslr/cppnslr.cpp:15:0:
nslr/../segmented_regression.hpp: In instantiation of ‘Segmentation<Segment>::Vectors Segmentation<Segment>::operator()(Timestamps) [with Segment = Segment<Eigen::Array<double, 2, 1> >; Segmentation<Segment>::Vectors = Eigen::Array<double, -1, 2>; typename Segment::Vector = Eigen::Array<double, 2, 1>; Timestamps = Eigen::Ref<const Eigen::Array<double, -1, 1> >]’:
nslr/../segmented_regression.hpp:667:23: required from here
nslr/../segmented_regression.hpp:476:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(size_t i=0; i < nts.rows(); ++i) {
^
nslr/../segmented_regression.hpp: In instantiation of ‘std::size_t matrix_hash<T>::operator()(const T&) const [with T = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >; std::size_t = long unsigned int]’:
/usr/include/c++/5/bits/hashtable_policy.h:1257:23: required from ‘std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::__hash_code std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::_M_hash_code(const _Key&) const [with _Key = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >; _Value = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >; _ExtractKey = std::__detail::_Identity; _H1 = matrix_hash<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; _H2 = std::__detail::_Mod_range_hashing; std::__detail::_Hash_code_base<_Key, _Value, _ExtractKey, _H1, _H2, std::__detail::_Default_ranged_hash, true>::__hash_code = long unsigned int]’
/usr/include/c++/5/bits/hashtable.h:1305:50: required from ‘std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::find(const key_type&) [with _Key = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >; _Value = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >; _Alloc = std::allocator<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; _ExtractKey = std::__detail::_Identity; _Equal = std::equal_to<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; _H1 = matrix_hash<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits<true, true, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator = std::__detail::_Node_iterator<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >, true, true>; std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::key_type = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >]’
/usr/include/c++/5/bits/unordered_set.h:586:29: required from ‘std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator std::unordered_set<_Value, _Hash, _Pred, _Alloc>::find(const key_type&) [with _Value = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >; _Hash = matrix_hash<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; _Pred = std::equal_to<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; _Alloc = std::allocator<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> > >; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::iterator = std::__detail::_Node_iterator<Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >, true, true>; std::unordered_set<_Value, _Hash, _Pred, _Alloc>::key_type = Eigen::MatrixWrapper<Eigen::Array<double, 1, 2> >]’
nslr/../segmented_regression.hpp:670:27: required from here
nslr/../segmented_regression.hpp:645:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t i = 0; i < matrix.size(); ++i) {
^
In file included from /u# Bash Logsr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h: In instantiation of ‘std::_List_node<_Tp>::_List_node(_Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>]’:
/usr/include/c++/5/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_List_node<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >; _Args = {double, double}; _Tp = std::_List_node<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
/usr/include/c++/5/bits/stl_list.h:574:8: required from ‘std::__cxx11::list<_Tp, _Alloc>::_Node* std::__cxx11::list<_Tp, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>; _Alloc = std::allocator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >; std::__cxx11::list<_Tp, _Alloc>::_Node = std::_List_node<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
/usr/include/c++/5/bits/stl_list.h:1763:32: required from ‘void std::__cxx11::list<_Tp, _Alloc>::_M_insert(std::__cxx11::list<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>; _Alloc = std::allocator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
/usr/include/c++/5/bits/stl_list.h:1099:11: required from ‘void std::__cxx11::list<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>; _Alloc = std::allocator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
nslr/../segmented_regression.hpp:490:3: required from ‘TridiagonalSolver<Tt, Tx>::TridiagonalSolver() [with Tt = double; Tx = Eigen::Array<double, 1, 2>]’
nslr/../segmented_regression.hpp:519:49: required from here
/usr/include/c++/5/bits/stl_list.h:114:71: error: no matching function for call to ‘std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>::tuple(double, double)’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:686:9: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::pair<_U1, _U2>&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:686:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:681:9: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::pair<_U1, _U2>&)
tuple(allocator_arg_t __tag, const _Alloc& __a,
^
/usr/include/c++/5/tuple:681:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:676:2: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_U1, _U2>&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:676:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:669:2: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_U1, _U2>&)
tuple(allocator_arg_t __tag, const _Alloc& __a,
^
/usr/include/c++/5/tuple:669:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:665:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_T1, _T2>&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in)
^
/usr/include/c++/5/tuple:665:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:661:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_T1, _T2>&)
tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in)
^
/usr/include/c++/5/tuple:661:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:656:2: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, _U1&&, _U2&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2)
^
/usr/include/c++/5/tuple:656:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:651:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const _T1&, const _T2&)
tuple(allocator_arg_t __tag, const _Alloc& __a,
^
/usr/include/c++/5/tuple:651:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:647:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&)
tuple(allocator_arg_t __tag, const _Alloc& __a)
^
/usr/include/c++/5/tuple:647:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:640:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(std::pair<_U1, _U2>&&)
constexpr tuple(pair<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:640:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘std::pair<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:634:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(const std::pair<_U1, _U2>&)
constexpr tuple(const pair<_U1, _U2>& __in)
^
/usr/include/c++/5/tuple:634:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:628:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(std::tuple<_U1, _U2>&&)
constexpr tuple(tuple<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:628:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘std::tuple<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:622:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(const std::tuple<_U1, _U2>&)
constexpr tuple(const tuple<_U1, _U2>& __in)
^
/usr/include/c++/5/tuple:622:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from nslr/../segmented_regression.hpp:5,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘const std::tuple<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from nslr/../segmented_regression.hpp:4,
from nslr/cppnslr.cpp:15:
/usr/include/c++/5/tuple:617:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple(std::tuple<_T1, _T2>&&) [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple(tuple&&) = default;
^
/usr/include/c++/5/tuple:617:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/tuple:615:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple(const std::tuple<_T1, _T2>&) [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple(const tuple&) = default;
^
/usr/include/c++/5/tuple:615:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/tuple:612:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&)
constexpr tuple(_U1&& __a1, _U2&& __a2)
^
/usr/include/c++/5/tuple:612:19: note: template argument deduction/substitution failed:
/usr/include/c++/5/tuple:608:44: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
template<typename _U1, typename _U2, typename = typename
^
/usr/include/c++/5/tuple:605:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple(const _T1&, const _T2&) [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple(const _T1& __a1, const _T2& __a2)
^
/usr/include/c++/5/tuple:605:17: note: no known conversion for argument 1 from ‘double’ to ‘const Eigen::Array<double, 1, 2>&’
/usr/include/c++/5/tuple:601:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple() [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple()
^
/usr/include/c++/5/tuple:601:17: note: candidate expects 0 arguments, 2 provided
Traceback (most recent call last):
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 118, in _compile
extra_postargs)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 159, in _spawn_posix
% (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 114, in build_extensions
return self._do_build_extensions()
File "setup.py", line 110, in _do_build_extensions
build_ext.build_extensions(self)
File "/home/student/b/behinger/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
self.build_extension(ext)
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
_build_ext.build_extension(self, ext)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 532, in build_extension
depends=ext.depends)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 574, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 120, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command 'x86_64-linux-gnu-gcc' failed with exit status 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 161, in <module>
try_setup(True)
File "setup.py", line 158, in try_setup
setup(**params)
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/__init__.py", line 131, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 172, in run
cmd = self.call_command('install_lib', warn_dir=0)
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
self.run_command(cmdname)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/install_lib.py", line 11, in run
self.build()
File "/usr/lib/python3.5/distutils/command/install_lib.py", line 109, in build
self.run_command('build_ext')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/net/store/nbp/users/behinger/projects/etcomp/local/etcompvenv/lib/python3.5/site-packages/setuptools/command/build_ext.py", line 78, in run
_build_ext.run(self)
File "/home/student/b/behinger/.local/lib/python3.5/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "setup.py", line 116, in build_extensions
raise BuildFailed()
__main__.BuildFailed
Full log gcc bash:
gcc -I../../../etcompvenv/include/python3.5m/ -I../deps/pybind11-2.2.1/include/ -I../deps/eigen-eigen-5a0156e40feb/ -std=c++14 cppnslr.cpp
In file included from ../deps/pybind11-2.2.1/include/pybind11/pytypes.h:12:0,
from ../deps/pybind11-2.2.1/include/pybind11/cast.h:13,
from ../deps/pybind11-2.2.1/include/pybind11/attr.h:13,
from ../deps/pybind11-2.2.1/include/pybind11/pybind11.h:43,
from ../deps/pybind11-2.2.1/include/pybind11/numpy.h:12,
from ../deps/pybind11-2.2.1/include/pybind11/eigen.h:12,
from cppnslr.cpp:16:
cppnslr.cpp: In function ‘PyObject* PyInit_cppnslr()’:
../deps/pybind11-2.2.1/include/pybind11/detail/common.h:242:20: warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
return pybind11_init(); \
^
cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
../deps/pybind11-2.2.1/include/pybind11/detail/common.h:227:22: note: declared here
static PyObject *pybind11_init(); \
^
cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
../deps/pybind11-2.2.1/include/pybind11/detail/common.h:242:20: warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
return pybind11_init(); \
^
cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
../deps/pybind11-2.2.1/include/pybind11/detail/common.h:227:22: note: declared here
static PyObject *pybind11_init(); \
^
cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
../deps/pybind11-2.2.1/include/pybind11/detail/common.h:242:34: warning: ‘PyObject* pybind11_init()’ is deprecated: PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE [-Wdeprecated-declarations]
return pybind11_init(); \
^
cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
../deps/pybind11-2.2.1/include/pybind11/detail/common.h:227:22: note: declared here
static PyObject *pybind11_init(); \
^
cppnslr.cpp:23:1: note: in expansion of macro ‘PYBIND11_PLUGIN’
PYBIND11_PLUGIN(cppnslr) {
^
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h: In instantiation of ‘std::_List_node<_Tp>::_List_node(_Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>]’:
/usr/include/c++/5/ext/new_allocator.h:120:4: required from ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = std::_List_node<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >; _Args = {double, double}; _Tp = std::_List_node<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
/usr/include/c++/5/bits/stl_list.h:574:8: required from ‘std::__cxx11::list<_Tp, _Alloc>::_Node* std::__cxx11::list<_Tp, _Alloc>::_M_create_node(_Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>; _Alloc = std::allocator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >; std::__cxx11::list<_Tp, _Alloc>::_Node = std::_List_node<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
/usr/include/c++/5/bits/stl_list.h:1763:32: required from ‘void std::__cxx11::list<_Tp, _Alloc>::_M_insert(std::__cxx11::list<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>; _Alloc = std::allocator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >; std::__cxx11::list<_Tp, _Alloc>::iterator = std::_List_iterator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
/usr/include/c++/5/bits/stl_list.h:1099:11: required from ‘void std::__cxx11::list<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {double, double}; _Tp = std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>; _Alloc = std::allocator<std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double> >]’
../segmented_regression.hpp:490:3: required from ‘TridiagonalSolver<Tt, Tx>::TridiagonalSolver() [with Tt = double; Tx = Eigen::Array<double, 1, 2>]’
../segmented_regression.hpp:519:49: required from here
/usr/include/c++/5/bits/stl_list.h:114:71: error: no matching function for call to ‘std::tuple<Eigen::Array<double, 1, 2, 1, 1, 2>, double>::tuple(double, double)’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:686:9: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::pair<_U1, _U2>&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, pair<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:686:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:681:9: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::pair<_U1, _U2>&)
tuple(allocator_arg_t __tag, const _Alloc& __a,
^
/usr/include/c++/5/tuple:681:9: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:676:2: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_U1, _U2>&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:676:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:669:2: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_U1, _U2>&)
tuple(allocator_arg_t __tag, const _Alloc& __a,
^
/usr/include/c++/5/tuple:669:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:665:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, std::tuple<_T1, _T2>&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, tuple&& __in)
^
/usr/include/c++/5/tuple:665:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:661:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const std::tuple<_T1, _T2>&)
tuple(allocator_arg_t __tag, const _Alloc& __a, const tuple& __in)
^
/usr/include/c++/5/tuple:661:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:656:2: note: candidate: template<class _Alloc, class _U1, class _U2> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, _U1&&, _U2&&)
tuple(allocator_arg_t __tag, const _Alloc& __a, _U1&& __a1, _U2&& __a2)
^
/usr/include/c++/5/tuple:656:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:651:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&, const _T1&, const _T2&)
tuple(allocator_arg_t __tag, const _Alloc& __a,
^
/usr/include/c++/5/tuple:651:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:647:2: note: candidate: template<class _Alloc> std::tuple<_T1, _T2>::tuple(std::allocator_arg_t, const _Alloc&)
tuple(allocator_arg_t __tag, const _Alloc& __a)
^
/usr/include/c++/5/tuple:647:2: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: cannot convert ‘std::forward<double>((* & __args#0))’ (type ‘double’) to type ‘std::allocator_arg_t’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:640:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(std::pair<_U1, _U2>&&)
constexpr tuple(pair<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:640:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘std::pair<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:634:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(const std::pair<_U1, _U2>&)
constexpr tuple(const pair<_U1, _U2>& __in)
^
/usr/include/c++/5/tuple:634:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:628:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(std::tuple<_U1, _U2>&&)
constexpr tuple(tuple<_U1, _U2>&& __in)
^
/usr/include/c++/5/tuple:628:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘std::tuple<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:622:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(const std::tuple<_U1, _U2>&)
constexpr tuple(const tuple<_U1, _U2>& __in)
^
/usr/include/c++/5/tuple:622:19: note: template argument deduction/substitution failed:
In file included from /usr/include/c++/5/list:63:0,
from ../segmented_regression.hpp:5,
from cppnslr.cpp:15:
/usr/include/c++/5/bits/stl_list.h:114:71: note: mismatched types ‘const std::tuple<_T1, _T2>’ and ‘double’
: __detail::_List_node_base(), _M_data(std::forward<_Args>(__args)...)
^
In file included from /usr/include/c++/5/unordered_set:41:0,
from ../segmented_regression.hpp:4,
from cppnslr.cpp:15:
/usr/include/c++/5/tuple:617:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple(std::tuple<_T1, _T2>&&) [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple(tuple&&) = default;
^
/usr/include/c++/5/tuple:617:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/tuple:615:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple(const std::tuple<_T1, _T2>&) [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple(const tuple&) = default;
^
/usr/include/c++/5/tuple:615:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/tuple:612:19: note: candidate: template<class _U1, class _U2, class> constexpr std::tuple<_T1, _T2>::tuple(_U1&&, _U2&&)
constexpr tuple(_U1&& __a1, _U2&& __a2)
^
/usr/include/c++/5/tuple:612:19: note: template argument deduction/substitution failed:
/usr/include/c++/5/tuple:608:44: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
template<typename _U1, typename _U2, typename = typename
^
/usr/include/c++/5/tuple:605:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple(const _T1&, const _T2&) [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple(const _T1& __a1, const _T2& __a2)
^
/usr/include/c++/5/tuple:605:17: note: no known conversion for argument 1 from ‘double’ to ‘const Eigen::Array<double, 1, 2>&’
/usr/include/c++/5/tuple:601:17: note: candidate: constexpr std::tuple<_T1, _T2>::tuple() [with _T1 = Eigen::Array<double, 1, 2>; _T2 = double]
constexpr tuple()
^
/usr/include/c++/5/tuple:601:17: note: candidate expects 0 arguments, 2 provided