Cmake error 71% Built target clangCodeGen Makefile:151: recipe for target 'all' failed make: *** [all] Error 2


ROOT Version: v6.18.00
Platform: Ubuntu
Compiler: Not Provided


Hi,

I was trying to build root from source and was following the README till i got the following error:

[ 71%] Linking CXX static library ../../../../lib/libclangCodeGen.a
[ 71%] Built target clangCodeGen
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Any help is appreciated, thanks!

If you have less than 8GB of RAM, please try with make -j1.

I have 16GB of RAM but i tried it at -j1 anyway, I made some progress but it failed here:

Scanning dependencies of target G__RGL
[ 86%] Generating G__RGL.cxx, ../../lib/libRGL_rdict.pcm, ../../lib/libRGL.rootmap
[ 86%] Built target G__RGL
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libGL.so', needed by 'lib/libGLEW.so'.  Stop.
CMakeFiles/Makefile2:25313: recipe for target 'graf3d/glew/CMakeFiles/GLEW.dir/all' failed
make[1]: *** [graf3d/glew/CMakeFiles/GLEW.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

Thanks!

I fixed the above issue using the steps listed:

The symlink was broken for the file

/usr/lib/x86_64-linux-gnu/libGL.so

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