liggghts FTBFS with vtk 9.6
(currently available in experimental)
[ 27%] Building CXX object src/CMakeFiles/libliggghts.dir/dump_decomposition_vtk.cpp.o
cd /build/vtk-dep/liggghts-3.8.0+repack1/debian/build/src && /usr/bin/x86_64-linux-gnu-g++ -DBOOST_CONTAINER_DYN_LINK -DBOOST_CONTAINER_NO_LIB -DBOOST_GRAPH_DYN_LINK -DBOOST_GRAPH_NO_LIB -
DBOOST_MPI_DYN_LINK -DBOOST_MPI_NO_LIB -DBOOST_SERIALIZATION_DYN_LINK -DBOOST_SERIALIZATION_NO_LIB -DFMT_SHARED -DMPICH_SKIP_MPICXX -DMPI_NO_CPPBIND -DOMPI_SKIP_MPICXX -DSCN_DISABLE_FAST_FLOAT=0 -DSCN_DISABLE_REG
EX=0 -DSCN_REGEX_BACKEND=0 -D_MPICC_H -Dkiss_fft_scalar=double -Dlibliggghts_EXPORTS -I/usr/include/eigen3 -I/build/vtk-dep/liggghts-3.8.0+repack1 -I/build/vtk-dep/
liggghts-3.8.0+repack1/src -isystem /usr/lib/x86_64-linux-gnu/openmpi/include -isystem /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -isystem /usr/include/vtk-9.6 -isystem /usr/include/vtk-9.6/vtkfmt -isystem
/usr/include/vtk-9.6/vtkscn/include -isystem /usr/include/vtk-9.6/vtkscn -isystem /usr/include/vtk-9.6/token -isystem /usr/include/vtk-9.6/vtkkissfft -g -O2 -ffile-prefix-map=/build/vtk-d
ep/liggghts-3.8.0+repack1=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -DLAMMPS_VTK6 -DLAMMPS_VTK -std=c++0x -DLAMMPS_JPEG
-fPIC -MD -MT src/CMakeFiles/libliggghts.dir/dump_decomposition_vtk.cpp.o -MF CMakeFiles/libliggghts.dir/dump_decomposition_vtk.cpp.o.d -o CMakeFiles/libliggghts.dir/dump_decomposition_vtk.cpp.o -c /build/vtk-dep/liggghts-3.8.0+repack1/src/dump_decomposition_vtk.cpp
In file included from /usr/include/vtk-9.6/vtkGenericDataArray.txx:9,
from /usr/include/vtk-9.6/vtkGenericDataArray.h:498,
from /usr/include/vtk-9.6/vtkAOSDataArrayTemplate.h:27,
from /usr/include/vtk-9.6/vtkCellArray.h:128,
from /build/vtk-dep/liggghts-3.8.0+repack1/src/dump_atom_vtk.cpp:51:
/usr/include/vtk-9.6/vtkMath.h: In static member function ‘static T vtkMath::ClampValue(const T&, const T&, const T&)’:
/usr/include/vtk-9.6/vtkMath.h:2012:15: error: ‘clamp’ is not a member of ‘std’ [-Wtemplate-body]
2012 | return std::clamp(value, min, max);
| ^~~~~
...
In file included from /usr/include/vtk-9.6/vtkDataArrayTupleRange_AOS.h:12,
from /usr/include/vtk-9.6/vtkDataArrayRange.h:20,
from /usr/include/vtk-9.6/vtkCellArray.h:131:
/usr/include/vtk-9.6/vtkDataArrayTupleRange_Generic.h: At global scope:
/usr/include/vtk-9.6/vtkDataArrayTupleRange_Generic.h:824:17: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type [-Wtemplate-body]
824 | typename std::enable_if_t<!std::is_same_v<VT, double>> VTK_ITER_INLINE GetTuple(
| ^~~~~~~~~~~
/usr/include/vtk-9.6/vtkDataArrayTupleRange_Generic.h:824:17: note: ‘std::enable_if_t’ is only available from C++14 onwards
/usr/include/vtk-9.6/vtkDataArrayTupleRange_Generic.h:824:28: error: expected unqualified-id before ‘<’ token [-Wtemplate-body]
824 | typename std::enable_if_t<!std::is_same_v<VT, double>> VTK_ITER_INLINE GetTuple(
| ^
...
/usr/include/vtk-9.6/vtkCellArray.h:1650:65: required from ‘void vtkCellArray_detail::GetCellAtIdImpl::operator()(OffsetsT*, ConnectivityT*, vtkIdType, vtkIdList*) [with OffsetsT = vtkDataArray; ConnectivityT = vtkDataArray; vtkIdType = long long int]’
1650 | const vtkIdType cellSize = static_cast<vtkIdType>(endOffset - beginOffset);
| ~~~~~~~~~~^~~~~~~~~~~~~
/usr/include/vtk-9.6/vtkCellArray.h:1032:16: required from ‘void vtkCellArray::Dispatch(Functor&&, Args&& ...) [with Functor = vtkCellArray_detail::GetCellAtIdImpl; Args = {long long int&, vtkIdList*&}]’
1032 | functor(this->Offsets.Get(), this->Connectivity.Get(), std::forward<Args>(args)...);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.6/vtkCellArray.h:1816:17: required from here
1816 | this->Dispatch(vtkCellArray_detail::GetCellAtIdImpl{}, cellId, pts);
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/vtk-9.6/vtkDataArrayValueRange_Generic.h:386:27: error: ‘class vtkDataArray’ has no member named ‘GetValue’
386 | return this->Array->GetValue(this->Id.GetValueId());
| ~~~~~~~~~~~~~^~~~~~~~