Total ROOT/Terminal newbie here, was trying to run root on my mac and was going flawlessly until a few days ago, when it returned an error about a corrupt AST file. I’ve found posts on here explaining that an older branch needs to be used, and I’ve struggled to figure out how to install an older branch from brew or git or the binary distributions.
When trying brew install root@6.32.00
, I keep getting:
Warning: No available formula with the name "root@6.32.00".
==> **Searching for similarly named formulae and casks...**
Error: No formulae or casks found for root@6.32.00.
When trying to download from source the program works fine until running cmake --build . -- install -j4
, at which point once it reaches 77% I receive the following string of errors:
/Users/dhruv/root_build/etc/cling/std_darwin.modulemap:466:10: error: header 'setjmp.h' not found
header "setjmp.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: ''
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /Users/dhruv/root_build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/Users/dhruv/root_build/etc/cling/std_darwin.modulemap:466:10: error: header 'setjmp.h' not found
header "setjmp.h"
^
/Users/dhruv/root_build/etc/cling/Interpreter/DynamicExprInfo.h:13:10: note: submodule of top-level module 'std' implicitly imported here
#include <string>
^
/Users/dhruv/root_build/etc/cling/Interpreter/DynamicExprInfo.h:40:7: error: use of undeclared identifier 'std'
std::string m_Result;
^
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /Users/dhruv/root_build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/Users/dhruv/root_build/etc/cling/std_darwin.modulemap:466:10: error: header 'setjmp.h' not found
header "setjmp.h"
^
/Users/dhruv/root_build/etc/cling/Interpreter/DynamicLookupLifetimeHandler.h:12:10: note: submodule of top-level module 'std' implicitly imported here
#include <string>
^
/Users/dhruv/root_build/etc/cling/Interpreter/DynamicLookupLifetimeHandler.h:56:7: error: use of undeclared identifier 'std'
std::string m_Type;
^
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
While building module 'Cling_Runtime_Extra' imported from /Users/dhruv/root_build/etc/cling/Interpreter/RuntimeUniverse.h:27:
/Users/dhruv/root_build/etc/cling/std_darwin.modulemap:466:10: error: header 'setjmp.h' not found
header "setjmp.h"
^
/Users/dhruv/root_build/etc/cling/Interpreter/Value.h:15:10: note: submodule of top-level module 'std' implicitly imported here
#include <cstdint> // for uintptr_t
^
/Users/dhruv/root_build/etc/cling/Interpreter/Value.h:152:23: error: use of undeclared identifier 'uintptr_t'
return (T) (uintptr_t) V.getAs<void*>();
^
/Users/dhruv/root_build/etc/cling/Interpreter/Value.h:166:24: error: use of undeclared identifier 'uintptr_t'
return (T*) (uintptr_t) V.getAs<void*>();
^
/Users/dhruv/root_build/etc/cling/Interpreter/Value.h:313:25: error: use of undeclared identifier 'uintptr_t'
return (void*)getAs<uintptr_t>();
^
While building module 'Core':
While building module 'Cling_Runtime' imported from input_line_2:1:
In file included from <module-includes>:1:
/Users/dhruv/root_build/etc/cling/Interpreter/RuntimeUniverse.h:27:10: fatal error: could not build module 'Cling_Runtime_Extra'
#include "cling/Interpreter/Visibility.h"
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
As someone relatively new to command line tools and root, I’ve spent the past few days doing everything I’ve seen on the root website, online videos, and other posts on this forum to no avail. Is there a specific command I can use to install an older version of root from brew? Otherwise, how can I go about building from source successfully?