hi
I m building Root v6-26-04 on macOS Monterey 12.4 with Xcode 13.4.1.
I tried to find solution from the available topics but couldn’t find. it give error after building 75%.
any one have the solution please guide me.
2022-07-30@12:28:32:DEBUG:O2Physics:ROOT:0: [ 75%] Performing build step for 'clad'
2022-07-30@12:28:46:DEBUG:O2Physics:ROOT:0: [ 75%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/LinkdefReader.cxx.o
2022-07-30@12:28:49:DEBUG:O2Physics:ROOT:0: [ 75%] Built target ClingUtils
2022-07-30@12:28:55:DEBUG:O2Physics:ROOT:0: [ 75%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/rootcling_impl.cxx.o
2022-07-30@12:28:58:DEBUG:O2Physics:ROOT:0: [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingBaseClassInfo.cxx.o
2022-07-30@12:29:10:DEBUG:O2Physics:ROOT:0: [ 75%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/Scanner.cxx.o
2022-07-30@12:29:17:DEBUG:O2Physics:ROOT:0: [ 75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingCallbacks.cxx.o
2022-07-30@12:29:25:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/SelectionRules.cxx.o
2022-07-30@12:29:30:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingCallFunc.cxx.o
2022-07-30@12:29:34:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/TModuleGenerator.cxx.o
2022-07-30@12:29:35:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/VariableSelectionRule.cxx.o
2022-07-30@12:29:40:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/dictgen/CMakeFiles/Dictgen.dir/src/XMLReader.cxx.o
2022-07-30@12:29:44:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingClassInfo.cxx.o
2022-07-30@12:29:46:DEBUG:O2Physics:ROOT:0: [ 76%] Built target Dictgen
2022-07-30@12:29:47:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/rootcling_stage1/CMakeFiles/rootcling_stage1.dir/src/rootcling_stage1.cxx.o
2022-07-30@12:29:48:DEBUG:O2Physics:ROOT:0: [ 76%] Linking CXX executable src/rootcling_stage1
2022-07-30@12:29:48:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDataMemberInfo.cxx.o
2022-07-30@12:29:53:DEBUG:O2Physics:ROOT:0: [ 76%] Built target rootcling_stage1
2022-07-30@12:29:53:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDeclInfo.cxx.o
2022-07-30@12:29:54:DEBUG:O2Physics:ROOT:0: [ 76%] Generating G__Core.cxx, ../lib/Core.pcm
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: While building module 'Core':
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: While building module 'std' imported from input_line_1:1:
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: In file included from <module-includes>:31:
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/complex.h:28:
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/ccomplex:20:
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/complex:235:
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/cmath:321:9: error: missing '#include <math.h>'; declaration of 'signbit' must be imported from module 'std.depr.math_h' before it is required
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: using ::signbit _LIBCPP_USING_IF_EXISTS;
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: ^
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/math.h:333:1: note: previous declaration is here
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: signbit(_A1 __lcpp_x) _NOEXCEPT
2022-07-30@12:29:55:DEBUG:O2Physics:ROOT:0: ^
2022-07-30@12:29:56:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingDiagnostics.cxx.o
2022-07-30@12:29:56:DEBUG:O2Physics:ROOT:0: -- clad build command succeeded. See also /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-*.log
2022-07-30@12:29:56:DEBUG:O2Physics:ROOT:0: [ 76%] Performing install step for 'clad'
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: -- clad install command succeeded. See also /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-install-*.log
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: [ 76%] Completed 'clad'
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: [ 76%] Built target clad
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMemberIter.cxx.o
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: While building module 'Core':
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: While building module 'std' imported from input_line_1:1:
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: In file included from <module-includes>:308:
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/unordered_map:437:
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/__hash_table:123:43: error: missing '#include <limits>'; declaration of 'numeric_limits' must be imported from module 'std.limits' before it is required
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: return __n < 2 ? __n : (size_t(1) << (numeric_limits<size_t>::digits - __libcpp_clz(__n-1)));
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: ^
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/c++/v1/limits:443:28: note: previous declaration is here
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: class _LIBCPP_TEMPLATE_VIS numeric_limits
2022-07-30@12:29:57:DEBUG:O2Physics:ROOT:0: ^
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMethodArgInfo.cxx.o
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: input_line_1:1:10: fatal error: could not build module 'std'
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: #include <new>
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: Warning in cling::IncrementalParser::CheckABICompatibility():
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: Failed to extract C++ standard library version.
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: Warning in cling::IncrementalParser::CheckABICompatibility():
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION '1'
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: Extraction of runtime standard library version was: ''
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: While building module 'Core':
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: While building module 'Cling_Runtime' imported from input_line_2:1:
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: While building module 'Cling_Runtime_Extra' imported from /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/etc/cling/Interpreter/RuntimeUniverse.h:27:
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: In file included from <module-includes>:1:
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/etc/cling/Interpreter/DynamicExprInfo.h:13:10: fatal error: could not build module 'std'
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: #include <string>
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/etc/cling/Interpreter/RuntimeUniverse.h:27:10: fatal error: could not build module 'Cling_Runtime_Extra'
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: #include "cling/Interpreter/Visibility.h"
2022-07-30@12:29:58:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: While building module 'Core':
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: While building module 'ROOT_Rtypes' imported from /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/Rtypes.h:23:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: In file included from <module-includes>:1:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/RtypesCore.h:28:10: fatal error: could not build module 'std'
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: #include <cstddef> // size_t, NULL
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: In file included from input_line_3:2:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/Rtypes.h:23:10: fatal error: could not build module 'ROOT_Rtypes'
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: #include "RtypesCore.h"
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^~~~~~~~~~~~~~
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: While building module 'Core':
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: While building module 'ROOT_Foundation_C' imported from /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/Rtypes.h:29:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: In file included from <module-includes>:1:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/ThreadLocalStorage.h:60:10: fatal error: could not build module 'ROOT_Rtypes'
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: #include "RtypesCore.h"
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^~~~~~~~~~~~~~
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: While building module 'Core':
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/Rtypes.h:195:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: In file included from <module-includes>:2:
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: /Users/mac/alice/sw/BUILD/ef3ecc43ec4331f74d514d16df1e5311c30f968b/ROOT/include/ROOT/RStringView.hxx:25:10: fatal error: could not build module 'std'
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: #include <string_view>
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: ~~~~~~~~^
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: Error: Error loading the default rootcling header files.
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: gmake[2]: *** [core/CMakeFiles/G__Core.dir/build.make:472: core/G__Core.cxx] Error 1
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: gmake[1]: *** [CMakeFiles/Makefile2:23877: core/CMakeFiles/G__Core.dir/all] Error 2
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: gmake[1]: *** Waiting for unfinished jobs....
2022-07-30@12:29:59:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingMethodInfo.cxx.o
2022-07-30@12:30:00:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingRdictModuleFileExtension.cxx.o
2022-07-30@12:30:03:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypedefInfo.cxx.o
2022-07-30@12:30:05:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypeInfo.cxx.o
2022-07-30@12:30:09:DEBUG:O2Physics:ROOT:0: [ 76%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingValue.cxx.o
2022-07-30@12:30:11:DEBUG:O2Physics:ROOT:0: [ 76%] Built target MetaCling
2022-07-30@12:30:11:DEBUG:O2Physics:ROOT:0: gmake: *** [Makefile:156: all] Error 2
2022-07-30@12:30:11:ERROR:O2Physics:ROOT:0: Error while executing /Users/mac/alice/sw/SPECS/osx_x86-64/ROOT/v6-26-04-patches-alice1-local1/build.sh on `macs-MacBook-Pro.local'.
2022-07-30@12:30:11:ERROR:O2Physics:ROOT:0: Log can be found in /Users/mac/alice/sw/BUILD/ROOT-latest/log
2022-07-30@12:30:11:ERROR:O2Physics:ROOT:0: Please upload it to CERNBox/Dropbox if you intend to request support.
2022-07-30@12:30:11:ERROR:O2Physics:ROOT:0: Build directory is /Users/mac/alice/sw/BUILD/ROOT-latest/ROOT.