Hello,
I am a new fedora user.
I am trying to build and install the latest ROOT from the ROOT homepage’s tarred zipped source. And after making a build directory i issue these commands
cmake …
cmake -Dall=on .
cmake -DCMAKE_INSTALL_PREFIX=~/root/root-6.28.04-install .
everything works fine until now…but then if i issue the “make” command it compiles until 77% and gives me this error
[ 77%] Completed ‘clad’
[ 77%] Built target clad
[ 77%] Built target rootcling_stage1
[ 77%] 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 :52:
In file included from /usr/include/c++/13/memory_resource:60:
In file included from /usr/include/c++/13/bits/memory_resource.h:46:
/usr/include/c++/13/bits/utility.h:219: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/include/c++/13/bits/stl_pair.h:62:11: note: ‘/usr/include/c++/13/bits/utility.h’ included multiple times, additional include site in header from module ‘std.bits/stl_pair.h’
include <bits/utility.h> // for std::tuple_element, std::tuple_size
^
/home/shadhin3020/root/root-6.28.04/root_build/etc/cling/std.modulemap:505:10: note: std.bits/stl_pair.h defined here
module “bits/stl_pair.h” {
^
/usr/include/c++/13/bits/memory_resource.h:46:11: note: ‘/usr/include/c++/13/bits/utility.h’ included multiple times, additional include site in header from module ‘std.memory_resource’
include <bits/utility.h> // index_sequence
^
/home/shadhin3020/root/root-6.28.04/root_build/etc/cling/std.modulemap:257:10: note: std.memory_resource defined here
module “memory_resource” [optional] {
^
input_line_1:1:10: fatal error: could not build module ‘std’
#include
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /home/shadhin3020/root/root-6.28.04/root_build/etc/cling/Interpreter/RuntimeUniverse.h:27:
In file included from <module-includes>:1:
/home/shadhin3020/root/root-6.28.04/root_build/etc/cling/Interpreter/DynamicExprInfo.h:13:10: fatal error: could not build module 'std'
#include <string>
~~~~~~~~^
/home/shadhin3020/root/root-6.28.04/root_build/etc/cling/Interpreter/RuntimeUniverse.h:27:10: fatal error: could not build module 'Cling_Runtime_Extra'
#include "cling/Interpreter/Visibility.h"
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from input_line_3:1:
In file included from /home/shadhin3020/root/root-6.28.04/root_build/etc/cling/lib/clang/13.0.0/include/assert.h:8:
In file included from /usr/include/assert.h:35:
In file included from /usr/include/features.h:515:
/usr/include/gnu/stubs.h:7:11: fatal error: 'gnu/stubs-32.h' file not found
# include <gnu/stubs-32.h>
^~~~~~~~~~~~~~~~
While building module 'Core':
While building module 'ROOT_Rtypes' imported from /home/shadhin3020/root/root-6.28.04/root_build/include/Rtypes.h:23:
In file included from <module-includes>:1:
/home/shadhin3020/root/root-6.28.04/root_build/include/RtypesCore.h:28:10: fatal error: could not build module 'std'
#include <cstddef> // size_t, NULL
~~~~~~~~^
/home/shadhin3020/root/root-6.28.04/root_build/include/ThreadLocalStorage.h:60:10: fatal error: could not build module 'ROOT_Rtypes'
#include "RtypesCore.h"
~~~~~~~~^~~~~~~~~~~~~~
While building module 'Core':
While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /home/shadhin3020/root/root-6.28.04/root_build/include/Rtypes.h:195:
In file included from <module-includes>:2:
/home/shadhin3020/root/root-6.28.04/root_build/include/ROOT/RStringView.hxx:25:10: fatal error: could not build module 'std'
#include <string_view>
~~~~~~~~^
Error: Error loading the default rootcling header files.
make[2]: *** [core/CMakeFiles/G__Core.dir/build.make:476: core/G__Core.cxx] Error 1
make[1]: *** [CMakeFiles/Makefile2:31595: core/CMakeFiles/G__Core.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 77%] Built target MetaCling
make: *** [Makefile:156: all] Error 2
/////
i saw a similar post related to this error but I still couldnot figure out what to do...can anyone please guide me as to what i should do to fix this problem. Thanks in advance..
ROOT Version: 6.28.04
Platform: Fedora 38 Linux kernel Linux 6.4.11-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC
Compiler: gcc 13.2.1
___