# Error while building 3D Slicer

**URL:** <https://discourse.slicer.org/t/error-while-building-3d-slicer/10846>\
**Category:** Development\
**Tags:** build\
**Created:** [March 26, 2020, 1:20pm UTC](https://discourse.slicer.org/t/error-while-building-3d-slicer/10846 "2020-03-26T13:20:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alankrutha](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@alankrutha](https://discourse.slicer.org/u/alankrutha)\
**Post date:** [March 26, 2020, 1:20pm UTC](https://discourse.slicer.org/t/error-while-building-3d-slicer/10846/1 "2020-03-26T13:20:54Z")

</div>

Hi Team,

I’m facing issue while compiling 3d Slicer source code.

Gave make and below are last 30 lines of compilation log.

[81%] Built target SimpleITK\_ITKImageFunction  
[81%] Building CXX object Code/BasicFilters/src/CMakeFiles/SimpleITK\_ITKImageGrid.dir/sitkResampleImageFilter.cxx.o  
c++: internal compiler error: Killed (program cc1plus)  
Please submit a full bug report,  
with preprocessed source if appropriate.  
See \<file:///usr/share/doc/gcc-5/README.Bugs\> for instructions.  
Code/BasicFilters/src/CMakeFiles/SimpleITK\_ITKImageGrid.dir/build.make:192: recipe for target ‘Code/BasicFilters/src/CMakeFiles/SimpleITK\_ITKImageGrid.dir/sitkResampleImageFilter.cxx.o’ failed  
make[8]: \*\*\* [Code/BasicFilters/src/CMakeFiles/SimpleITK\_ITKImageGrid.dir/sitkResampleImageFilter.cxx.o] Error 4  
CMakeFiles/Makefile2:1721: recipe for target ‘Code/BasicFilters/src/CMakeFiles/SimpleITK\_ITKImageGrid.dir/all’ failed  
make[7]: \*\*\* [Code/BasicFilters/src/CMakeFiles/SimpleITK\_ITKImageGrid.dir/all] Error 2  
Makefile:151: recipe for target ‘all’ failed  
make[6]: \*\*\* [all] Error 2  
CMakeFiles/SimpleITK.dir/build.make:114: recipe for target ‘SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build’ failed  
make[5]: \*\*\* [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2  
CMakeFiles/Makefile2:209: recipe for target ‘CMakeFiles/SimpleITK.dir/all’ failed  
make[4]: \*\*\* [CMakeFiles/SimpleITK.dir/all] Error 2  
Makefile:83: recipe for target ‘all’ failed  
make[3]: \*\*\* [all] Error 2  
CMakeFiles/SimpleITK.dir/build.make:115: recipe for target ‘SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build’ failed  
make[2]: \*\*\* [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2  
CMakeFiles/Makefile2:1621: recipe for target ‘CMakeFiles/SimpleITK.dir/all’ failed  
make[1]: \*\*\* [CMakeFiles/SimpleITK.dir/all] Error 2  
Makefile:94: recipe for target ‘all’ failed  
make: \*\*\* [all] Error 2

Kindly do the needful.

Thanks,  
Alankrutha

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [March 26, 2020, 1:47pm UTC](https://discourse.slicer.org/t/error-while-building-3d-slicer/10846/2 "2020-03-26T13:47:11Z")

</div>

You might have ran out of RAM. Assuming you are running a parallel make, you might try using fewer parallel processes.
