Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with clang 19.x #2804

Open
emmenlau opened this issue Aug 28, 2024 · 6 comments
Open

Build fails with clang 19.x #2804

emmenlau opened this issue Aug 28, 2024 · 6 comments

Comments

@emmenlau
Copy link
Contributor

There are some build errors with clang 19.1.0-rc3. Not going into details, as this seems just untested right now.

@olokobayusuf
Copy link

Confirming that xtensor builds fail with Clang 19 stable.

@emmenlau emmenlau changed the title Build fails with clang 19.1.0-rc3 Build fails with clang 19.x Nov 3, 2024
@emmenlau
Copy link
Contributor Author

emmenlau commented Nov 3, 2024

Confirming that xtensor builds fail with Clang 19 stable.

Just for curiosity, can you share more details what you tried? What versions of xtl, xsimd, xtensor? What version of clang? And what OS?

@olokobayusuf
Copy link

@emmenlau Output of clang --version:

Ubuntu clang version 19.1.3 (++20241031083503+ab51eccf88f5-1~exp1~20241031083520.60)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm-19/bin

Xtensor and others:

FetchContent_Declare(
    xtl
    GIT_REPOSITORY https://github.com/xtensor-stack/xtl.git
    GIT_TAG 0.7.7
)
FetchContent_Declare(
    xsimd
    GIT_REPOSITORY https://github.com/xtensor-stack/xsimd.git
    GIT_TAG 13.0.0
)
FetchContent_Declare(
    xtensor
    GIT_REPOSITORY https://github.com/xtensor-stack/xtensor.git
    GIT_TAG 0.25.0
)

Compiler errors:

In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:19:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xbuffer_adaptor.hpp:21:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xstorage.hpp:23:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xtensor_simd.hpp:17:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xutils.hpp:896:31: error: ambiguous partial specializations of 'rebind_container<long, xt::svector<unsigned long>>'
  896 |         using type = typename rebind_container<std::ptrdiff_t, S>::type;
      |                               ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xutils.hpp:924:5: note: in instantiation of template class 'xt::get_strides_type<xt::svector<unsigned long>>' requested here
  924 |     using get_strides_t = typename get_strides_type<C>::type;
      |     ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:53:30: note: in instantiation of template type alias 'get_strides_t' requested here
   53 |         using strides_type = get_strides_t<shape_type>;
      |                              ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:36:43: note: in instantiation of template class 'xt::xcontainer_inner_types<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   36 |         using inner_shape_type = typename xcontainer_inner_types<D>::inner_shape_type;
      |                                           ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:64:11: note: in instantiation of template class 'xt::xcontainer_iterable_types<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   64 |         : xcontainer_iterable_types<xarray_container<EC, L, SC, Tag>>
      |           ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:43:43: note: in instantiation of template class 'xt::xiterable_inner_types<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   43 |         using inner_shape_type = typename iterable_types::inner_shape_type;
      |                                           ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:151:30: note: (skipping 1 context in backtrace; use -ftemplate-backtrace-limit=0 to see all)
  151 |     class xiterable : public xconst_iterable<D>
      |                              ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:311:42: note: in instantiation of template class 'xt::xiterable<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
  311 |     class xcontiguous_iterable : private xiterable<D>
      |                                          ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:71:31: note: in instantiation of template class 'xt::xcontiguous_iterable<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   71 |     class xcontainer : public xcontiguous_iterable<D>,
      |                               ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:260:39: note: in instantiation of template class 'xt::xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
  260 |     class xstrided_container : public xcontainer<D>
      |                                       ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:82:37: note: in instantiation of template class 'xt::xstrided_container<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   82 |     class xarray_container : public xstrided_container<xarray_container<EC, L, SC, Tag>>,
      |                                     ^
/home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:66:27: note: in instantiation of template class 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>' requested here
   66 |         xt::xarray<float> srcArray = xt::adapt(tensor.data<float>(), elementCount, xt::no_ownership(), shape);
      |                           ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xutils.hpp:883:12: note: partial specialization matches [with X = long, C = xt::svector, T = unsigned long, N = 4]
  883 |     struct rebind_container<X, C<T, N>>
      |            ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xstorage.hpp:1415:12: note: partial specialization matches [with X = long, T = unsigned long, N = 4, A = std::allocator<unsigned long>, B = true]
 1415 |     struct rebind_container<X, svector<T, N, A, B>>
      |            ^
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:23:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:45:50: error: no type named 'stepper' in 'xt::xiterable_inner_types<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
   45 |         using stepper = typename iterable_types::stepper;
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:151:30: note: in instantiation of template class 'xt::xconst_iterable<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
  151 |     class xiterable : public xconst_iterable<D>
      |                              ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:311:42: note: in instantiation of template class 'xt::xiterable<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
  311 |     class xcontiguous_iterable : private xiterable<D>
      |                                          ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:71:31: note: in instantiation of template class 'xt::xcontiguous_iterable<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   71 |     class xcontainer : public xcontiguous_iterable<D>,
      |                               ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:260:39: note: in instantiation of template class 'xt::xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
  260 |     class xstrided_container : public xcontainer<D>
      |                                       ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:82:37: note: in instantiation of template class 'xt::xstrided_container<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   82 |     class xarray_container : public xstrided_container<xarray_container<EC, L, SC, Tag>>,
      |                                     ^
