# building version 5.8.0 fails

**URL:** https://discourse.paraview.org/t/building-version-5-8-0-fails/3660
**Category:** ParaView Support
**Created:** [February 25, 2020, 1:14pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660 "2020-02-25T13:14:04Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 25, 2020, 1:14pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/1 "2020-02-25T13:14:04Z")

</div>

Hi,

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](https://discourse.paraview.org/uploads/short-url/kVgaoXyYlCipfE6JRw7cQacf4qS.log) (400.3 KB) and [CMakeError.log](https://discourse.paraview.org/uploads/short-url/h0RLKJerqisRDNzrcuP7QFXOrez.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}"

```

Could you help me?

Thank you very much,

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2020, 2:30am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/2 "2020-02-26T02:30:02Z")

</div>

Are you able to build without MPI enabled ?

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 26, 2020, 8:52am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/3 "2020-02-26T08:52:04Z")

</div>

I am building in a Linux cluster: deactivating MPI is not an option… The very same script [taurus.sh](https://discourse.paraview.org/uploads/short-url/pqfPN8fG03qlc0EFIypFVuZaCa5.sh) (2.4 KB) works for version 5.7.0, however.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2020, 8:54am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/4 "2020-02-26T08:54:08Z")

</div>

Well yes, but does it build without MPI ?

In any case, if this is indeed a MPI problem, you will have to provide more info about the MPI you are running.

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 26, 2020, 9:02am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/5 "2020-02-26T09:02:54Z")

</div>

Hi Mathieu,

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.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [February 26, 2020, 9:05am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/6 "2020-02-26T09:05:12Z")

</div>

Okay, but in order to understand where does the problem come from, we would need more information about your MPI installation.

Lots of things changed between 5.7 and 5.8, especially regarding CMake.

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 26, 2020, 9:09am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/7 "2020-02-26T09:09:03Z")

</div>

Right. Is there any command you would like me to run, in order to provide such details? Here a first one:

```
alves@tauruslogin6:~> ml iimpi/2018a
Module iimpi/2018a and 6 dependencies loaded.
alves@tauruslogin6:~> mpicc --version
icc (ICC) 18.0.1 20171018
Copyright (C) 1985-2017 Intel Corporation. All rights reserved
```

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 27, 2020, 4:21am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/8 "2020-02-27T04:21:17Z")

</div>

For reference, we have a dashboard machine building ParaView with Intel’s MPI 2019.5.281. See e.g., [https://open.cdash.org/buildSummary.php?buildid=6378041](https://open.cdash.org/buildSummary.php?buildid=6378041).

Is `mpiicc` available by chance (note the two "i"s)?

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 27, 2020, 8:21am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/9 "2020-02-27T08:21:03Z")

</div>

Yes, it is:

```
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)…

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 27, 2020, 8:31am UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/10 "2020-02-27T08:31:42Z")

</div>

I have just checked the [CMakeCache.txt](https://discourse.paraview.org/uploads/short-url/zE0VqPYJinqNUXErtaTBxBBPXBC.txt) (296.3 KB) for version 5.7.0 (which builds successfully). This is the MPI compiler being used:

```
//MPI compiler for C
MPI_C_COMPILER:FILEPATH=/sw/installed/impi/2018.1.163-iccifort-2018.1.163-GCC-6.4.0-2.28/bin64/mpiicc
```

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [February 27, 2020, 2:43pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/11 "2020-02-27T14:43:18Z")

</div>

Can you modify your script to set `MPI_C_COMPILER` and `MPI_CXX_COMPILER` explicitly?

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 27, 2020, 2:53pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/12 "2020-02-27T14:53:41Z")

</div>

Ok. What should I set them to?

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [February 27, 2020, 3:19pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/13 "2020-02-27T15:19:28Z")

</div>

Using:

```
CMAKE_FLAGS="${CMAKE_FLAGS} -D MPI_C_COMPILER=`whereis mpiicc`"
CMAKE_FLAGS="${CMAKE_FLAGS} -D MPI_CXX_COMPILER=`whereis mpiicpc`"

```

Fails with the following output:

```
-- 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)
```

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [April 23, 2020, 6:42pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/14 "2020-04-23T18:42:59Z")

</div>

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".

```

Could someone help me?

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [April 23, 2020, 6:55pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/15 "2020-04-23T18:55:02Z")

</div>

Using Foss 2018b:

```
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".
```

---

<div class="post-metadata">

### Author: ![Rigel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@Rigel](https://discourse.paraview.org/u/Rigel)
#### Post date: [April 23, 2020, 8:31pm UTC](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660/16 "2020-04-23T20:31:48Z")

</div>

Foss 2019a:

```
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.
