Issues building with v6.20.04 with GCC 10.1.1

Just updated my OS and tried to build again.

Started with:
cmake ../6_20_04/ -DPYTHIA6_LIBRARY="/home/steve/packages/pythia6/v6_428/lib" -Dall:BOOL="ON" -Dpythia6="ON"
got:

[ 52%] Generating G__RooFitCore.cxx, ../../lib/RooFitCore.pcm
In module 'std' imported from input_line_1:1:
/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/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>
           ^
/usr/lib/gcc/x86_64-redhat-linux/10/../../../../include/c++/10/bits/unique_ptr.h:207:12: note: definition in module 'std.condition_variable' is here
Error: Error loading the #pragma extra_include.
make[2]: *** [roofit/roofitcore/CMakeFiles/G__RooFitCore.dir/build.make:538: roofit/roofitcore/G__RooFitCore.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:28159: roofit/roofitcore/CMakeFiles/G__RooFitCore.dir/all] Error 2
make: *** [Makefile:172: all] Error 2
[23:47]~/packages/root/6_20_04/build$ g++ --version
g++ (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



Please read tips for efficient and successful posting and posting code

ROOT Version: 6_20_04
Platform: Fedora 32
Compiler: g++ (GCC) 10.1.1 20200507


Hi @steve,
we are aware of a couple issues and are working on them, see https://sft.its.cern.ch/jira/browse/ROOT-10782 and https://sft.its.cern.ch/jira/browse/ROOT-10701 . The second link looks like yours – it should be resolved soon, please follow the discussion there.

The cost of being bleeding edge I guess :sweat_smile: sorry about that!

In the meanwhile you can install ROOT via conda to get a consistent working environment, see the instructions at https://github.com/conda-forge/root-feedstock/#installing-root

Cheers,
Enrico

Thanks. I had to disable imt and pythia6, and I forced in #include <stdexcept> but it built fine.

1 Like

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