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

[Runtime modules] Broken build with gcc10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: master
    • Component/s: Build System
    • Labels:
      None
    • Environment:

      Arch linux

      gcc10.1.0

      cxx17

       

      /usr/bin/cmake -DCMAKE_CXX_STANDARD="17" -DCMAKE_CXX_COMPILER="g++" -DCMAKE_C_COMPILER="gcc" -Dccache="ON" -Dtesting="ON" -Dbuiltin_xrootd="ON" -Druntime_cxxmodules="ON" /path/to/src

    • Development:

      Description

      I get following error from a clean build:

       

       In module 'std' imported from input_line_1:1:
      /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0/bits/unique_ptr.h:207:12: error: 'std::__uniq_ptr_data<RooDataSet, std::default_delete<RooDataSet>, true, true>' has different definitions
            in different modules; defined here
          struct __uniq_ptr_data : __uniq_ptr_impl<_Tp, _Dp>
                 ^
      /usr/lib/gcc/x86_64-pc-linux-gnu/10.1.0/../../../../include/c++/10.1.0/bits/unique_ptr.h:207:12: note: definition in module 'std.condition_variable' is here
      Error: /home/stefan/builds/root-dev/bin/rootcling: compilation failure (/home/stefan/builds/root-dev/lib/libRooStats03cff1ce95_dictUmbrella.h)
      make[2]: *** [roofit/roostats/CMakeFiles/G__RooStats.dir/build.make:222: roofit/roostats/G__RooStats.cxx] Error 1
      make[1]: *** [CMakeFiles/Makefile2:31432: roofit/roostats/CMakeFiles/G__RooStats.dir/all] Error 2

       

      Switching runtime_cxxmodules off solves the issue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oshadura Oksana Shadura
              Reporter:
              swunsch Stefan Wunsch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: