Issue with root on Mac Sequoia (still?)

Hello,
I have an issue with the latest root version on my MacBook Pro with M1. I installed the binary 6.34.08.


| Welcome to ROOT 6.34.08 https://root.cern |
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosxarm64 on Apr 07 2025, 20:07:51 |
| From tags/v6-34-08@v6-34-08 |
| With Apple clang version 17.0.0 (clang-1700.0.13.3) |

Try ‘.help’/‘.?’, ‘.demo’, ‘.license’, ‘.credits’, ‘.quit’/‘.q’

Apple clang version 17.0.0 (clang-1700.0.13.3)
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

I can start root, I can open a TBrowser (web version). But my scripts fail as soon as I try to open a Canvas. I tried older binaries, and I have similar problems. I am not sure if I am doing something wrong or if it is a problem with the latest Sequoia. Below is the error message I get

please help

Angela

root [0] TCanvas c=new TCanvas()
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_v6.34.08/lib/libASImage.so, 0x0009): Library not loaded: /opt/local/lib/libgif.4.dylib
Referenced from: /Applications/root_v6.34.08/lib/libASImage.so
Reason: tried: ‘/Applications/root_v6.34.08/lib/libgif.4.dylib’ (no such file), ‘/opt/local/lib/libgif.4.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libgif.4.dylib’ (no such file), ‘/opt/local/lib/libgif.4.dylib’ (no such file)
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_v6.34.08/lib/libASImage.so, 0x0009): Library not loaded: /opt/local/lib/libgif.4.dylib
Referenced from: /Applications/root_v6.34.08/lib/libASImage.so
Reason: tried: ‘/Applications/root_v6.34.08/lib/libgif.4.dylib’ (no such file), ‘/opt/local/lib/libgif.4.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libgif.4.dylib’ (no such file), ‘/opt/local/lib/libgif.4.dylib’ (no such file)
Error in TGHScrollBar::TGHScrollBar: arrow_
.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TGCanvas::Layout() (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TGCanvas::Layout() (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TGCompositeFrame::MapSubwindows() (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TGCompositeFrame::MapSubwindows() (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TRootCanvas::CreateCanvas(char const*) (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TRootCanvas::TRootCanvas(TCanvas*, char const*, int, int, unsigned int, unsigned int) (no debug info)
[/Applications/root_v6.34.08/lib/libGui.so] TRootGuiFactory::CreateCanvasImp(TCanvas*, char const*, int, int, unsigned int, unsigned int) (no debug info)
[/Applications/root_v6.34.08/lib/libGpad.so] TCanvas::Constructor(char const*, char const*, int) (no debug info)
[/Applications/root_v6.34.08/lib/libGpad.so] TCanvas::TCanvas(bool) (no debug info)
[] (no debug info)
[] (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction&) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::Interpreter::executeTransaction(cling::Transaction&) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraitscling::Transaction*, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraitscling::Transaction*>>&, bool) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator> const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Applications/root_v6.34.08/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Applications/root_v6.34.08/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/Applications/root_v6.34.08/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/Applications/root_v6.34.08/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/Applications/root_v6.34.08/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/Applications/root_v6.34.08/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Applications/root_v6.34.08/lib/libCore.so] TSystem::Run() (no debug info)
[/Applications/root_v6.34.08/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Applications/root_v6.34.08/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Applications/root_v6.34.08/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

_ROOT Version: 6.34.08
Platform: Not Provided
_Compiler:Apple clang version 17.0.0


Hi Angela,

Thanks for the post.
Could you please try to install libgif on your system?
We’ll work out something sturdier for the next release, such a clearer error message.

Cheers,
D

ok, indeed the message is there, but I have never had to install libraries in the past, so I guess this is why I missed. That being said I still cannot run root
I installed libgif using homebrew which is a different version libgif.7.dylib. I made a link libgif.4.dylib’ hoping it would work.
After that I was missing more libraries libjpeg and libtiff. I installed both and then I ended up with a new error message

cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_v6.34.08/lib/libASImage.so, 0x0009): Symbol not found: AddExtensionBlock
Referenced from: /Applications/root_v6.34.08/lib/libASImage.so
Expected in: /opt/homebrew/Cellar/giflib/5.2.2/lib/libgif.7.2.0.dylib
cling::DynamicLibraryManager::loadLibrary(): dlopen(/Applications/root_v6.34.08/lib/libASImage.so, 0x0009): Symbol not found: AddExtensionBlock
Referenced from: /Applications/root_v6.34.08/lib/libASImage.so
Expected in: /opt/homebrew/Cellar/giflib/5.2.2/lib/libgif.7.2.0.dylib
Error in TGHScrollBar::TGHScrollBar: arrow
*.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow
*.xpm not found

related, maybe to the wrong version of libgif.

I am not sure if I am doing something wrong, but this is very messy. I looked at the documentation to see if there was any guidance on how to install all the missing libraries, and I did not find anything.

Any advice is greatly appreciated

Hi Angela,
Thank you for taking the time to report these issues. I can reproduce your error if I install dependencies with brew.

@couet: How is libgif installed on our mac build machines?

The build machines do not use brew at all. External packages are mostly installed using macport.

hi all,
Thank you so much for looking into this. I installed giflib and tiff using MacPorts, and everything seems to work. Thank you!

I am usually a MacPorts user, but a few months ago, I installed some packages for quick testing with Homebrew, which stuck with me for some reason. I should not even have both, people say they do not coexist well.

Anyways, if MacPorts and these dependencies are needed, perhaps mentioning it in the documentation would be nice.

Thank you

Angela

I’ve install giflib and tiff using homebrew,
new TCanvas OK,
new TBrowser cause

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libASImage.so] TASImage::GetPixmap() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TGPicturePool::GetPicture(char const*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGuiHtml.so] TGHtmlBrowser::TGHtmlBrowser(char const*, TGWindow const*, unsigned int, unsigned int) (no debug info)
[<unknown binary>] (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TROOT::ProcessLine(char const*, int*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::ExecPlugin(char const*, char const*, char const*, int, int) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::InitPlugins(char const*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] long TPluginHandler::ExecPluginImpl<TBrowser*, char const*, unsigned int, unsigned int, char const*>(TBrowser* const&, char const* const&, unsigned int const&, unsigned int const&, char const* const&) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libGui.so] TRootGuiFactory::CreateBrowserImp(TBrowser*, char const*, unsigned int, unsigned int, char const*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TBrowser::TBrowser(char const*, char const*, TBrowserImp*, char const*) (no debug info)
[<unknown binary>] (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::IncrementalExecutor::executeWrapper(llvm::StringRef, cling::Value*) const (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::Interpreter::process(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, cling::Value*, cling::Transaction**, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCling.so] TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libRint.so] TRint::ProcessLineNr(char const*, char const*, int*) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libRint.so] TRint::HandleTermInput() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TUnixSystem::CheckDescriptors() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TMacOSXSystem::DispatchOneEvent(bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TSystem::InnerLoop() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TSystem::Run() (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libCore.so] TApplication::Run(bool) (no debug info)
[/Users/chenxu/software/ROOT/install/lib/libRint.so] TRint::Run(bool) (no debug info)
[/Users/chenxu/software/ROOT/install/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)

can any one determine the position of bug?

using builtin_gif

new TBrowser works

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.