ROOT crash after system reinstallation

Hello,
I’ve been using ROOT for the past three months but I had to reinstall the whole system (Linux Mint 20.04) and now ROOT crashes.

I installed the same way as I did the previous time, using precompiled binary, but more recent version. I followed the instructions https://root.cern/install/
I get the following errors when I write root in the console:

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C x86_64-linux-gnu-g++-9  -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



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fcb0cdbdc2a in __GI___wait4 (pid=20971, stat_loc=stat_loc
entry=0x7ffc635777a8, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x00007fcb0cdbdbeb in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffc635777a8, options=options
entry=0) at waitpid.c:38
#2  0x00007fcb0cd2d0e7 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:172
#3  0x00007fcb0d3e1e2e in TUnixSystem::StackTrace() () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#4  0x00007fcb0d3decb5 in TUnixSystem::DispatchSignals(ESignals) () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#5  <signal handler called>
#6  0x00007fcb0b908686 in (anonymous namespace)::RedirectingFileSystemParser::uniqueOverlayTree((anonymous namespace)::RedirectingFileSystem*, (anonymous namespace)::Entry*, (anonymous namespace)::Entry*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#7  0x00007fcb0b9087a5 in (anonymous namespace)::RedirectingFileSystemParser::uniqueOverlayTree((anonymous namespace)::RedirectingFileSystem*, (anonymous namespace)::Entry*, (anonymous namespace)::Entry*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#8  0x00007fcb0b90df64 in (anonymous namespace)::RedirectingFileSystem::create(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, void (*)(llvm::SMDiagnostic const&, void*), llvm::StringRef, void*, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) [clone .isra.0] () from /home/gabriela/Dokumenty/root/lib/libCling.so
#9  0x00007fcb0b90e5fe in clang::vfs::getVFSFromYAML(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, void (*)(llvm::SMDiagnostic const&, void*), llvm::StringRef, void*, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#10 0x00007fcb096109b5 in (anonymous namespace)::collectModuleMaps(clang::CompilerInstance&, llvm::SmallVectorImpl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#11 0x00007fcb09613f9f in (anonymous namespace)::setupCxxModules(clang::CompilerInstance&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#12 0x00007fcb09617ac0 in (anonymous namespace)::createCIImpl(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, cling::CompilerOptions const&, char const*, std::unique_ptr<clang::ASTConsumer, std::default_delete<clang::ASTConsumer> >, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&, bool, bool) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#13 0x00007fcb09618b20 in cling::CIFactory::createCI(llvm::StringRef, cling::InvocationOptions const&, char const*, std::unique_ptr<clang::ASTConsumer, std::default_delete<clang::ASTConsumer> >, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#14 0x00007fcb096c4fc7 in cling::IncrementalParser::IncrementalParser(cling::Interpreter*, char const*, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#15 0x00007fcb09644fb9 in cling::Interpreter::Interpreter(int, char const* const*, char const*, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&, bool, cling::Interpreter const*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#16 0x00007fcb095bcde4 in TCling::TCling(char const*, char const*, char const* const*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#17 0x00007fcb095bea9a in CreateInterpreter () from /home/gabriela/Dokumenty/root/lib/libCling.so
#18 0x00007fcb0d283823 in TROOT::InitInterpreter() () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#19 0x00007fcb0d283d1f in ROOT::Internal::GetROOT2() () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#20 0x00007fcb0d290add in TApplication::TApplication(char const*, int*, char**, void*, int) () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#21 0x00007fcb0d609eff in TRint::TRint(char const*, int*, char**, void*, int, bool) () from /home/gabriela/Dokumenty/root/lib/libRint.so.6.22
#22 0x0000558efc76d174 in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007fcb0b908686 in (anonymous namespace)::RedirectingFileSystemParser::uniqueOverlayTree((anonymous namespace)::RedirectingFileSystem*, (anonymous namespace)::Entry*, (anonymous namespace)::Entry*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#7  0x00007fcb0b9087a5 in (anonymous namespace)::RedirectingFileSystemParser::uniqueOverlayTree((anonymous namespace)::RedirectingFileSystem*, (anonymous namespace)::Entry*, (anonymous namespace)::Entry*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#8  0x00007fcb0b90df64 in (anonymous namespace)::RedirectingFileSystem::create(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, void (*)(llvm::SMDiagnostic const&, void*), llvm::StringRef, void*, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) [clone .isra.0] () from /home/gabriela/Dokumenty/root/lib/libCling.so
#9  0x00007fcb0b90e5fe in clang::vfs::getVFSFromYAML(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, void (*)(llvm::SMDiagnostic const&, void*), llvm::StringRef, void*, llvm::IntrusiveRefCntPtr<clang::vfs::FileSystem>) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#10 0x00007fcb096109b5 in (anonymous namespace)::collectModuleMaps(clang::CompilerInstance&, llvm::SmallVectorImpl<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#11 0x00007fcb09613f9f in (anonymous namespace)::setupCxxModules(clang::CompilerInstance&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#12 0x00007fcb09617ac0 in (anonymous namespace)::createCIImpl(std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> >, cling::CompilerOptions const&, char const*, std::unique_ptr<clang::ASTConsumer, std::default_delete<clang::ASTConsumer> >, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&, bool, bool) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#13 0x00007fcb09618b20 in cling::CIFactory::createCI(llvm::StringRef, cling::InvocationOptions const&, char const*, std::unique_ptr<clang::ASTConsumer, std::default_delete<clang::ASTConsumer> >, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#14 0x00007fcb096c4fc7 in cling::IncrementalParser::IncrementalParser(cling::Interpreter*, char const*, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#15 0x00007fcb09644fb9 in cling::Interpreter::Interpreter(int, char const* const*, char const*, std::vector<std::shared_ptr<clang::ModuleFileExtension>, std::allocator<std::shared_ptr<clang::ModuleFileExtension> > > const&, bool, cling::Interpreter const*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#16 0x00007fcb095bcde4 in TCling::TCling(char const*, char const*, char const* const*) () from /home/gabriela/Dokumenty/root/lib/libCling.so
#17 0x00007fcb095bea9a in CreateInterpreter () from /home/gabriela/Dokumenty/root/lib/libCling.so
#18 0x00007fcb0d283823 in TROOT::InitInterpreter() () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#19 0x00007fcb0d283d1f in ROOT::Internal::GetROOT2() () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#20 0x00007fcb0d290add in TApplication::TApplication(char const*, int*, char**, void*, int) () from /home/gabriela/Dokumenty/root/lib/libCore.so.6.22
#21 0x00007fcb0d609eff in TRint::TRint(char const*, int*, char**, void*, int, bool) () from /home/gabriela/Dokumenty/root/lib/libRint.so.6.22
#22 0x0000558efc76d174 in main ()
===========================================================


What can I do to make it work?


Please read tips for efficient and successful posting and posting code

ROOT Version: root_v6.22.02
Platform: Ubuntu 20
Compiler: gcc


Nevermind, I did

sudo apt-get install clang-tools-10
And now it works

1 Like