From the xtensor README:
Up to version 0.26.0, xtensor requires a C++ compiler supporting C++14. xtensor 0.26.x requires a C++ compiler supporting C++17. xtensor 0.27.x requires a C++ compiler supporting C++20.
Seems we need to cope with this similarly to #262, although I think it's really a xtensor issue