/home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:66:27: note: in instantiation of template class 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>' requested here
   66 |         xt::xarray<float> srcArray = xt::adapt(tensor.data<float>(), elementCount, xt::no_ownership(), shape);
      |                           ^
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:23:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xiterable.hpp:46:56: error: no type named 'const_stepper' in 'xt::xiterable_inner_types<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
   46 |         using const_stepper = typename iterable_types::const_stepper;
      |                               ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:20:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:140:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  140 |         using accessible_base::at;
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:260:39: note: in instantiation of template class 'xt::xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
  260 |     class xstrided_container : public xcontainer<D>
      |                                       ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:82:37: note: in instantiation of template class 'xt::xstrided_container<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>' requested here
   82 |     class xarray_container : public xstrided_container<xarray_container<EC, L, SC, Tag>>,
      |                                     ^
/home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:66:27: note: in instantiation of template class 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>' requested here
   66 |         xt::xarray<float> srcArray = xt::adapt(tensor.data<float>(), elementCount, xt::no_ownership(), shape);
      |                           ^
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:20:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:141:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  141 |         using accessible_base::shape;
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:142:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  142 |         using accessible_base::operator[];
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:143:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  143 |         using accessible_base::back;
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:144:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  144 |         using accessible_base::front;
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:145:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  145 |         using accessible_base::in_bounds;
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xcontainer.hpp:146:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xcontainer<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  146 |         using accessible_base::periodic;
      |               ^~~~~~~~~~~~~~~~~
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:93:52: error: no type named 'allocator_type' in 'xt::xstrided_container<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
   93 |         using allocator_type = typename base_type::allocator_type;
      |                                ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:66:27: note: in instantiation of template class 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>' requested here
   66 |         xt::xarray<float> srcArray = xt::adapt(tensor.data<float>(), elementCount, xt::no_ownership(), shape);
      |                           ^
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:10:
In file included from /home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xadapt.hpp:20:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xarray.hpp:102:54: error: no type named 'backstrides_type' in 'xt::xstrided_container<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>>'
  102 |         using backstrides_type = typename base_type::backstrides_type;
      |                                  ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:13:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:298:54: error: no type named 'size_type' in 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>'
  298 |         using size_type = typename xexpression_type::size_type;
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xsemantic.hpp:64:41: note: in instantiation of template class 'xt::xcontainer_inner_types<xt::xview<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long>>' requested here
   64 |         using temporary_type = typename xcontainer_inner_types<D>::temporary_type;
      |                                         ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xsemantic.hpp:231:35: note: in instantiation of template class 'xt::xsemantic_base<xt::xview<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long>>' requested here
  231 |     class xview_semantic : public xsemantic_base<D>
      |                                   ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:353:26: note: in instantiation of template class 'xt::xview_semantic<xt::xview<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long>>' requested here
  353 |     class xview : public xview_semantic<xview<CT, S...>>,
      |                          ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:1813:20: note: in instantiation of template class 'xt::xview<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long>' requested here
 1813 |             return view_type(
      |                    ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:1836:24: note: in instantiation of function template specialization 'xt::detail::make_view_impl<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, 0UL, unsigned long &>' requested here
 1836 |         return detail::make_view_impl(
      |                        ^
/home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:69:17: note: in instantiation of function template specialization 'xt::view<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long &>' requested here
   69 |             xt::view(dstArray, channel) = (xt::view(srcArray, channel) - mean[channel]) / std[channel];
      |                 ^
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:13:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:376:59: error: no type named 'bool_load_type' in 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>'
  376 |         using bool_load_type = typename xexpression_type::bool_load_type;
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:1813:20: note: in instantiation of template class 'xt::xview<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long>' requested here
 1813 |             return view_type(
      |                    ^
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:1836:24: note: in instantiation of function template specialization 'xt::detail::make_view_impl<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, 0UL, unsigned long &>' requested here
 1836 |         return detail::make_view_impl(
      |                        ^
/home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:69:17: note: in instantiation of function template specialization 'xt::view<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long &>' requested here
   69 |             xt::view(dstArray, channel) = (xt::view(srcArray, channel) - mean[channel]) / std[channel];
      |                 ^
In file included from /tmp/tmpx1dgri3n.cpp:20:
In file included from /home/vsts/work/1/s/predictor/../dialect/core/src/torchvision/normalize_xt.hpp:13:
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:383:60: error: no type named 'difference_type' in 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>'
  383 |         using difference_type = typename xexpression_type::difference_type;
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:436:69: error: no type named 'const_linear_iterator' in 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>'
  436 |             std::conditional_t<is_const, typename xexpression_type::const_linear_iterator, typename xexpression_type::linear_iterator>,
      |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:440:40: error: no type named 'const_linear_iterator' in 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>'
  440 |             typename xexpression_type::const_linear_iterator,
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:468:15: error: using declaration refers into 'accessible_base::', which is not a base class of 'xview<xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>> &, unsigned long>'
  468 |         using accessible_base::shape;
      |               ^~~~~~~~~~~~~~~~~
/home/vsts/work/1/s/build/Linux/Release/_deps/xtensor-src/include/xtensor/xview.hpp:699:46: error: no type named 'size_type' in 'xt::xarray_container<xt::uvector<float>, xt::layout_type::row_major, xt::svector<unsigned long>>'
  699 |         template <typename std::decay_t<CT>::size_type... I, class... Args>
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.

Let me know if you need any more info.

@olokobayusuf
Copy link

I should also add that this compiles successfully from Clang 14-18.

@drew-parsons
Copy link
Contributor

I guess this is the same issue raised in #2783

@olokobayusuf
Copy link

Yup, looks like it. Feel free to close this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants