# building version 5.8.1 fails

**URL:** https://discourse.paraview.org/t/building-version-5-8-1-fails/5070
**Category:** ParaView Support
**Created:** [August 10, 2020, 6:29pm UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070 "2020-08-10T18:29:26Z")
**Posts on this page:** 6
**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: [August 10, 2020, 6:29pm UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070/1 "2020-08-10T18:29:26Z")

</div>

Hi,

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](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660)). 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}"

```

Could you help me?

Best regards,

---

<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: [August 11, 2020, 11:31am UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070/2 "2020-08-11T11:31:45Z")

</div>

Are you enabling MPI ? You should either disable it or install the dependency.

---

<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: [August 11, 2020, 1:07pm UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070/3 "2020-08-11T13:07:58Z")

</div>

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.

---

<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: [August 11, 2020, 1:09pm UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070/4 "2020-08-11T13:09:27Z")

</div>

Then it looks like there is an issue.

---

<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: [August 11, 2020, 1:52pm UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070/5 "2020-08-11T13:52:06Z")

</div>

Indeed, I have been pointing that out since the release of version 5.8.0:

> [@building version 5.8.0 fails](https://discourse.paraview.org/t/building-version-5-8-0-fails/3660):
>
> 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 i…

---

<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: [August 11, 2020, 1:57pm UTC](https://discourse.paraview.org/t/building-version-5-8-1-fails/5070/6 "2020-08-11T13:57:35Z")

</div>

On the other hand, the installation manages to pass that point when using:

```
ml foss/2020a
ml Qt5/5.14.1-GCCcore-9.3.0
ml Python/3.8.2-GCCcore-9.3.0
ml CMake/3.16.4-GCCcore-9.3.0

```

Instead of:

```
ml Qt5/5.10.1-intel-2018a
ml Python/3.6.4-intel-2018a
ml CMake/3.12.1-GCCcore-6.4.0

```

So it seems to be a backwards compatibility issue of the new CMake files in ParaView.
