Skip to content

Instantly share code, notes, and snippets.

@nbecker
Created May 10, 2021 14:16
Show Gist options
  • Save nbecker/99a368488e8df560f337c245615a5822 to your computer and use it in GitHub Desktop.
Save nbecker/99a368488e8df560f337c245615a5822 to your computer and use it in GitHub Desktop.
xtensor errors
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:87:43: error: 'XSIMD_DEFAULT_ALIGNMENT' was not declared in this scope; did you mean 'XTENSOR_DEFAULT_ALIGNMENT'?
87 | #define XTENSOR_DEFAULT_ALIGNMENT XSIMD_DEFAULT_ALIGNMENT
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:87:43: note: in definition of macro 'XTENSOR_DEFAULT_ALIGNMENT'
87 | #define XTENSOR_DEFAULT_ALIGNMENT XSIMD_DEFAULT_ALIGNMENT
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xstorage.hpp:1389:59: note: in expansion of macro 'XTENSOR_SELECT_ALIGN'
1389 | template <class T, std::size_t N, std::size_t Align = XTENSOR_SELECT_ALIGN(T)>
| ^~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:87:43: error: 'XSIMD_DEFAULT_ALIGNMENT' was not declared in this scope; did you mean 'XTENSOR_DEFAULT_ALIGNMENT'?
87 | #define XTENSOR_DEFAULT_ALIGNMENT XSIMD_DEFAULT_ALIGNMENT
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:87:43: note: in definition of macro 'XTENSOR_DEFAULT_ALIGNMENT'
87 | #define XTENSOR_DEFAULT_ALIGNMENT XSIMD_DEFAULT_ALIGNMENT
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xstorage.hpp:1389:59: note: in expansion of macro 'XTENSOR_SELECT_ALIGN'
1389 | template <class T, std::size_t N, std::size_t Align = XTENSOR_SELECT_ALIGN(T)>
| ^~~~~~~~~~~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xbuffer_adaptor.hpp:22,
from /home/nbecker/.local/include/xtensor/xarray.hpp:19,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xstorage.hpp:1605:49: error: template argument 3 is invalid
1605 | struct rebind_container<X, aligned_array<T, N>>
| ^
/home/nbecker/.local/include/xtensor/xstorage.hpp:1605:50: error: template argument 2 is invalid
1605 | struct rebind_container<X, aligned_array<T, N>>
| ^~
In file included from /home/nbecker/.local/include/xtensor/xbuffer_adaptor.hpp:21,
from /home/nbecker/.local/include/xtensor/xarray.hpp:19,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: error: 'XSIMD_DEFAULT_ALIGNMENT' was not declared in this scope; did you mean 'XTENSOR_DEFAULT_ALIGNMENT'?
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: note: in definition of macro 'XTENSOR_DEFAULT_ALLOCATOR'
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:64: error: template argument 2 is invalid
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^
/home/nbecker/.local/include/xtensor/xtensor_forward.hpp:80:25: note: in expansion of macro 'XTENSOR_DEFAULT_ALLOCATOR'
80 | class A = XTENSOR_DEFAULT_ALLOCATOR(T),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: error: 'XSIMD_DEFAULT_ALIGNMENT' was not declared in this scope; did you mean 'XTENSOR_DEFAULT_ALIGNMENT'?
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: note: in definition of macro 'XTENSOR_DEFAULT_ALLOCATOR'
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:64: error: template argument 2 is invalid
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^
/home/nbecker/.local/include/xtensor/xtensor_forward.hpp:104:25: note: in expansion of macro 'XTENSOR_DEFAULT_ALLOCATOR'
104 | class A = XTENSOR_DEFAULT_ALLOCATOR(T),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: error: 'XSIMD_DEFAULT_ALIGNMENT' was not declared in this scope; did you mean 'XTENSOR_DEFAULT_ALIGNMENT'?
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: note: in definition of macro 'XTENSOR_DEFAULT_ALLOCATOR'
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:64: error: template argument 2 is invalid
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^
/home/nbecker/.local/include/xtensor/xtensor_forward.hpp:135:25: note: in expansion of macro 'XTENSOR_DEFAULT_ALLOCATOR'
135 | class A = XTENSOR_DEFAULT_ALLOCATOR(T)>
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: error: 'XSIMD_DEFAULT_ALIGNMENT' was not declared in this scope; did you mean 'XTENSOR_DEFAULT_ALIGNMENT'?
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:41: note: in definition of macro 'XTENSOR_DEFAULT_ALLOCATOR'
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor_config.hpp:77:64: error: template argument 2 is invalid
77 | xsimd::aligned_allocator<T, XSIMD_DEFAULT_ALIGNMENT>
| ^
/home/nbecker/.local/include/xtensor/xtensor_forward.hpp:199:25: note: in expansion of macro 'XTENSOR_DEFAULT_ALLOCATOR'
199 | class A = XTENSOR_DEFAULT_ALLOCATOR(T),
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:26,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:85:52: error: template argument 3 is invalid
85 | xarray<typename std::decay_t<E>::value_type> accumulator_impl(F&&, E&&, std::size_t, EVS)
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:85:52: error: template argument 4 is invalid
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:26,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xaccumulator.hpp: In function 'int xt::detail::accumulator_impl(F&&, E&&, std::size_t, EVS)':
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:88:9: warning: no return statement in function returning non-void [-Wreturn-type]
88 | }
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp: At global scope:
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:91:52: error: template argument 3 is invalid
91 | xarray<typename std::decay_t<E>::value_type> accumulator_impl(F&&, E&&, EVS)
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:91:52: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xaccumulator.hpp: In function 'int xt::detail::accumulator_impl(F&&, E&&, EVS)':
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:94:9: warning: no return statement in function returning non-void [-Wreturn-type]
94 | }
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp: At global scope:
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:99:34: error: template argument 3 is invalid
99 | using type = xarray<R>;
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:99:34: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:103:52: error: template argument 3 is invalid
103 | struct xaccumulator_return_type<xarray<T, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:103:52: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:103:56: error: template argument 1 is invalid
103 | struct xaccumulator_return_type<xarray<T, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:109:56: error: template argument 4 is invalid
109 | struct xaccumulator_return_type<xtensor<T, N, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:109:60: error: template argument 1 is invalid
109 | struct xaccumulator_return_type<xtensor<T, N, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:129:38: error: template argument 4 is invalid
129 | using type = xtensor<R, 1>;
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:133:59: error: template argument 3 is invalid
133 | struct xaccumulator_linear_return_type<xarray<T, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:133:59: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:133:63: error: template argument 1 is invalid
133 | struct xaccumulator_linear_return_type<xarray<T, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:139:63: error: template argument 4 is invalid
139 | struct xaccumulator_linear_return_type<xtensor<T, N, L>, R>
| ^
/home/nbecker/.local/include/xtensor/xaccumulator.hpp:139:67: error: template argument 1 is invalid
139 | struct xaccumulator_linear_return_type<xtensor<T, N, L>, R>
| ^
In file included from /home/nbecker/.local/include/xtensor/xeval.hpp:13,
from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xexpression_traits.hpp:103:37: error: template argument 3 is invalid
103 | using type = xarray<T, L>;
| ^
/home/nbecker/.local/include/xtensor/xexpression_traits.hpp:103:37: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xexpression_traits.hpp:112:37: error: template argument 3 is invalid
112 | using type = xarray<T, L>;
| ^
/home/nbecker/.local/include/xtensor/xexpression_traits.hpp:112:37: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xexpression_traits.hpp:121:41: error: template argument 4 is invalid
121 | using type = xtensor<T, N, L>;
| ^
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:96:104: error: template argument 3 is invalid
96 | using as_xarray_container_t = xarray<typename std::decay_t<E>::value_type, layout_remove_any(L)>;
| ^
/home/nbecker/.local/include/xtensor/xeval.hpp:96:104: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xeval.hpp:105:68: error: template argument 4 is invalid
105 | layout_remove_any(L)>;
| ^
/home/nbecker/.local/include/xtensor/xeval.hpp:142:37: error: 'as_xtensor_container_t' is not a member of 'xt::detail'
142 | detail::as_xtensor_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:142:63: error: wrong number of template arguments (3, should be at least 1)
142 | detail::as_xtensor_container_t<E, L>>
| ^
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:142:37: error: 'as_xtensor_container_t' is not a member of 'xt::detail'
142 | detail::as_xtensor_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:142:64: error: wrong number of template arguments (3, should be at least 1)
142 | detail::as_xtensor_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:142:37: error: 'as_xtensor_container_t' is not a member of 'xt::detail'
142 | detail::as_xtensor_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:142:64: error: wrong number of template arguments (3, should be at least 1)
142 | detail::as_xtensor_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:142:37: error: 'as_xtensor_container_t' is not a member of 'xt::detail'
142 | detail::as_xtensor_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:142:64: error: wrong number of template arguments (3, should be at least 1)
142 | detail::as_xtensor_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:142:37: error: 'as_xtensor_container_t' is not a member of 'xt::detail'
142 | detail::as_xtensor_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:142:64: error: wrong number of template arguments (3, should be at least 1)
142 | detail::as_xtensor_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:139:12: error: invalid use of template-name 'std::enable_if_t' without an argument list
139 | -> std::enable_if_t<(!(has_data_interface<std::decay_t<E>>::value
| ^~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type' declared here
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:139:28: error: expected initializer before '<' token
139 | -> std::enable_if_t<(!(has_data_interface<std::decay_t<E>>::value
| ^
/home/nbecker/.local/include/xtensor/xeval.hpp:153:37: error: 'as_xarray_container_t' is not a member of 'xt::detail'
153 | detail::as_xarray_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:153:62: error: wrong number of template arguments (3, should be at least 1)
153 | detail::as_xarray_container_t<E, L>>
| ^
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:153:37: error: 'as_xarray_container_t' is not a member of 'xt::detail'
153 | detail::as_xarray_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:153:63: error: wrong number of template arguments (3, should be at least 1)
153 | detail::as_xarray_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:153:37: error: 'as_xarray_container_t' is not a member of 'xt::detail'
153 | detail::as_xarray_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:153:63: error: wrong number of template arguments (3, should be at least 1)
153 | detail::as_xarray_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:153:37: error: 'as_xarray_container_t' is not a member of 'xt::detail'
153 | detail::as_xarray_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:153:63: error: wrong number of template arguments (3, should be at least 1)
153 | detail::as_xarray_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:153:37: error: 'as_xarray_container_t' is not a member of 'xt::detail'
153 | detail::as_xarray_container_t<E, L>>
| ^~~~~~~~~~~~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xeval.hpp:153:63: error: wrong number of template arguments (3, should be at least 1)
153 | detail::as_xarray_container_t<E, L>>
| ^~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: provided for 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type'
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:150:12: error: invalid use of template-name 'std::enable_if_t' without an argument list
150 | -> std::enable_if_t<(!(has_data_interface<std::decay_t<E>>::value
| ^~~
In file included from /usr/include/c++/11/bits/move.h:57,
from /usr/include/c++/11/bits/stl_pair.h:59,
from /usr/include/c++/11/bits/stl_algobase.h:64,
from /usr/include/c++/11/bits/specfun.h:45,
from /usr/include/c++/11/cmath:1927,
from /usr/include/c++/11/math.h:36,
from /usr/include/python3.9/pyport.h:205,
from /usr/include/python3.9/Python.h:63,
from /home/nbecker/.local/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:11,
from histogram2d_c.cc:1:
/usr/include/c++/11/type_traits:2514:11: note: 'template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type' declared here
2514 | using enable_if_t = typename enable_if<_Cond, _Tp>::type;
| ^~~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xmath.hpp:27,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xeval.hpp:150:28: error: expected initializer before '<' token
150 | -> std::enable_if_t<(!(has_data_interface<std::decay_t<E>>::value
| ^
In file included from /home/nbecker/.local/include/xtensor/xmanipulation.hpp:13,
from /home/nbecker/.local/include/xtensor/xmath.hpp:28,
from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xbuilder.hpp:89:23: error: template argument 3 is invalid
89 | inline xarray<T, L> empty(const S& shape)
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp:89:23: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xbuilder.hpp: In function 'int xt::empty(const S&)':
/home/nbecker/.local/include/xtensor/xbuilder.hpp:91:27: error: template argument 3 is invalid
91 | return xarray<T, L>::from_shape(shape);
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp:91:27: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor/xbuilder.hpp: At global scope:
/home/nbecker/.local/include/xtensor/xbuilder.hpp:95:27: error: template argument 4 is invalid
95 | inline xtensor<T, N, L> empty(const std::array<ST, N>& shape)
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp: In function 'int xt::empty(const std::array<ST, N>&)':
/home/nbecker/.local/include/xtensor/xbuilder.hpp:97:49: error: template argument 4 is invalid
97 | using shape_type = typename xtensor<T, N>::shape_type;
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp:98:31: error: template argument 4 is invalid
98 | return xtensor<T, N, L>(xtl::forward_sequence<shape_type, decltype(shape)>(shape));
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp:98:55: error: 'shape_type' was not declared in this scope
98 | return xtensor<T, N, L>(xtl::forward_sequence<shape_type, decltype(shape)>(shape));
| ^~~~~~~~~~
/home/nbecker/.local/include/xtensor/xbuilder.hpp: At global scope:
/home/nbecker/.local/include/xtensor/xbuilder.hpp:102:27: error: template argument 4 is invalid
102 | inline xtensor<T, N, L> empty(const I(&shape)[N])
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp: In function 'int xt::empty(const I (&)[N])':
/home/nbecker/.local/include/xtensor/xbuilder.hpp:104:49: error: template argument 4 is invalid
104 | using shape_type = typename xtensor<T, N>::shape_type;
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp:105:31: error: template argument 4 is invalid
105 | return xtensor<T, N, L>(xtl::forward_sequence<shape_type, decltype(shape)>(shape));
| ^
/home/nbecker/.local/include/xtensor/xbuilder.hpp:105:55: error: 'shape_type' was not declared in this scope
105 | return xtensor<T, N, L>(xtl::forward_sequence<shape_type, decltype(shape)>(shape));
| ^~~~~~~~~~
In file included from /home/nbecker/.local/include/xtensor/xcontainer.hpp:25,
from /home/nbecker/.local/include/xtensor/xarray.hpp:20,
from histogram2d_c.cc:6:
/home/nbecker/.local/include/xtensor/xmath.hpp: In function 'auto xt::interp(const E1&, const E2&, const E3&, T, T)':
/home/nbecker/.local/include/xtensor/xmath.hpp:2888:39: error: template argument 4 is invalid
2888 | auto f = xtensor<value_type, 1>::from_shape(x.shape());
| ^
In file included from histogram2d_c.cc:7:
/home/nbecker/.local/include/xtensor/xtensor.hpp: In function 'auto xt::from_indices(const std::vector<T>&)':
/home/nbecker/.local/include/xtensor/xtensor.hpp:814:62: error: template argument 4 is invalid
814 | using return_type = xtensor<typename T::value_type, 2>;
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:815:36: error: 'return_type' has not been declared
815 | using size_type = typename return_type::size_type;
| ^~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:819:20: error: 'return_type' has not been declared
819 | return return_type::from_shape({size_type(0), size_type(0)});
| ^~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:819:45: error: there are no arguments to 'size_type' that depend on a template parameter, so a declaration of 'size_type' must be available [-fpermissive]
819 | return return_type::from_shape({size_type(0), size_type(0)});
| ^~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:819:45: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/nbecker/.local/include/xtensor/xtensor.hpp:819:59: error: there are no arguments to 'size_type' that depend on a template parameter, so a declaration of 'size_type' must be available [-fpermissive]
819 | return return_type::from_shape({size_type(0), size_type(0)});
| ^~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:822:9: error: 'return_type' was not declared in this scope
822 | return_type out = return_type::from_shape({idx.size(), idx[0].size()});
| ^~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:822:78: error: expected primary-expression before ')' token
822 | return_type out = return_type::from_shape({idx.size(), idx[0].size()});
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:824:14: error: 'size_type' was not declared in this scope; did you mean 'size_t'?
824 | for (size_type i = 0; i < out.shape()[0]; ++i)
| ^~~~~~~~~
| size_t
/home/nbecker/.local/include/xtensor/xtensor.hpp:824:31: error: 'i' was not declared in this scope
824 | for (size_type i = 0; i < out.shape()[0]; ++i)
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:824:35: error: 'out' was not declared in this scope; did you mean 'boost::fusion::out'?
824 | for (size_type i = 0; i < out.shape()[0]; ++i)
| ^~~
| boost::fusion::out
In file included from /usr/include/boost/fusion/sequence/io.hpp:12,
from /usr/include/boost/fusion/tuple/tuple.hpp:29,
from /usr/include/boost/fusion/tuple.hpp:11,
from /home/nbecker/.local/include/ndarray/detail/ViewBuilder.h:28,
from /home/nbecker/.local/include/ndarray/ArrayBase.h:29,
from /home/nbecker/.local/include/ndarray/ArrayBaseN.h:21,
from /home/nbecker/.local/include/ndarray/Array.h:22,
from /home/nbecker/.local/include/ndarray.h:19,
from /home/nbecker/.local/include/ndarray/pybind11.h:47,
from histogram2d_c.cc:5:
/usr/include/boost/fusion/sequence/io/out.hpp:23:5: note: 'boost::fusion::out' declared here
23 | out(std::ostream& os, Sequence& seq)
| ^~~
In file included from histogram2d_c.cc:7:
/home/nbecker/.local/include/xtensor/xtensor.hpp:826:27: error: expected ';' before 'j'
826 | for (size_type j = 0; j < out.shape()[1]; ++j)
| ^~
| ;
/home/nbecker/.local/include/xtensor/xtensor.hpp:826:35: error: 'j' was not declared in this scope
826 | for (size_type j = 0; j < out.shape()[1]; ++j)
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:832:16: error: 'out' was not declared in this scope; did you mean 'boost::fusion::out'?
832 | return out;
| ^~~
| boost::fusion::out
In file included from /usr/include/boost/fusion/sequence/io.hpp:12,
from /usr/include/boost/fusion/tuple/tuple.hpp:29,
from /usr/include/boost/fusion/tuple.hpp:11,
from /home/nbecker/.local/include/ndarray/detail/ViewBuilder.h:28,
from /home/nbecker/.local/include/ndarray/ArrayBase.h:29,
from /home/nbecker/.local/include/ndarray/ArrayBaseN.h:21,
from /home/nbecker/.local/include/ndarray/Array.h:22,
from /home/nbecker/.local/include/ndarray.h:19,
from /home/nbecker/.local/include/ndarray/pybind11.h:47,
from histogram2d_c.cc:5:
/usr/include/boost/fusion/sequence/io/out.hpp:23:5: note: 'boost::fusion::out' declared here
23 | out(std::ostream& os, Sequence& seq)
| ^~~
In file included from histogram2d_c.cc:7:
/home/nbecker/.local/include/xtensor/xtensor.hpp: In function 'auto xt::flatten_indices(const std::vector<T>&)':
/home/nbecker/.local/include/xtensor/xtensor.hpp:852:62: error: template argument 4 is invalid
852 | using return_type = xtensor<typename T::value_type, 1>;
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:853:9: error: 'return_type' was not declared in this scope
853 | return_type out = return_type::from_shape({n});
| ^~~~~~~~~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:853:54: error: expected primary-expression before ')' token
853 | return_type out = return_type::from_shape({n});
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:854:21: error: 'out' was not declared in this scope; did you mean 'boost::fusion::out'?
854 | auto iter = out.begin();
| ^~~
| boost::fusion::out
In file included from /usr/include/boost/fusion/sequence/io.hpp:12,
from /usr/include/boost/fusion/tuple/tuple.hpp:29,
from /usr/include/boost/fusion/tuple.hpp:11,
from /home/nbecker/.local/include/ndarray/detail/ViewBuilder.h:28,
from /home/nbecker/.local/include/ndarray/ArrayBase.h:29,
from /home/nbecker/.local/include/ndarray/ArrayBaseN.h:21,
from /home/nbecker/.local/include/ndarray/Array.h:22,
from /home/nbecker/.local/include/ndarray.h:19,
from /home/nbecker/.local/include/ndarray/pybind11.h:47,
from histogram2d_c.cc:5:
/usr/include/boost/fusion/sequence/io/out.hpp:23:5: note: 'boost::fusion::out' declared here
23 | out(std::ostream& os, Sequence& seq)
| ^~~
In file included from histogram2d_c.cc:7:
/home/nbecker/.local/include/xtensor/xtensor.hpp: In lambda function:
/home/nbecker/.local/include/xtensor/xtensor.hpp:855:67: error: 'iter' is not captured
855 | for_each(idx.begin(), idx.end(), [&iter](const auto& t) { iter = std::copy(t.cbegin(), t.cend(), iter); });
| ^~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:855:48: note: the lambda has no capture-default
855 | for_each(idx.begin(), idx.end(), [&iter](const auto& t) { iter = std::copy(t.cbegin(), t.cend(), iter); });
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:854:14: note: '<typeprefixerror>iter' declared here
854 | auto iter = out.begin();
| ^~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:855:106: error: 'iter' is not captured
855 | for_each(idx.begin(), idx.end(), [&iter](const auto& t) { iter = std::copy(t.cbegin(), t.cend(), iter); });
| ^~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp:855:48: note: the lambda has no capture-default
855 | for_each(idx.begin(), idx.end(), [&iter](const auto& t) { iter = std::copy(t.cbegin(), t.cend(), iter); });
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:854:14: note: '<typeprefixerror>iter' declared here
854 | auto iter = out.begin();
| ^~~~
/home/nbecker/.local/include/xtensor/xtensor.hpp: At global scope:
/home/nbecker/.local/include/xtensor/xtensor.hpp:887:51: error: template argument 4 is invalid
887 | using type = xt::xtensor<value_type, 1>;
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp:890:45: error: template argument 4 is invalid
890 | static xt::xtensor<value_type, 1> init(T n)
| ^
/home/nbecker/.local/include/xtensor/xtensor.hpp: In static member function 'static int xt::detail::ravel_return_type<C, xt::ravel_tensor_tag>::init(T)':
/home/nbecker/.local/include/xtensor/xtensor.hpp:892:45: error: template argument 4 is invalid
892 | return xtensor<value_type, 1>::from_shape({n});
| ^
In file included from histogram2d_c.cc:11:
/home/nbecker/.local/include/xtensor-python/pyarray.hpp: At global scope:
/home/nbecker/.local/include/xtensor-python/pyarray.hpp:96:42: error: template argument 3 is invalid
96 | struct type_caster<xt::xarray<T, L>> : xtensor_type_caster_base<xt::xarray<T, L>>
| ^
/home/nbecker/.local/include/xtensor-python/pyarray.hpp:96:42: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor-python/pyarray.hpp:96:43: error: template argument 1 is invalid
96 | struct type_caster<xt::xarray<T, L>> : xtensor_type_caster_base<xt::xarray<T, L>>
| ^~
/home/nbecker/.local/include/xtensor-python/pyarray.hpp:96:87: error: template argument 3 is invalid
96 | struct type_caster<xt::xarray<T, L>> : xtensor_type_caster_base<xt::xarray<T, L>>
| ^
/home/nbecker/.local/include/xtensor-python/pyarray.hpp:96:87: error: template argument 4 is invalid
/home/nbecker/.local/include/xtensor-python/pyarray.hpp:96:88: error: template argument 1 is invalid
96 | struct type_caster<xt::xarray<T, L>> : xtensor_type_caster_base<xt::xarray<T, L>>
| ^~
In file included from histogram2d_c.cc:12:
/home/nbecker/.local/include/xtensor-python/pytensor.hpp:104:46: error: template argument 4 is invalid
104 | struct type_caster<xt::xtensor<T, N, L>> : xtensor_type_caster_base<xt::xtensor<T, N, L>>
| ^
/home/nbecker/.local/include/xtensor-python/pytensor.hpp:104:47: error: template argument 1 is invalid
104 | struct type_caster<xt::xtensor<T, N, L>> : xtensor_type_caster_base<xt::xtensor<T, N, L>>
| ^~
/home/nbecker/.local/include/xtensor-python/pytensor.hpp:104:95: error: template argument 4 is invalid
104 | struct type_caster<xt::xtensor<T, N, L>> : xtensor_type_caster_base<xt::xtensor<T, N, L>>
| ^
/home/nbecker/.local/include/xtensor-python/pytensor.hpp:104:96: error: template argument 1 is invalid
104 | struct type_caster<xt::xtensor<T, N, L>> : xtensor_type_caster_base<xt::xtensor<T, N, L>>
| ^~
scons: *** [histogram2d_c.cpython-39-x86_64-linux-gnu.os] Error 1
scons: building terminated because of errors.
Compilation exited abnormally with code 2 at Mon May 10 10:00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment