Root Build fails on Ubuntu 18.04

[ 72%] Built target MetaCling
[ 72%] Generating dummy.cxx
Scanning dependencies of target Cling
[ 72%] Building CXX object core/metacling/src/CMakeFiles/Cling.dir/dummy.cxx.o
[ 72%] Linking CXX shared library …/…/…/lib/
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/build.make:212: recipe for target ‘core/rootcling_stage1/src/rootcling_stage1’ failed
make[2]: *** [core/rootcling_stage1/src/rootcling_stage1] Error 1
make[2]: *** Deleting file ‘core/rootcling_stage1/src/rootcling_stage1’
CMakeFiles/Makefile2:18929: recipe for target ‘core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all’ failed
make[1]: *** [core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 72%] Built target Cling
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2

ROOT Version: 6-14-04
Platform: Ubuntu 18.04 LTS
Compiler: Not Provided

The compilation was killed by the OS.
Probably it reached some of memory limit (not uncommon when building/linking this monster libCling) or a disk space limit.

Try rebuilding but disabling the parallel compilation to save on some resources.

1 Like

Will increasing cores using “-j2” help ?

decreasing would help :slight_smile: (if the root of the error is the one I am thinking about.)
-j1 would be the best amount of decreasing.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.