# Build fails on Linux : configuration incomplete

**URL:** <https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898>\
**Category:** Support\
**Created:** [March 29, 2020, 6:59pm UTC](https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898 "2020-03-29T18:59:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [March 29, 2020, 6:59pm UTC](https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898/1 "2020-03-29T18:59:37Z")

</div>

My weekly build fails today when configuring Slicer itself :

> – Setting CPACK\_PACKAGE\_INSTALL\_DIRECTORY to ‘Slicer 4.11.0-2020-03-28’  
> – Setting CPACK\_PACKAGE\_DESCRIPTION\_FILE to ‘/home/arc/src/Slicer/README.txt’  
> – Setting CPACK\_RESOURCE\_FILE\_LICENSE to ‘/home/arc/src/Slicer/License.txt’  
> – Setting CPACK\_PACKAGE\_DESCRIPTION\_SUMMARY to ‘Medical Visualization and Processing Environment for Research’  
> – Configuring incomplete, errors occurred!  
> See also “/home/arc/src/Slicer-SuperBuild-clang/Slicer-build/CMakeFiles/CMakeOutput.log”.  
> See also “/home/arc/src/Slicer-SuperBuild-clang/Slicer-build/CMakeFiles/CMakeError.log”.

Please see CMakeError.log for [gcc](https://pastebin.com/EgQfUPyr) and [clang](https://pastebin.com/uYxxTeVx).

Slicer is configured in empty superbuild directories as such :

> export CFLAGS=" -I/usr/include/tirpc"  
> export CXXFLAGS=“-I/usr/include/tirpc”  
> cmake -DSlicer\_VTK\_VERSION\_MAJOR:INT=8 -DQt5\_DIR:PATH=/usr/lib/cmake/Qt5 -DSlicer\_USE\_PYTHONQT\_WITH\_OPENSSL:BOOL=ON -DBUILD\_TESTING:BOOL=OFF -DCMAKE\_BUILD\_TYPE:STRING=Release -DADDITIONAL\_CXX\_FLAGS:STRING=-I/usr/include/tirpc …/Slicer

Please advise for a fix.

Regards.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 30, 2020, 4:50am UTC](https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898/2 "2020-03-30T04:50:24Z")

</div>

You can find the actual CMake error message further up (it starts with `CMake Error` and contains a description of the problem and a call stack). Information in CMakeError.log and CMakeOutput.log are generally useless (they are too low-level).

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [March 30, 2020, 7:42am UTC](https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898/3 "2020-03-30T07:42:28Z")

</div>

The only CMake Error I could find is :

> CMake Error at Libs/CMakeLists.txt:105 (add\_subdirectory):  
> The source directory
> 
> ```
> /home/arc/src/Slicer-SuperBuild/vtkAddon
> 
> ```
> 
> does not contain a CMakeLists.txt file.

In effect, Slicer-SuperBuild/vtkAddon is empty.

Using cmake version 3.16.5.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [March 30, 2020, 8:03am UTC](https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898/4 "2020-03-30T08:03:56Z")

</div>

You just need to start the superbuild one more time and it will complete successfully. Here’s the ticket to track it

> <https://github.com/Slicer/Slicer/issues/4774>
>
> It looks like the external project in charge of downloading the source doesn't depend on the Slicer inner build project
>  
> ...

By the way since this is not yet fixed, I wonder why the factory builds do not fail.

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [March 30, 2020, 2:59pm UTC](https://discourse.slicer.org/t/build-fails-on-linux-configuration-incomplete/10898/5 "2020-03-30T14:59:29Z")

</div>

Yes, it does build when issuing make again.  
Thanks.
