# Compilation of root-6.20.04 fails with gcc-10.1.0

**URL:** <https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951>\
**Category:** ROOT\
**Created:** [June 17, 2020, 2:40pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951 "2020-06-17T14:40:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaurynovich](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vaurynovich/32/22400_2.png) [@vaurynovich](https://root-forum.cern.ch/u/vaurynovich)\
**Post date:** [June 17, 2020, 2:40pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951/1 "2020-06-17T14:40:59Z")

</div>

Hello,

I am having difficulty compiling root-6.20.04 with gcc-10.1.0 on Red Hat Enterprise Linux Server 7.6. Please, let me know if this version of gcc is not supported yet. If it is supported, thank you for any clues on how to fix the problem.

Here is the error I get:

```auto
...
[76%] Generating G__RooFitCore.cxx, ../../lib/RooFitCore.pcm
In module 'std' imported from input_line_1:1:
.../gcc-10.1.0/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<ROOT::Experimental::TTaskGroup, std::default_delete<ROOT::Experimental::TTaskGroup>, true, true>' has different definitions
      in different modules; definition in module 'std.condition_variable' is here
    struct __uniq_ptr_data :__ uniq_ptr_impl<_Tp, _Dp>
           ^
.../gcc-10.1.0/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: Error loading the #pragma extra_include.
gmake[2]: *** [roofit/roofitcore/G__RooFitCore.cxx] Error 1
gmake[1]: *** [roofit/roofitcore/CMakeFiles/G__RooFitCore.dir/all] Error 2
gmake: *** [all] Error 2

```

Thank you for your help,  
Siarhei.

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [June 17, 2020, 3:25pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951/2 "2020-06-17T15:25:22Z")

</div>

Hello @vaurynovich,

it’s not supported yet, and I’m not sure if it will be supported for 6.20. For the upcoming 6.22 (maybe 6.24), we are working on supporting it, but that’s work in progress.

Maybe @Axel knows more details.

---

<div class="post-metadata">

**Author:** ![vaurynovich](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vaurynovich/32/22400_2.png) [@vaurynovich](https://root-forum.cern.ch/u/vaurynovich)\
**Post date:** [June 17, 2020, 3:26pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951/3 "2020-06-17T15:26:55Z")

</div>

Hello @StephanH,

Thank you very much for your reply! Please, let me know which versions of gcc are supported.

Best,  
Siarhei.

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [June 17, 2020, 3:31pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951/4 "2020-06-17T15:31:15Z")

</div>

Hopefully, anything from gcc4.8 to the latest gcc9. 🙂

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [June 20, 2020, 4:01pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951/5 "2020-06-20T16:01:47Z")

</div>

Hi Siarhei,  
there is a workaround, see the discussion at this post and following:

> [@Error Compiling ROOT 6.20/04](https://root-forum.cern.ch/t/error-compiling-root-6-20-04/39966/4):
>
> Does configuring the build with -Druntime\_cxxmodules=OFF help?

Hope this helps,  
Enrico

---

<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:** [July 4, 2020, 4:01pm UTC](https://root-forum.cern.ch/t/compilation-of-root-6-20-04-fails-with-gcc-10-1-0/39951/6 "2020-07-04T16:01:48Z")

</div>

Closed on July 4, 2020, 4:01pm UTC

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