ADIOS2: VTXHelper.cxx build failure on MSVC and macOS
The ADIOS2 module fails to build in the ParaView superbuild. Relevant failure output from the full log included below:
[7866/19749] Building CXX object VTK\IO\ADIOS2\CMakeFiles\IOADIOS2.dir\VTX\common\VTXHelper.cxx.obj
FAILED: VTK/IO/ADIOS2/CMakeFiles/IOADIOS2.dir/VTX/common/VTXHelper.cxx.obj
C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe /nologo /TP -DIOADIOS2_EXPORTS -DIOADIOS2_HAVE_MPI -DMPICH_SKIP_MPICXX -DOMPI_SKIP_MPICXX -DVTK_MODULE_ENABLE_VTK_ParallelMPI=1 -DVTK_MODULE_ENABLE_VTK_mpi=1 -DVTK_MODULE_ENABLE_VTK_pugixml=1 -DVTK_MODULE_ENABLE_VTK_vtksys=1 -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_MPICC_H -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -IVTK\IO\ADIOS2 -IC:\bbd\cf096d1e\source-paraview\VTK\IO\ADIOS2 -IVTK\Common\Core -IC:\bbd\cf096d1e\source-paraview\VTK\Common\Core -IVTK\Utilities\KWIML -IC:\bbd\cf096d1e\source-paraview\VTK\Utilities\KWIML -IVTK\Utilities\KWSys -IC:\bbd\cf096d1e\source-paraview\VTK\Utilities\KWSys -IC:\bbd\cf096d1e\build\install\include -IVTK\Common\ExecutionModel -IC:\bbd\cf096d1e\source-paraview\VTK\Common\ExecutionModel -IVTK\Common\DataModel -IC:\bbd\cf096d1e\source-paraview\VTK\Common\DataModel -IVTK\Common\Math -IC:\bbd\cf096d1e\source-paraview\VTK\Common\Math -IVTK\Common\Transforms -IC:\bbd\cf096d1e\source-paraview\VTK\Common\Transforms -IVTK\Parallel\Core -IC:\bbd\cf096d1e\source-paraview\VTK\Parallel\Core -IVTK\Parallel\MPI -IC:\bbd\cf096d1e\source-paraview\VTK\Parallel\MPI -I"C:\Program Files (x86)\Microsoft SDKs\MPI\Include" -IVTK\ThirdParty\pugixml\vtkpugixml -IC:\bbd\cf096d1e\source-paraview\VTK\ThirdParty\pugixml\vtkpugixml -IVTK\ThirdParty\pugixml -IC:\bbd\cf096d1e\source-paraview\VTK\ThirdParty\pugixml /DWIN32 /D_WINDOWS /W4 /GR /EHsc -DBOOST_ALL_NO_LIB /MD /O2 /Ob2 /DNDEBUG /showIncludes /FoVTK\IO\ADIOS2\CMakeFiles\IOADIOS2.dir\VTX\common\VTXHelper.cxx.obj /FdVTK\IO\ADIOS2\CMakeFiles\IOADIOS2.dir\ /FS -c C:\bbd\cf096d1e\source-paraview\VTK\IO\ADIOS2\VTX\common\VTXHelper.cxx
C:\bbd\cf096d1e\source-paraview\VTK\IO\ADIOS2\VTX\common\VTXHelper.cxx(359): error C2893: Failed to specialize function template 'std::vector<T,std::allocator<_Ty>> vtx::helper::StringToVector(const std::string &) noexcept'
C:\bbd\cf096d1e\source-paraview\VTK\IO\ADIOS2\VTX\common\VTXHelper.cxx(359): note: With the following template arguments:
C:\bbd\cf096d1e\source-paraview\VTK\IO\ADIOS2\VTX\common\VTXHelper.cxx(359): note: 'T=std::size_t'
There is also a linking failure on bigmac
.
Undefined symbols for architecture x86_64:
"vtkSmartPointer<vtkDataArray> vtx::helper::NewDataArray<long long>()", referenced from:
void vtx::VTXSchema::InitDataArray<long long>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, unsigned long, vtx::types::DataArray&) in VTXSchema.cxx.o
"vtkSmartPointer<vtkDataArray> vtx::helper::NewDataArray<unsigned long long>()", referenced from:
void vtx::VTXSchema::InitDataArray<unsigned long long>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long, unsigned long, vtx::types::DataArray&) in VTXSchema.cxx.o