Problems Reinstalling Root on MacBook After OS Upgrade

All,

I installed Root on my 2023 MacBook about 13 months ago using Homebrew, and it worked fine. However, I believe Root was broken when my MacBook upgraded to OS Sequoia 15.5. I tried reinstalling it with both Homebrew and MacPorts, and both times I got segmentation violations when I tried to open root. This is what happens:

Jamess-MacBook-Pro:~ jamesbowen$ root -l
warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk’
C system headers (glibc/Xcode/Windows SDK) must be installed.
fatal error: module map file ‘module.modulemap’ not found
Module Darwin not found.
Module std not found.
<<< cling interactive line includer >>>: fatal error: module file ‘/private/tmp/root-20250525-17868-r9txow/root-6.36.00/builddir/lib/Darwin.pcm’ not found: module file not found
<<< cling interactive line includer >>>: note: imported by module ‘_Builtin_intrinsics’ in ‘/usr/local/Cellar/root/6.36.00/lib/root/_Builtin_intrinsics.pcm’
Failed to load module _Builtin_intrinsics
Failed to load module ROOT_Foundation_C
Failed to load module ROOT_Config
Failed to load module ROOT_Rtypes
Failed to load module ROOT_Foundation_Stage1_NoRTTI
Failed to load module Core
Failed to load module Rint
Failed to load module RIO
Failed to load module MathCore
Failed to load module Hist
Failed to load module ROOTDataFrame
Failed to load module XMLParser
Failed to load module SpectrumPainter
Failed to load module RooFitHS3
Failed to load module Core
Failed to load module SPlot
Failed to load module TreePlayer
Failed to load module Gpad
Failed to load module Foam
Failed to load module ROOTBrowserv7
Failed to load module Physics
Failed to load module ROOTBrowsable
Failed to load module RCsg
Failed to load module _Builtin_intrinsics
Failed to load module Rint
Failed to load module Minuit2
Failed to load module Thread
Failed to load module Imt
Failed to load module PyMVA
Failed to load module Graf3d
Failed to load module FFTW
Failed to load module Quadp
Failed to load module RooFitMore
Failed to load module Hbook
Failed to load module Postscript
Failed to load module ROOTGraphicsPrimitives
Failed to load module Genetic
Failed to load module ROOT_Rtypes
Failed to load module RSQLite
Failed to load module GCocoa
Failed to load module RIO
Failed to load module HistFactory
Failed to load module FITSIO
Failed to load module ROOTGeomViewer
Failed to load module MathCore
Failed to load module Fumili
Failed to load module FitPanel
Failed to load module RHTTP
Failed to load module Smatrix
Failed to load module ROOT_Foundation_Stage1_NoRTTI
Failed to load module Spectrum
Failed to load module ROOTFitPanelv7
Failed to load module ASImageGui
Failed to load module Geom
Failed to load module Graf
Failed to load module MultiProc
Failed to load module Net
Failed to load module Gviz3d
Failed to load module Eve
Failed to load module Minuit
Failed to load module WebGui6
Failed to load module TMVAUtils
Failed to load module RooStats
Failed to load module ROOTGpadv7
Failed to load module GeomPainter
Failed to load module GuiHtml
Failed to load module RMySQL
Failed to load module ROOTEve
Failed to load module Cling_Runtime_Extra
Failed to load module RDAVIX
Failed to load module ROOTTPython
Failed to load module HistPainter
Failed to load module XMLIO
Failed to load module MLP
Failed to load module Ged
Failed to load module GuiBld
Failed to load module TMVA
Failed to load module TMVAGui
Failed to load module RooFitCodegen
Failed to load module ROOTWebDisplay
Failed to load module NetxNG
Failed to load module RHTTPSniff
Failed to load module RooFitXRooFit
Failed to load module RGL
Failed to load module Tree
Failed to load module SQLIO
Failed to load module ROOTNTuple
Failed to load module ROOTTMVASofie
Failed to load module ROOTVecOps
Failed to load module RootAuth
Failed to load module EG
Failed to load module Gui
Failed to load module ASImage
Failed to load module ROOT_Config
Failed to load module RooFitJSONInterface
Failed to load module Matrix
Failed to load module Recorder
Failed to load module Gdml
Failed to load module ROOT_Foundation_C
Failed to load module ROOTTreeViewer
Failed to load module MathMore
Failed to load module GenVector
Failed to load module Cling_Runtime
Failed to load module RooFitCore
Failed to load module RooFit
Failed to load module Hist
Failed to load module ROOTNTupleUtil
Failed to load module TreeViewer

  • *** Break *** segmentation violation*
    [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
    [] (no debug info)
    [/usr/local/Cellar/root/6.36.00/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
    [/usr/local/Cellar/root/6.36.00/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
    [/usr/local/Cellar/root/6.36.00/lib/root/libCling.so] TCling::TCling(char const, char const*, char const* const*, void*) (no debug info)*
    [/usr/local/Cellar/root/6.36.00/lib/root/libCling.so] CreateInterpreter (no debug info)
    [/usr/local/Cellar/root/6.36.00/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)
    [/usr/local/Cellar/root/6.36.00/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)
    [/usr/local/Cellar/root/6.36.00/lib/root/libCore.so] TApplication::TApplication(char const, int*, char**, void*, int) (no debug info)*
    [/usr/local/Cellar/root/6.36.00/lib/root/libRint.so] TRint::TRint(char const, int*, char**, void*, int, bool, bool) (no debug info)*
    [/usr/local/Cellar/root/6.36.00/bin/root.exe] main (no debug info)
    [/usr/lib/dyld] start (no debug info)
    Jamess-MacBook-Pro:~ jamesbowen$

Does anyone here know how I can fix this?

James Bowen

Hi James,

Sorry to read ROOT installation via Brew did not work out of the box for you.

It looks some sort of misconfiguration is affecting your system.
Are you sure you properly removed all remnants of previous installations and installed the most recent Apple SDK?

Cheers,
Danilo

1 Like

Hi Danilo,

Thank you for your reply. To be honest, I am actually not sure that I properly removed all of the remnants of previous installations and installed the most recent Apple SDK. I don’t recall the Root installation instructions saying anything regarding that. What all does that entail?

Sincerely,

James

You seem to have ROOT installed both in:

‘/private/tmp/root-20250525-17868-r9txow/root-6.36.00/

and

/usr/local/Cellar/root/6.36.00

You would need to delete/remove/hide the one that is older/obsolete.

1 Like

Thanks pcanal. I will give it a try, and let you know how it goes.

R/James

pcanal,

I made sure that Root was deleted from both of the directories listed above. I then reinstalled it using Homebrew. This time, when I try to start Root, it goes into an apparently permanent wait. I type root or root -l in the terminal, and the next line is blank as if waiting for a result, but after several minutes nothing happens. Does this problem sound familiar?

Sincerely,

James

Hi @James_Bowen,

that’s a new one for me. Could you try to use XCode → Developer Tools → Instruments to see what it’s doing?

1 Like

StephanH,

Thank you for your reply. What in particular should I look for in Instruments?

Also, after taking an indefinitely long period last night, I am still getting the same error above that I first posted.

Sincerely,

James

It might help to know what functions are running, so instruments might be able to tell us that (provided there are debug symbols in the libraries). But from the discussion above, it looks to be an issue in finding the precompiled modules. I’ll ask a colleague about it.

1 Like

It does seem like something is wrong with your installation (remnants from your previous installation still looking for MacOSX14.sdk)

Could you perhaps try:

source /usr/local/Cellar/root/6.36.00/bin/thisroot.sh

or whichever directory your new installation points you to?

1 Like

Thank you. I look forward to seeing what you find out.

Sincerely,

James

devajith,

I executed that command, and it doesn’t look like anything happened:

Jamess-MacBook-Pro:~ jamesbowen$ source /usr/local/Cellar/root/6.36.00/bin/thisroot.sh
Jamess-MacBook-Pro:~ jamesbowen$

Is there anything in particular that should have happened here?

James

Call then “root” after that line.