Error installing ROOT 6.22.02 after I upgrade my macOS to Catalina 10.15.7

Hi,

After I upgrade my macOS to Catalina 10.15.7 (19H2) and also upgrade my Xcode to 11.2.1 (11B500), I reinstall ROOT release 6.22/02 with root_v6.22.02.macosx64-10.15-clang110.pkg.
After sourcing /Applications/root_v6.22.02/bin/thisroot.sh , I tried to open ROOT with root -l.
However, it then shows the error messages as below:

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!

Invoking:

LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -O3 -DNDEBUG -xc++ -E -v /dev/null 2>&1 | sed -n -e ‘/^.include/,${’ -e ‘/^ /.*++/p’ -e ‘}’

Results was:

With exit code 0

*** Break *** segmentation violation

[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)

[] (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] (anonymous namespace)::RedirectingFileSystemParser::uniqueOverlayTree((anonymous namespace)::RedirectingFileSystem*, (anonymous namespace)::Entry*, (anonymous namespace)::Entry*) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] (anonymous namespace)::RedirectingFileSystem::create(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_deletellvm::MemoryBuffer >, void ()(llvm::SMDiagnostic const&, void), llvm::StringRef, void*, llvm::IntrusiveRefCntPtrclang::vfs::FileSystem) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] clang::vfs::getVFSFromYAML(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_deletellvm::MemoryBuffer >, void ()(llvm::SMDiagnostic const&, void), llvm::StringRef, void*, llvm::IntrusiveRefCntPtrclang::vfs::FileSystem) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] (anonymous namespace)::createCIImpl(std::__1::unique_ptr<llvm::MemoryBuffer, std::__1::default_deletellvm::MemoryBuffer >, cling::CompilerOptions const&, char const*, std::__1::unique_ptr<clang::ASTConsumer, std::__1::default_deleteclang::ASTConsumer >, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&, bool, bool) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] cling::CIFactory::createCI(llvm::StringRef, cling::InvocationOptions const&, char const*, std::__1::unique_ptr<clang::ASTConsumer, std::__1::default_deleteclang::ASTConsumer >, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] cling::IncrementalParser::IncrementalParser(cling::Interpreter*, char const*, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] cling::Interpreter::Interpreter(int, char const* const*, char const*, std::__1::vector<std::__1::shared_ptrclang::ModuleFileExtension, std::__1::allocator<std::__1::shared_ptrclang::ModuleFileExtension > > const&, bool, cling::Interpreter const*) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)

[/Applications/root_v6.22.02/lib/libCling.6.22.02.so] CreateInterpreter (no debug info)

[/Applications/root_v6.22.02/lib/libCore.6.22.02.so] TROOT::InitInterpreter() (no debug info)

[/Applications/root_v6.22.02/lib/libCore.6.22.02.so] ROOT::Internal::GetROOT2() (no debug info)

[/Applications/root_v6.22.02/lib/libCore.6.22.02.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)

[/Applications/root_v6.22.02/lib/libRint.6.22.02.so] TRint::TRint(char const*, int*, char**, void*, int, bool) (no debug info)

[/Applications/root_v6.22.02/bin/root.exe] main (no debug info)

[/usr/lib/system/libdyld.dylib] start (no debug info)

[] (no debug info)

What should I do? Thank you!


ROOT Version: 6.22.02
Platform: macOS Catalina 10.15.7
Compiler: Xcode 11.2.1


I think @Axel can most probably help

Sorry for being late!

You can always download the ROOT binaries, e.g. cd ~/Downloads; curl -O https://root.cern/download/root_v6.22.02.macosx64-10.15-clang110.pkg (from a terminal).

I bet what happened here is the the Xcode upgrade “killed” the command line tools - this also happens to me regularly. Try clang --version - if that shows an error (I bet it does!) run xcode-select --install. Better?

Cheers, Axel.