Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-9409

Root7 breaks C++ modules

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Medium
    • Resolution: Fixed
    • None
    • 6.14/00, 6.16/02
    • C++ modules
    • None
    • Linux

    Description

      With the root7 build option enabled, it seems ROOT is failing to build with runtime_cxxmodules enabled. Below are the errors that describe what is wrong:

      [ 82%] Generating G__MathCore.cxx, ../../lib/libMathCore_rdict.pcm, ../../lib/libMathCore.rootmap, ../../lib/MathCore.pcm 
      In file included from input_line_13:10: 
      /build/root-build/include/ROOT/TLine.hxx:22:10: remark: building module 'ROOTGpadv7' as '/build/root-build/lib/ROOTGpadv7.pcm' [-Rmodule-build] 
      #include <ROOT/TPadPos.hxx> 
               ^ 
      Error: Had to build non-system module ROOTGpadv7 implicitly. You first need to 
      generate the dictionary for ROOTGpadv7 or mark the C++ module as a system 
      module if you provided your own system modulemap file: 
      ROOTGpadv7 [system] \{ ... } 
      While building module 'ROOTGraphicsPrimitives': 
      While building module 'ROOTGpadv7' imported from /build/root-build/include/ROOT/TLine.hxx:22: 
      In file included from <module-includes>:1: 
      In file included from /build/root-build/include/ROOT/TCanvas.hxx:19: 
      /build/root-build/include/ROOT/TPad.hxx:23:10: fatal error: cyclic dependency in module 'ROOTGraphicsPrimitives': ROOTGraphicsPrimitives -> ROOTGpadv7 -> ROOTGraphicsPrimitiv 
      es 
      #include "ROOT/TDrawingAttr.hxx" 
               ^ 
      In file included from input_line_13:10: 
      /build/root-build/include/ROOT/TLine.hxx:22:10: fatal error: could not build module 'ROOTGpadv7' 
      #include <ROOT/TPadPos.hxx> 
       ~~~~~~~~^
      

      Attachments

        Activity

          People

            vvasilev Vassil Vasilev
            risemann Raphael Isemann (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Actual End: