Hello I try to compile ROOT 6.16.00 from sources on linux 64-bits. My compiler is gcc-5.5.
Here is the error message I get
Scanning dependencies of target G__Hist [ 74%] Generating G__Hist.cxx, ../../lib/libHist_rdict.pcm, ../../lib/libHist.rootmap, ../../lib/Hist.pcm In file included from input_line_13:85: /home/pamputt/root-6.16.00/builddir/include/ROOT/RHist.hxx:23:10: remark: building module 'ROOTHistDraw' as '/home/pamputt/root-6.16.00/builddir/lib/ROOTHistDraw.pcm' [-Rmodule-build] #include "ROOT/RHistDrawable.hxx" ^ Error: Had to build non-system module ROOTHistDraw implicitly. You first need to generate the dictionary for ROOTHistDraw or mark the C++ module as a system module if you provided your own system modulemap file: ROOTHistDraw [system] { ... } While building module 'Hist': While building module 'ROOTHistDraw' imported from /home/pamputt/root-6.16.00/builddir/include/ROOT/RHist.hxx:23: While building module 'ROOTGraphicsPrimitives' imported from /home/pamputt/root-6.16.00/builddir/include/ROOT/RHistDrawingOpts.hxx:19: While building module 'ROOTGpadv7' imported from /home/pamputt/root-6.16.00/builddir/include/ROOT/RBox.hxx:22: In file included from <module-includes>:1: In file included from /home/pamputt/root-6.16.00/builddir/include/ROOT/RCanvas.hxx:19: /home/pamputt/root-6.16.00/builddir/include/ROOT/RPad.hxx:23:10: fatal error: cyclic dependency in module 'ROOTGraphicsPrimitives': ROOTGraphicsPrimitives -> ROOTGpadv7 -> ROOTGraphicsPrimitives #include "ROOT/RDrawingAttr.hxx" ^ While building module 'Hist': While building module 'ROOTHistDraw' imported from /home/pamputt/root-6.16.00/builddir/include/ROOT/RHist.hxx:23: While building module 'ROOTGraphicsPrimitives' imported from /home/pamputt/root-6.16.00/builddir/include/ROOT/RHistDrawingOpts.hxx:19: In file included from <module-includes>:1: /home/pamputt/root-6.16.00/builddir/include/ROOT/RBox.hxx:22:10: fatal error: could not build module 'ROOTGpadv7' #include <ROOT/RPadPos.hxx> ^ While building module 'Hist': While building module 'ROOTHistDraw' imported from /home/pamputt/root-6.16.00/builddir/include/ROOT/RHist.hxx:23: In file included from <module-includes>:1: In file included from /home/pamputt/root-6.16.00/builddir/include/ROOT/RHistDrawable.hxx:20: /home/pamputt/root-6.16.00/builddir/include/ROOT/RHistDrawingOpts.hxx:19:10: fatal error: could not build module 'ROOTGraphicsPrimitives' #include <ROOT/RDrawingAttr.hxx> ^ In file included from input_line_13:85: /home/pamputt/root-6.16.00/builddir/include/ROOT/RHist.hxx:23:10: fatal error: could not build module 'ROOTHistDraw' #include "ROOT/RHistDrawable.hxx" ^ Error: /home/pamputt/root-6.16.00/builddir/bin/rootcling: compilation failure (/home/pamputt/root-6.16.00/builddir/lib/libHist241acd371a_dictUmbrella.h) hist/hist/CMakeFiles/G__Hist.dir/build.make:242 : la recette pour la cible « hist/hist/G__Hist.cxx » a échouée make[2]: *** [hist/hist/G__Hist.cxx] Erreur 1 CMakeFiles/Makefile2:21571 : la recette pour la cible « hist/hist/CMakeFiles/G__Hist.dir/all » a échouée make[1]: *** [hist/hist/CMakeFiles/G__Hist.dir/all] Erreur 2 Makefile:151 : la recette pour la cible « all » a échouée make: *** [all] Erreur 2
And here the cmake command I use
cmake -Dcxx14=ON -Druntime_cxxmodules=ON -Dminuit2=ON -DCMAKE_INSTALL_PREFIX=/opt/root6.16 -Dpython=ON -DPYTHON_EXECUTABLE=/usr/bin/python3.5 -Droot7=ON ..