Error while building 3D Slicer

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

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