VTK-8.2.0 fails to build with Xcode 11 / clang 11
VTK-8.2.0 fails to build with Boost 1.71.0, Qt 5.13.2 and PyQt 5.13.2, on macOS 10.15 with system compiler (Xcode 11, Apple clang 11):
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Infovis/BoostGraphAlgorithms/vtkBoostBetweennessClustering.cxx:16:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Infovis/BoostGraphAlgorithms/vtkBoostBetweennessClustering.h:35:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/ExecutionModel/vtkGraphAlgorithm.h:46:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/ExecutionModel/vtkAlgorithm.h:36:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/Core/vtkObject.h:45:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/Core/vtkObjectBase.h:52:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/Core/vtkIndent.h:28:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/Core/vtkSystemIncludes.h:39:
In file included from /tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Common/Core/vtkIOStream.h:31:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:38:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ios:216:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__locale:15:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:505:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:176:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2494:5: error:
static_assert failed due to requirement '__is_forward_iterator<boost::vtk_edge_iterator>::value'
"std::max_element requires a ForwardIterator"
static_assert(__is_forward_iterator<_ForwardIterator>::value,
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Infovis/BoostGraphAlgorithms/vtkBoostBetweennessClustering.cxx:96:28: note:
in instantiation of function template specialization 'std::__1::max_element<boost::vtk_edge_iterator,
boost::indirect_cmp<boost::vtkGraphEdgePropertyMapHelper<vtkFloatArray *>, std::__1::less<float> > >' requested
here
edge_descriptor e = *max_element(edges_iters.first, edges_iters.second,
^
/tmp/vtk-20191110-56417-1dvnr2b/VTK-8.2.0/Infovis/BoostGraphAlgorithms/vtkBoostBetweennessClustering.cxx:275:14: note:
in instantiation of function template specialization
'boost::betweenness_centrality_clustering<vtkMutableDirectedGraph *, boost::bc_clustering_threshold<double>,
boost::vtkGraphEdgePropertyMapHelper<vtkFloatArray *>, boost::vtkGraphEdgePropertyMapHelper<vtkDataArray *>,
boost::vtkGraphIndexMap>' requested here
boost::betweenness_centrality_clustering(out2,
^
The C++ compiler is:
$ clang++ -v
Apple clang version 11.0.0 (clang-1100.0.33.12)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin