vtkm::io::reader::BOVDataSetReader creates delegation cycle
It looks like the BOVDataSetReader moved. When trying to compile the ContourTreeApp example I get a deprecation warning to use the BOVDataSetReader from its new location followed by an error, indicating that the constructor creates a delegation cycle.
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/examples/contour_tree_augmented/ContourTreeApp.cxx:451:23: warning: 'BOVDataSetReader' is deprecated: Please use vtkm::io::BOVDataSetReader. Deprecated in
version 1.6. [-Wdeprecated-declarations]
vtkm::io::reader::BOVDataSetReader reader(filename);
^
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/vtkm/io/reader/BOVDataSetReader.h:23:7: note: 'BOVDataSetReader' has been explicitly marked deprecated here
class VTKM_DEPRECATED(1.6, "Please use vtkm::io::BOVDataSetReader.") BOVDataSetReader
^
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/vtkm/Deprecated.h:136:32: note: expanded from macro 'VTKM_DEPRECATED'
#define VTKM_DEPRECATED(...) [[deprecated(VTK_M_DEPRECATED_MAKE_MESSAGE(__VA_ARGS__))]]
^
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/examples/contour_tree_augmented/ContourTreeApp.cxx:451:23: warning: 'BOVDataSetReader' is deprecated: Please use vtkm::io::BOVDataSetReader. Deprecated in
version 1.6. [-Wdeprecated-declarations]
vtkm::io::reader::BOVDataSetReader reader(filename);
^
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/vtkm/io/reader/BOVDataSetReader.h:23:7: note: 'BOVDataSetReader' has been explicitly marked deprecated here
class VTKM_DEPRECATED(1.6, "Please use vtkm::io::BOVDataSetReader.") BOVDataSetReader
^
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/vtkm/Deprecated.h:136:32: note: expanded from macro 'VTKM_DEPRECATED'
#define VTKM_DEPRECATED(...) [[deprecated(VTK_M_DEPRECATED_MAKE_MESSAGE(__VA_ARGS__))]]
^
In file included from /Users/oruebel/Devel/ALPINE/bract_port/vtk-m/examples/contour_tree_augmented/ContourTreeApp.cxx:72:
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/vtkm/io/reader/BOVDataSetReader.h:32:7: error: constructor for 'BOVDataSetReader' creates a delegation cycle [-Wdelegating-ctor-cycles]
: BOVDataSetReader(fileName)
^
In file included from /Users/oruebel/Devel/ALPINE/bract_port/vtk-m/examples/contour_tree_augmented/ContourTreeApp.cxx:72:
/Users/oruebel/Devel/ALPINE/bract_port/vtk-m/vtkm/io/reader/BOVDataSetReader.h:32:7: error: constructor for 'BOVDataSetReader' creates a delegation cycle [-Wdelegating-ctor-cycles]
: BOVDataSetReader(fileName)
I tried to update to the example to new reader, but unfortunately that resulted in linker errors:
Undefined symbols for architecture x86_64:
"vtkm::io::BOVDataSetReader::ReadDataSet()", referenced from:
_main in ContourTreeApp.cxx.o
"vtkm::io::BOVDataSetReader::BOVDataSetReader(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
_main in ContourTreeApp.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [examples/contour_tree_augmented/ContourTree_Augmented_MPI] Error 1
make[1]: *** [examples/contour_tree_augmented/CMakeFiles/ContourTree_Augmented_MPI.dir/all] Error 2
make: *** [all] Error 2
Edited by Oliver Ruebel