I have been trying to build ParaView 5.8 from source since version 5.8.0, but it fails (see building version 5.8.0 fails). I have just tried again, with the newly released version 5.8.1, but the same problem remains:
WARNING: Target "cmTC_0888c" requests linking to directory "/sw/installed/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/intel64/lib/release_mt". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "cmTC_0888c" requests linking to directory "/sw/installed/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/intel64/lib". Targets may link only to libraries. CMake is dropping the item.
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND C)
CMake Error at VTK/CMake/vtkModule.cmake:4112 (message):
Could not find the MPI external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:4635 (vtk_module_find_package)
VTK/Utilities/MPI/CMakeLists.txt:1 (vtk_module_third_party_external)
-- Configuring incomplete, errors occurred!
See also "/lustre/ssd/ws/alves-paraview/v5.8.1/build/CMakeFiles/CMakeOutput.log".
See also "/lustre/ssd/ws/alves-paraview/v5.8.1/build/CMakeFiles/CMakeError.log".
The same script works well with ParaView 5.7.0:
ml purge
ml Qt5/5.10.1-intel-2018a
ml Python/3.6.4-intel-2018a
ml CMake/3.12.1-GCCcore-6.4.0
CMAKE_FLAGS=""
CMAKE_FLAGS="${CMAKE_FLAGS} -D CMAKE_INSTALL_PREFIX=${INSTALL_DIR}"
CMAKE_FLAGS="${CMAKE_FLAGS} -D PARAVIEW_ENABLE_PYTHON:BOOL=ON"
CMAKE_FLAGS="${CMAKE_FLAGS} -D PARAVIEW_USE_MPI:BOOL=ON"
CMAKE_FLAGS="${CMAKE_FLAGS} ${SOURCE_DIR}"
Thanks Mathieu. But the same lines work with ParaView 5.7.0… I think something has changed inside ParaView’s CMake files since version 5.8.0, such that the installation now hits the error message:
WARNING: Target "cmTC_0888c" requests linking to directory "/sw/installed/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/intel64/lib/release_mt". Targets may link only to libraries. CMake is dropping the item.
WARNING: Target "cmTC_0888c" requests linking to directory "/sw/installed/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/intel64/lib". Targets may link only to libraries. CMake is dropping the item.
Disabling MPI is not an option for us, as we will need to run ParaView with it. On the other hand, MPI is correctly installed in our cluster, such that the very same script works with ParaView 5.7.0.