ParaView 5.6.2 multiple definitions in Catalyst API on Power9 with xl compiler
@utkarsh.ayachit @cory.quammen
ParaView version: v5.6.2
CMake version: 3.18.2
Compiler: ibm xlc 16.1.1.7, xlf 16.1.1.7, gcc 9.3.0, cuda-11.0
MPI: spectrum-mpi 10.3.0.1
Python: 3.7.8
CMake options: -DPARAVIEW_BUILD_QT_GUI:BOOL=OFF -DVTK_OPENGL_HAS_OSMESA:BOOL=ON -DVTK_USE_X:BOOL=OFF -DVTK_RENDERING_BACKEND:STRING=OpenGL2 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON -DBUILD_TESTING:BOOL=OFF -DBUILD_EXAMPLES:BOOL=OFF -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON -DVTK_USE_SYSTEM_HDF5:BOOL=ON -DVTK_USE_SYSTEM_JPEG:BOOL=ON -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON -DVTK_USE_SYSTEM_NETCDF:BOOL=ON -DVTK_USE_SYSTEM_EXPAT:BOOL=ON -DVTK_USE_SYSTEM_TIFF:BOOL=ON -DVTK_USE_SYSTEM_ZLIB:BOOL=ON -DVTK_USE_SYSTEM_PNG:BOOL=ON -DOpenGL_GL_PREFERENCE:STRING=LEGACY -DPARAVIEW_ENABLE_PYTHON:BOOL=ON -DVTK_USE_SYSTEM_MPI4PY:BOOL=ON -DVTK_PYTHON_VERSION:STRING=3 -DPARAVIEW_USE_MPI:BOOL=ON -DPARAVIEW_BUILD_SHARED_LIBS:BOOL=ON -DPARAVIEW_USE_CUDA:BOOL=OFF -DVTK_ENABLE_KITS:BOOL=ON
At about 70% in the build, it fails (I think during linking) with:
lib/libvtkPVCatalyst-pv5.6.so.1] Error 1
CMakeFiles/vtkPVCatalyst.dir/FortranAdaptorAPI.cxx.o: In function `coprocessorinitialize':
/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:21: multiple definition of `coprocessorinitialize'
CMakeFiles/vtkPVCatalyst.dir/CAdaptorAPI.cxx.o:/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:21: first defined here
CMakeFiles/vtkPVCatalyst.dir/FortranAdaptorAPI.cxx.o: In function `coprocess':
/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:49: multiple definition of `coprocess'
CMakeFiles/vtkPVCatalyst.dir/CAdaptorAPI.cxx.o:/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:49: first defined here
CMakeFiles/vtkPVCatalyst.dir/FortranAdaptorAPI.cxx.o: In function `needtocreategrid':
/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:42: multiple definition of `needtocreategrid'
CMakeFiles/vtkPVCatalyst.dir/CAdaptorAPI.cxx.o:/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:42: first defined here
CMakeFiles/vtkPVCatalyst.dir/FortranAdaptorAPI.cxx.o: In function `requestdatadescription':
/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:34: multiple definition of `requestdatadescription'
CMakeFiles/vtkPVCatalyst.dir/CAdaptorAPI.cxx.o:/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:34: first defined here
CMakeFiles/vtkPVCatalyst.dir/FortranAdaptorAPI.cxx.o: In function `coprocessorfinalize':
/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:27: multiple definition of `coprocessorfinalize'
CMakeFiles/vtkPVCatalyst.dir/CAdaptorAPI.cxx.o:/tmp/stam/spack-stage/spack-stage-paraview-5.6.2-ttxucrfthpfqwr22zxo7skioye2l4cui/spack-src/CoProcessing/Catalyst/CAdaptorAPI.cxx:27: first defined here
CoProcessing/PythonCatalyst/CPythonAdaptorAPI.cxx has the same problems with its definitions.