Gcc10 compilation error:: std::__uniq_ptr_data<ROOT::Experimental::TTaskGroup, std::default_delete<ROOT::Experimental::TTaskGroup>

_ROOT Version: v6.20.02 (well, actually tag v6-20-02-alice7 from https://github.com/alisw/root )
_Platform: Fedora 32 x86_64
_Compiler: gcc (GCC) 10.2.1 20200723 (Red Hat 10.2.1-1)

the error is

[ 81%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoPhysicalNode.cxx.o
In module 'std' imported from input_line_1:1:
/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/unique_ptr.h:208: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>
           ^
/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/unique_ptr.h:208:12: note: definition in module 'std.condition_variable' is here
Scanning dependencies of target G__Proof
[ 81%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoPolygon.cxx.o
[ 81%] Building CXX object proof/proof/CMakeFiles/G__Proof.dir/G__Proof.cxx.o
[ 81%] Linking CXX shared library ../../lib/libMatrix.so
[ 81%] Built target Matrix
[ 81%] Generating G__Hist.cxx, ../../lib/Hist.pcm
Error: Error loading the #pragma extra_include.
[ 81%] Building CXX object geom/geom/CMakeFiles/Geom.dir/src/TGeoRegion.cxx.o
gmake[2]: *** [bindings/pyroot/CMakeFiles/G__PyROOT.dir/build.make:104: bindings/pyroot/G__PyROOT.cxx] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:27340: bindings/pyroot/CMakeFiles/G__PyROOT.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....

full logs can be found here see log file
Is the version too old? is there any newer commit that can be backported?

Thank you!
Adrian

Hi,

I think this is the same issue as:

https://root-forum.cern.ch/t/fail-to-compile-root-6-20-04-on-fedora-32

which resulted in:

The ticket above is closed so I understand this has been fixed in a more recent version (I am not sure which one since the ticket does not specify it).

@oksana @vvassilev do you want to comment?

I think the commit is present in 6.20/08 as per https://github.com/root-project/root/pull/5917

Could you bump to that version?

Thanks a lot! I forwarded this information on the ALICE mail-list … let’s see if it’s possible

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