Skip to content

Compilation failures caused by xtensor-stack/xtensor#2923 #258

Description

@krivenko

Recently I have been getting the following compilation errors when trying to use xtensor-blas in my project.

In file included from /home/runner/work/ezARPACK/ezARPACK/example/xtensor.example.cpp:22:
In file included from /home/runner/work/ezARPACK/ezARPACK/include/ezarpack/storages/xtensor.hpp:18:
In file included from /home/runner/xtensor.installed/include/xtensor-blas/xlinalg.hpp:28:
In file included from /home/runner/xtensor.installed/include/xtensor-blas/xblas.hpp:23:
/home/runner/xtensor.installed/include/xtensor-blas/xblas_utils.hpp:34:27: error: no template named 'has_data_interface'; did you mean 'has_simd_interface'?
   34 |     ) -> std::enable_if_t<has_data_interface<std::decay_t<T>>::value && std::decay_t<T>::static_layout == L, T&&>
      |                           ^~~~~~~~~~~~~~~~~~
      |                           has_simd_interface
/home/runner/xtensor.installed/include/xtensor/containers/../containers/../containers/../utils/xtensor_simd.hpp:268:12: note: 'has_simd_interface' declared here
  268 |     struct has_simd_interface : detail::has_simd_interface_impl<E, T>
      |            ^
In file included from /home/runner/work/ezARPACK/ezARPACK/example/xtensor.example.cpp:22:
In file included from /home/runner/work/ezARPACK/ezARPACK/include/ezarpack/storages/xtensor.hpp:18:
In file included from /home/runner/xtensor.installed/include/xtensor-blas/xlinalg.hpp:28:
In file included from /home/runner/xtensor.installed/include/xtensor-blas/xblas.hpp:23:
/home/runner/xtensor.installed/include/xtensor-blas/xblas_utils.hpp:41:11: error: no template named 'has_data_interface'; did you mean 'has_simd_interface'?
   41 |         (!has_data_interface<std::decay_t<T>>::value || I::static_layout != L)
      |           ^~~~~~~~~~~~~~~~~~
      |           has_simd_interface
/home/runner/xtensor.installed/include/xtensor/containers/../containers/../containers/../utils/xtensor_simd.hpp:268:12: note: 'has_simd_interface' declared here
  268 |     struct has_simd_interface : detail::has_simd_interface_impl<E, T>
      |            ^
In file included from /home/runner/work/ezARPACK/ezARPACK/example/xtensor.example.cpp:22:
In file included from /home/runner/work/ezARPACK/ezARPACK/include/ezarpack/storages/xtensor.hpp:18:
In file included from /home/runner/xtensor.installed/include/xtensor-blas/xlinalg.hpp:28:
In file included from /home/runner/xtensor.installed/include/xtensor-blas/xblas.hpp:23:
/home/runner/xtensor.installed/include/xtensor-blas/xblas_utils.hpp:50:11: error: no template named 'has_data_interface'; did you mean 'has_simd_interface'?
   50 |         (!has_data_interface<std::decay_t<T>>::value || I::static_layout != L)
      |           ^~~~~~~~~~~~~~~~~~
      |           has_simd_interface
/home/runner/xtensor.installed/include/xtensor/containers/../containers/../containers/../utils/xtensor_simd.hpp:268:12: note: 'has_simd_interface' declared here
  268 |     struct has_simd_interface : detail::has_simd_interface_impl<E, T>
      |            ^

The likely source of the problem is xtensor-stack/xtensor#2923.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions