I cannot build ROOT

Hi!
I’m having some issues trying to install ROOT.
I finished to execute cmake on the directory “obj”.
Then, I try to execute make. But, the terminal say as below.

xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$ make -j4
Scanning dependencies of target TBB
Scanning dependencies of target VDT
Scanning dependencies of target AFTERIMAGE
Scanning dependencies of target LZMA
.....
[ 45%] Copying /home/xxxxx/root-6.18.04/tutorials/tmva/TMVAClassificationCategory.C
c++: internal compiler error: Killer (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/build.make:62: recipe for target 'interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/AnalysisBasedWarnings.cpp.o' failed
make[2]: *** [interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/AnalysisBasedWarnings.cpp.o] Error 4
make[2]: *** File 'interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/AnalysisBasedWarnings.cpp.o' を削除します
make[2]: *** Waiting for unfinished job....
[ 45%] Copying /home/xxxxx/root-6.18.04/tutorials/tmva/TMVAClassificationCategoryApplication.C
.....
[ 46%] Copying /home/xxxxx/root-6.18.04/tutorials/tree/tv3.C
CMakeFiles/Makefile2:9681: recipe for target 'interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/all' failed
make[1]: *** [interpreter/llvm/src/tools/clang/lib/Sema/CMakeFiles/clangSema.dir/all] Error 2
make[1]: *** Waiting for unfinished job....
[ 46%] Copying /home/xxxxx/root-6.18.04/tutorials/tree/tvdemo.C
.....
[ 59%] Built target move_artifacts
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
xxxxx@xxxxx-virtualbox:~/root-6.18.04/obj$ 

I have no idea what I should do next. I would like you to give advises.
Thank you.

ROOT Version: v6.18.04
Platform: Ubuntu 18.04.1
Compiler: gcc 7.4.0

Hi, did you try to just call “make” instead of “make -j4”?

thank you for reply.
My answer to your question is I did. But, execution result is same.

Does

make clangSema
make

help?

If not, check whether you’re running out of memory.

If not, where exactly did you get the compiler from, what’s the distribution you’re running?

Axel.

That’s why because Insufficient memory.
The expansion of the SWAP space made the “make” command execute completely.
Before expansion of the SWAP space,

              total        used        free      shared  buff/cache   available
Mem:           1.9G        658M        230M         43M        1.0G        1.0G
Swap:          472M        445M         27M

and after expanding it.

              total        used        free      shared  buff/cache   available
Mem:           2.0G        786M        187M         18M        1.0G        1.0G
Swap:          1.5G          0B        1.5G

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