VTK 8.2.0 fails to build with PGI pgc++ 19.3
I can build VTK 7.1.1 without trouble using PGI pgc++ 19.3, but version 8.2.0 fails with the following errors:
make VERBOSE=1
[ 2%] Building CXX object Common/Core/CMakeFiles/vtkCommonCore.dir/vtkAbstractArray.cxx.o
cd /dev/shm/vtk-pgi/VTK-prefix/src/VTK-build/Common/Core && /home/fge/pgi/linux86-64-nollvm/2019/bin/pgc++ -DVTK_IN_VTK -DvtkCommonCore_EXPORTS -I/dev/shm/vtk-pgi/VTK-p
"/dev/shm/vtk-pgi/VTK-prefix/src/VTK-build/Common/Core/vtkAtomic.h", line 55:
warning: unrecognized preprocessing directive
# warning 2018-04-25: Seemingly dead code on currently-supported VTK platforms. Contact vtk-developers list if you see this!
^
"/dev/shm/vtk-pgi/VTK-prefix/src/VTK/Common/Core/vtkSetGet.h", line 927: error:
the argument to a feature-test macro must be a simple identifier
# elif __cplusplus >= 201103L && __has_cpp_attribute(gnu::fallthrough)
^
"/dev/shm/vtk-pgi/VTK-prefix/src/VTK/Common/Core/vtkSetGet.h", line 929: error:
the argument to a feature-test macro must be a simple identifier
# elif __cplusplus >= 201103L && __has_cpp_attribute(clang::fallthrough)
^
"/dev/shm/vtk-pgi/VTK-prefix/src/VTK/Common/Core/vtkAbstractArray.cxx", line
346: warning: statement is unreachable
vtkTemplateMacro(
Here are my cmake command line options, in case they're of any relevance:
-DCMAKE_BUILD_TYPE:STRING=Release
-DVTK_BUILD_ALL_MODULES_FOR_TESTS:BOOL=OFF
-DVTK_Group_Qt:BOOL=OFF
-DBUILD_TESTING:BOOL=OFF
-DBUILD_EXAMPLES:BOOL=OFF
-DVTK_Group_MPI:BOOL=OFF
-DModule_vtkIOXdmf2:BOOL=OFF
-DModule_vtkIOXdmf3:BOOL=OFF
-DXDMF_BUILD_MPI:BOOL=OFF
-DVTK_XDMF_USE_MPI:BOOL=OFF
-DVTK_Group_Rendering:BOOL=OFF
-DVTK_Group_StandAlone:BOOL=OFF
-DVTK_RENDERING_BACKEND:STRING=None
-DModule_vtkIOEnSight:BOOL=ON
-DModule_vtkCommonCore:BOOL=ON
-DModule_vtkCommonDataModel:BOOL=ON
-DModule_vtkIOParallelXML:BOOL=OFF
-DModule_vtkIOXML:BOOL=ON
-DModule_vtkGUISupportQt:BOOL=OFF
-DModule_vtkGUISupportQtOpenGL:BOOL=OFF
-DModule_vtkFiltersFlowPaths:BOOL=ON
-DVTK_FORBID_DOWNLOADS:BOOL=ON