I am trying to build ParaView 5.8.0 from source, but it is failing with the following output:
WARNING: Target "cmTC_42f5c" 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_42f5c" 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:4111 (message):
Could not find the MPI external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:4634 (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.0/build/CMakeFiles/CMakeOutput.log".
See also "/lustre/ssd/ws/alves-paraview/v5.8.0/build/CMakeFiles/CMakeError.log".
CMakeOutput.log (400.3 KB) and CMakeError.log (37.7 KB) are attached. The very same script works with version 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}"
I am Rigel, from ZIH (Dresden). I am using Intel 2018a, and the script loads the same modules for both versions (5.7.0 and 5.8.0). The issue is certainly on the CMake files of the new version, as the very same script works (with the same modules and flags, including the MPI installation) for version 5.7.0.
I can see here that the build process manages to pass that point if you deactivate MPI.
alves@tauruslogin6:~> ml iimpi/2018a
Module iimpi/2018a and 6 dependencies loaded.
alves@tauruslogin6:~> whereis mpiicc
mpiicc: /software/generic/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/intel64/bin/mpiicc
Which of them (mpicc, mpiicc, icc etc.) is being used, I don’t know: the script – which works fine for version 5.7.0 – just loads the modules and then calls CMake (the only flags being those mentioned above)…
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND C)
CMake Error at VTK/CMake/vtkModule.cmake:4111 (message):
Could not find the MPI external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:4634 (vtk_module_find_package)
VTK/Utilities/MPI/CMakeLists.txt:1 (vtk_module_third_party_external)
Using Foss 2018a (instead of Intel 2018a) modules:
ml Qt5/5.10.1-foss-2018a
ml Python/3.6.4-foss-2018a
ml CMake/3.12.1-GCCcore-6.4.0
Also fails with the same error:
-- 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:4111 (message):
Could not find the MPI external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:4634 (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.0/build/CMakeFiles/CMakeOutput.log".
See also "/lustre/ssd/ws/alves-paraview/v5.8.0/build/CMakeFiles/CMakeError.log".
ml Qt5/5.10.1-foss-2018b
ml Python/3.6.6-foss-2018b
ml CMake/3.12.1-GCCcore-7.3.0
Also fails:
-- 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:4111 (message):
Could not find the MPI external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:4634 (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.0/build/CMakeFiles/CMakeOutput.log".
See also "/lustre/ssd/ws/alves-paraview/v5.8.0/build/CMakeFiles/CMakeError.log".
ml Qt5/5.12.3-GCCcore-8.2.0
ml Python/3.6.6-foss-2019a
ml CMake/3.13.3-GCCcore-8.2.0
Fails the same way:
-- 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:4111 (message):
Could not find the MPI external dependency.
Call Stack (most recent call first):
VTK/CMake/vtkModule.cmake:4634 (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.0/build/CMakeFiles/CMakeOutput.log".
See also "/lustre/ssd/ws/alves-paraview/v5.8.0/build/CMakeFiles/CMakeError.log".
This problem must be on ParaView’s CMake files side.