# Cyclic dependency in module 'ROOTGraphicsPrimitives' in ROOT 6.16

**URL:** <https://root-forum.cern.ch/t/cyclic-dependency-in-module-rootgraphicsprimitives-in-root-6-16/32435>\
**Category:** ROOT\
**Tags:** build\
**Created:** [January 24, 2019, 11:31pm UTC](https://root-forum.cern.ch/t/cyclic-dependency-in-module-rootgraphicsprimitives-in-root-6-16/32435 "2019-01-24T23:31:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [January 24, 2019, 11:31pm UTC](https://root-forum.cern.ch/t/cyclic-dependency-in-module-rootgraphicsprimitives-in-root-6-16/32435/1 "2019-01-24T23:31:01Z")

</div>

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

> ```auto
> 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 ..`

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [January 25, 2019, 8:36am UTC](https://root-forum.cern.ch/t/cyclic-dependency-in-module-rootgraphicsprimitives-in-root-6-16/32435/2 "2019-01-25T08:36:06Z")

</div>

Hi @pamputt,

It is known issue which filed in Jira issue: [https://sft.its.cern.ch/jira/browse/ROOT-9409](https://sft.its.cern.ch/jira/browse/ROOT-9409)  
and expected to fixed in 6.16.02. For time being can you please try without root7 option?(e.g.-Droot7=OFF)

Cheers,  
Oksana.

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [January 28, 2019, 8:57am UTC](https://root-forum.cern.ch/t/cyclic-dependency-in-module-rootgraphicsprimitives-in-root-6-16/32435/3 "2019-01-28T08:57:12Z")

</div>

Yes, if I use -Droot7=OFF, the compilation ends succesfully. Thanks for the information and I hope it will be fixed soon.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 11, 2019, 9:07am UTC](https://root-forum.cern.ch/t/cyclic-dependency-in-module-rootgraphicsprimitives-in-root-6-16/32435/4 "2019-02-11T09:07:05Z")

</div>

Closed on February 11, 2019, 9:07am UTC

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