Error when instaling to about 57%


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.18.04
Platform: Ubuntu18.04LTS
Compiler: CMake


Hello guys

I meet some problem when installing the v6.18.04T
I selected -Dall=ON at cmake and it run smoothly,
but when I do the cmake --build it turns out an error at 57% as

[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualPS.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualViewer3D.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualX.cxx.o
[ 57%] Built target Base
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2

Some websites said it may because I run out of disk or RAM space but it is not likely, It is not run it on a VM and I have plenty of either disk or RAM space
How can I solve it?

Thanks

Can you post the lines before (let’s say the 20 lines before) to see the error message?

PS: do not post several times for the same issue.

Ok, I did the build again and same error happens, here’s the codes

[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TUUID.cxx.o
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.hist3d.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.jquery.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.more.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.v6.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.v7.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.v7hist.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootPainter.v7more.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/JSRootTree.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/ThreeCSG.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/d3.LICENSE
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/d3.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/dat.gui.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/jquery-ui.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/jquery.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/jquery.mousewheel.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/rawinflate.min.js
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualFFT.cxx.o
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/three.LICENSE
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/three.extra.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/three.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/scripts/touch-punch.min.js
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/JSRootGeoPainter.css
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/JSRootPainter.css
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/images/ui-icons_444444_256x240.png
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/images/ui-icons_555555_256x240.png
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/images/ui-icons_777620_256x240.png
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/images/ui-icons_777777_256x240.png
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/images/ui-icons_cc0000_256x240.png
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/images/ui-icons_ffffff_256x240.png
[ 57%] Copying /home/lym/ROOT/root-6.18.04/js/style/jquery-ui.css
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualGL.cxx.o
[ 57%] Built target move_artifacts
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualMonitoring.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualMutex.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualPad.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualPadEditor.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualPadPainter.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualPerfStats.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualPS.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualViewer3D.cxx.o
[ 57%] Building CXX object core/base/CMakeFiles/Base.dir/src/TVirtualX.cxx.o
[ 57%] Built target Base
Makefile:151: recipe for target ‘all’ failed
make: *** [all] Error 2

Thanks for attention

The real error happens still before all these lines. Maybe it’s better to put the whole build log in pastebin.com and link it here.

Yes you are right, I checked again and find the first error occour at 50%
I put the codes start from 45% under this link
https://pastebin.com/HM0u7gEb
Sorry I can’t put all of them from 0%, that seems expire the size limit of pastebin to paste.

Thanks

The codes of the previous step
https://pastebin.com/Y5FFWjcf

In file included from /home/lym/ROOT/root-6.18.04/graf3d/glew/src/glew.c:44:0:
/home/lym/ROOT/root/include/GL/glew.h:1141:10: fatal error: GL/glu.h: No such file or directory
 #include <GL/glu.h>
          ^~~~~~~~~~
compilation terminated.
graf3d/glew/CMakeFiles/GLEW.dir/build.make:62: recipe for target 'graf3d/glew/CMakeFiles/GLEW.dir/src/glew.c.o' failed
make[2]: *** [graf3d/glew/CMakeFiles/GLEW.dir/src/glew.c.o] Error 1

The above is the real problem. You probably don’t have dependencies required to build all options you enabled. In this case, you’d have to disable OpenGL support or install GLEW and GLU/GLUT.