Failing to build root-6.24.06 and root-6.26.02 on Fedora 36

I can’t build root-6.24.06 or root-6.26.02 on fedora 36. Here’s the error… common to both builds. I was able to build root-6.24.06 on fedora 35 just fine. any ideas?

— What follows is a trunkated error output, just the first few lines. if you need the whole error dump I can provide it.-----

[ 49%] Generating G__Core.cxx, …/lib/Core.pcm
While building module ‘Core’:
While building module ‘std’ imported from input_line_1:1:
In file included from :2:
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/…/…/…/…/include/c++/12/array:43:
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/…/…/…/…/include/c++/12/bits/stl_algobase.h:64:
In file included from /usr/lib/gcc/x86_64-redhat-linux/12/…/…/…/…/include/c++/12/bits/stl_pair.h:62:
/usr/lib/gcc/x86_64-redhat-linux/12/…/…/…/…/include/c++/12/bits/utility.h:220:27: error: redefinition of ‘__is_in_place_type_v<in_place_type_t<_Tp> >’
inline constexpr bool __is_in_place_type_v<in_place_type_t<_Tp>> = true;
^
/usr/lib/gcc/x86_64-redhat-linux/12/…/…/…/…/include/c++/12/bits/stl_pair.h:62:11: note: ‘/usr/lib/gcc/x86_64-redhat-linux/12/…/…/…/…/include/c++/12/bits/utility.h’ included multiple times, additional include site in header from module ‘std.algorithm’

include <bits/utility.h> // for std::tuple_element, std::tuple_size


Please read tips for efficient and successful posting and posting code

_ROOT Version:6.26.02
_Platform:Fedora 36
_Compiler:gcc 12.1.1


Hi,
that’s a problem with gcc 12 that has been fixed in master and IIRC also in the v6-26-00-patches branch. Please try either branch.

If that’s an option, also consider using a pre-built package instead of compiling ROOT from source, see Installing ROOT - ROOT .

Cheers,
Enrico

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