Failed to build ROOT 6.22/xx on Arch Linux ARM

Hi

I’ve been using ROOT on my persional ARM64 server. I’m able to get ROOT 6.18 and 6.20 to build properly by modifying PKGBUILD from Arch. But 6.22 always fails at one of the last steps (here’s the full log):

/usr/bin/addr2line: DWARF error: could not find variable specification at offset 281e7
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 28208
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 28229
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 2824a
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 2826b
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 2828c
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 282ad
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 282ce
 0x0000ffffa38b22b4 in CppyyLegacy::TUUID::TUUID(bool) at /tmp/pip-install-3i0appoy/cppyy-cling/src/core/base/src/TUUID.cxx:158 (discriminator 1) from /home/marty/.local/lib/python3.8/site-packages/cppyy_backend/lib/libCoreLegacy.so
 0x0000ffffa3888bd0 in CppyyLegacy::TDirectory::TDirectory() at /tmp/pip-install-3i0appoy/cppyy-cling/src/core/base/src/TDirectory.cxx:49 (discriminator 2) from /home/marty/.local/lib/python3.8/site-packages/cppyy_backend/lib/libCoreLegacy.so
 0x0000ffffa3882030 in CppyyLegacy::TROOT::TROOT(char const*, char const*, void (**)()) at /tmp/pip-install-3i0appoy/cppyy-cling/src/core/base/src/TROOT.cxx:472 from /home/marty/.local/lib/python3.8/site-packages/cppyy_backend/lib/libCoreLegacy.so
 0x0000ffffa3882bb0 in CppyyLegacy::Internal::GetROOT1() at /tmp/pip-install-3i0appoy/cppyy-cling/src/core/base/src/TROOT.cxx:355 (discriminator 4) from /home/marty/.local/lib/python3.8/site-packages/cppyy_backend/lib/libCoreLegacy.so
 0x0000ffffa387bedc in <unknown> from /home/marty/.local/lib/python3.8/site-packages/cppyy_backend/lib/libCoreLegacy.so
 0x0000ffffb123c8fc in <unknown> from /lib/ld-linux-aarch64.so.1
 0x0000ffffb123c9f4 in <unknown> from /lib/ld-linux-aarch64.so.1
 0x0000ffffb0a4dac0 in _dl_catch_exception at :? from /usr/lib/libc.so.6
 0x0000ffffb1240c08 in <unknown> from /lib/ld-linux-aarch64.so.1
 0x0000ffffb0a4da64 in _dl_catch_exception at :? from /usr/lib/libc.so.6
 0x0000ffffb12404c0 in <unknown> from /lib/ld-linux-aarch64.so.1
 0x0000ffffb0746244 in <unknown> from /usr/lib/libdl.so.2
 0x0000ffffb0a4da64 in _dl_catch_exception at :? from /usr/lib/libc.so.6
 0x0000ffffb0a4db30 in _dl_catch_error at :? from /usr/lib/libc.so.6
 0x0000ffffb0746a90 in <unknown> from /usr/lib/libdl.so.2
 0x0000ffffb07462e8 in dlopen + 0x58 from /usr/lib/libdl.so.2
 0x0000ffffad4ddb04 in cling::utils::platform::DLOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) + 0x24 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad3d4b9c in cling::DynamicLibraryManager::loadLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool) + 0x1fc from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad32fcc4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffb0f1f548 in TSystem::Load(char const*, char const*, bool) + 0x808 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCore.so
 0x0000ffffb0e949d0 in TROOT::LoadClass(char const*, char const*, bool) at TROOT.cxx:? from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCore.so
 0x0000ffffad32dbc0 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad33c64c in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad33cdd0 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad3420c4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad2fdc90 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad2ff2c4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad3dbfc4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffaf54d0f4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffaf5584e4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffaf55d848 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffaf5201bc in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffaf5960cc in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffadb1952c in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad472ecc in cling::IncrementalParser::ParseInternal(llvm::StringRef) + 0x51c from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad4745dc in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) + 0x5c from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad3ded28 in cling::Interpreter::DeclareInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions const&, cling::Transaction**) const + 0x68 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad3e25dc in cling::Interpreter::loadHeader(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Transaction**) + 0x1ac from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad4c300c in cling::MetaSema::actOnLCommand(llvm::StringRef, cling::Transaction**) + 0x17c from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad4c319c in cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value*) + 0x5c from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad4d13c4 in cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value*) + 0x1f4 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad4d30e4 in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) + 0xd4 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad4bcab0 in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) + 0x1b0 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad32068c in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad33a718 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffad33ac70 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCling.so
 0x0000ffffb0ea0fe0 in TApplication::ExecuteFile(char const*, int*, bool) at TApplication.cxx:? from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libCore.so
 0x0000ffffb11ffda4 in TRint::ProcessLineNr(char const*, char const*, int*) + 0x74 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libRint.so
 0x0000ffffb1201c98 in TRint::Run(bool) + 0x378 from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/lib/libRint.so
 0x0000aaaadb36cbc4 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/bin/root.exe
 0x0000ffffb0965538 in __libc_start_main + 0xe8 from /usr/lib/libc.so.6
 0x0000aaaadb36cc44 in <unknown> from /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build/bin/root.exe
Root > make[2]: *** [CMakeFiles/hsimple.dir/build.make:86: tutorials/hsimple.root] Error 129
make[1]: *** [CMakeFiles/Makefile2:7981: CMakeFiles/hsimple.dir/all] Error 2
make: *** [Makefile:171: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

What’s going on?


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.22/04 6.22/06
Platform: Linux aarch64
Compiler: GCC 10.2


Where does libCoreLegacy.so come from? It’s not a ROOT library.

1 Like

Ahh… that’s the issue. It’s a file from cppyy (the python package). Why is ROOT using it tho? It’s in ~/.local/lib/python3.8/... But I’m building ROOT from a completely different directory. Even if their runtime conflict. It shouldn’t be a issue when building. Right?

I’ll have to call the experts in: @etejedor @oshadura @swunsch - can you comment?

Hi there!

My best guess is that you have installed in your python environment the cppyy package from pip (see /tmp/pip-install-3i0appoy/cppyy-cling), which interferes badly with building ROOT that ships it’s own cppyy libraries. The linker should point to /home/marty/Documents/not-my-projects/arch-build/root/trunk/src/build, where you build ROOT.

So I guess cleaning up your Python environment in /tmp should help to get rid of the error.

Edit: I’ve just read again the log and you should actually clean up $HOME/.local/lib/..., which seems to be in the default search path of the linker.

Best
Stefan