I am facing errors in running ROOT on my M4 Air
below is the terminal output can you please help me
akshatsharma@akshats-MacBook-Air ~ % root
/Users/akshatsharma/Applications/ROOT_v6.36.06/etc/cling/std_darwin.modulemap:73:64: error: header '__type_traits/add_lvalue_reference.h' not found
module add_lvalue_reference { header "__type_traits/add_lvalue_reference.h" }
^
input_line_1:1:10: note: submodule of top-level module 'std' implicitly imported here
#include <new>
^
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION '1'
Extraction of runtime standard library version was: ''
------------------------------------------------------------------
| Welcome to ROOT 6.36.06 https://root.cern |
| (c) 1995-2025, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosxarm64 on Dec 27 2025, 07:23:39 |
| From tags/6-36-06@6-36-06 |
| With Apple clang version 17.0.0 (clang-1700.6.3.2) |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
root [0] new TBrowser
IncrementalExecutor::executeFunction: symbol '_ZN5cling7runtime6gClingE' unresolved while linking [cling interface function]!
You are probably missing the definition of cling::runtime::gCling
Maybe you need to load the corresponding shared library?
root [1] .q
akshatsharma@akshats-MacBook-Air ~ % xcode-select --install
xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates
akshatsharma@akshats-MacBook-Air ~ % xcode-select -p
/Library/Developer/CommandLineTools
akshatsharma@akshats-MacBook-Air ~ % sudo xcode-select --reset
akshatsharma@akshats-MacBook-Air ~ % sudo xcodebuild -license accept
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
akshatsharma@akshats-MacBook-Air ~ % unset DYLD_LIBRARY_PATH
unset LD_LIBRARY_PATH
source /Users/akshatsharma/applications/ROOT_v6.36.06/bin/thisroot.sh
root -l
/Users/akshatsharma/Applications/ROOT_v6.36.06/etc/cling/std_darwin.modulemap:73:64: error: header '__type_traits/add_lvalue_reference.h' not found
module add_lvalue_reference { header "__type_traits/add_lvalue_reference.h" }
^
input_line_1:1:10: note: submodule of top-level module 'std' implicitly imported here
#include <new>
^
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION '1'
Extraction of runtime standard library version was: ''
root [0] new TBrowser
IncrementalExecutor::executeFunction: symbol '_ZN5cling7runtime6gClingE' unresolved while linking [cling interface function]!
You are probably missing the definition of cling::runtime::gCling
Maybe you need to load the corresponding shared library?
root
0
0
28