Problems Loading Root to MacBook


ROOT Version: 6.36.06
Platform: MacOS Tahoe 26.2
Compiler: ?

I have been unable to install Root on my MacBook since an OS update last year. With the most recent update, I tried again, unsuccessfully, using Homebrew. This is what happened when I tried to start Root after executing the Homebrew installation commands:

Mac:root 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-20251126-18172-bvg823/root-6.36.06/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.06/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.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*, void*) (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libCling.so] CreateInterpreter (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libCore.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)
[/usr/local/Cellar/root/6.36.06/lib/root/libRint.so] TRint::TRint(char const*, int*, char**, void*, int, bool, bool) (no debug info)
[/usr/local/Cellar/root/6.36.06/bin/root.exe] main (no debug info)
[/usr/lib/dyld] start (no debug info)
Mac:root jamesbowen$

Does anybody have any suggestions on how to fix this?

James Bowne


Have you tried to install it form sources ?

Based on your implied recommendation, I went to the instructions for Building from Sources. I then went to Required Dependencies to make sure I was prepared. When I executed the following command:

cmake ../root

the following error occurred, which halted the process:

– Looking for GLEW
– Found GLEW: /usr/local/lib/cmake/glew/glew-config.cmake
CMake Error at cmake/modules/SearchInstalledSoftware.cmake:764 (message):
Please enable builtin Glew due a bug in CMake’s FindGlew < v3.25 (use cmake
option -Dbuiltin_glew=ON).
Call Stack (most recent call first):
CMakeLists.txt:155 (include)

– Configuring incomplete, errors occurred!
See also “/Users/jamesbowen/root/root-build/CMakeFiles/CMakeOutput.log”.
See also “/Users/jamesbowen/root/root-build/CMakeFiles/CMakeError.log”.
Jamess-MacBook-Pro:root-build jamesbowen$

Could this be at least part of my problems? And if so, how does this get corrected?

James

Have you tired what the error message recommend ie:
cmake -Dbuiltin_glew=ON ../root ?

1 Like

Dear Couet,

Thank you. I followed your recommendation, and that apparently corrected that problem, as I was then able to complete the cmake ../root step. I then proceeded to the next step, make -j8 . Several minutes of installation and building followed, until the following error came up:

*[ 63%] Building CXX object bindings/tpython/CMakeFiles/ROOTTPython.dir/src/TPyArg.cxx.o
ld: warning: ignoring file ‘/opt/local/lib/libxml2.dylib’: found architecture ‘arm64’, required architecture ‘x86_64’
Undefined symbols for architecture x86_64:
“_xmlCleanupParser”, referenced from:
(anonymous namespace)::InitAndCleanupTheXMLParserOnlyOnceCommaEver::~InitAndCleanupTheXMLParserOnlyOnceCommaEver() in TXMLParser.cxx.o
“_xmlCreateFileParserCtxt”, referenced from:
TDOMParser::ParseFile(char const*) in TDOMParser.cxx.o
TSAXParser::ParseFile(char const*) in TSAXParser.cxx.o
“_xmlCreateMemoryParserCtxt”, referenced from:
TDOMParser::ParseBuffer(char const*, int) in TDOMParser.cxx.o
TSAXParser::ParseBuffer(char const*, int) in TSAXParser.cxx.o
“_xmlDocGetRootElement”, referenced from:
TXMLDocument::TXMLDocument(_xmlDoc*) in TXMLDocument.cxx.o
“_xmlFreeDoc”, referenced from:
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o
TXMLDocument::~TXMLDocument() in TXMLDocument.cxx.o
“_xmlFreeParserCtxt”, referenced from:
TXMLParser::~TXMLParser() in TXMLParser.cxx.o
TXMLParser::ReleaseUnderlying() in TXMLParser.cxx.o
“_xmlInitParser”, referenced from:
__GLOBAL__sub_I_TXMLParser.cxx in TXMLParser.cxx.o
“_xmlParseDocument”, referenced from:
TDOMParser::ParseContext() in TDOMParser.cxx.o
TSAXParser::Parse() in TSAXParser.cxx.o
“_xmlParserGetDirectory”, referenced from:
TDOMParser::ParseFile(char const*) in TDOMParser.cxx.o
“_xmlStopParser”, referenced from:
TXMLParser::StopParser() in TXMLParser.cxx.o
“_xmlStrdup”, referenced from:
TDOMParser::ParseFile(char const*) in TDOMParser.cxx.o
ld: symbol(s) not found for architecture x86_64
c++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libXMLParser.so] Error 1
make[1]: *** [io/xmlparser/CMakeFiles/XMLParser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
[ 63%] Building CXX object net/http/CMakeFiles/RHTTP.dir/src/THttpServer.cxx.o
*

Moments later, after some more building, the process terminated, apparently due to that error:

[ 64%] Linking CXX shared library ../../lib/libNet.so
[ 64%] Built target Net
make: *** [all] Error 2
Jamess-MacBook-Pro:root-build jamesbowen$ -v
-bash: -v: command not found
Jamess-MacBook-Pro:root-build jamesbowen$

Do you have any recommendations on how to correct this error? There’s a comment in there about using some command to see the invocation, but I’m not sure exactly how to do that.

Sincerely,

James

It looks like there is some mismatch in the libraries installed on you machine. What is your machine exactly ? a Apple Silicon one ? to be sure you are doing a clen build you can try the following:

cd ~
git clone https://github.com/root-project/root.git root
mkdir build
cd build
cmake -Dbuiltin_glew=ON ../root
make -j8
1 Like

Oliver,

I have a 2023 MacBook Pro with an Apple M2 Pro chip. The current OS is Tahoe 26.2. I previously installed Root successfully in May 2024 using Homebrew and the instructions for using Homebrew on the root.cern.ch website. However, that installation was apparently broken by an OS upgrade in March 2025, and I have since been unable to reinstall Root.

I also tried what you wrote above. I already had the root and build directories from my attempts to reinstall that I contacting you about. I therefore attempted the

Oliver,

I have a 2023 MacBook Pro with an Apple M2 Pro chip. The current OS is Tahoe 26.2. I previously installed Root successfully in May 2024 using Homebrew and the instructions for using Homebrew on the root.cern.ch website. However, that installation was apparently broken by an OS upgrade in March 2025, and I have since been unable to reinstall Root.

I also tried what you wrote above. I already had the root and build directories from my attempts to reinstall that I contacting you about. I therefore attempted the

cmake -Dbuiltin_glew=ON ../root

step, but it failed. Here is what was said upon failure:

CMake Error in builtins/glew/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in builtins/glew/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in builtins/glew/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/ftgl/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/ftgl/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/ftgl/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/eve/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/eve/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/eve/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/gl/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/gl/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

CMake Error in graf3d/gl/CMakeLists.txt:
Imported target “OpenGL::GL” includes non-existent path

"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/System/Library/Frameworks/OpenGL.framework"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

  • The path was deleted, renamed, or moved to another location.

  • An install or uninstall procedure did not complete successfully.

  • The installation package was faulty and references files it does not
    provide.

*– Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Jamess-MacBook-Pro:build jamesbowen$

Do you have any further suggestions? Or do I need to show this to a Root expert in person?

V/R James

The Mac environment you have does work fine for me with the last procedure I sent you (installation from source). According to the error messages you get (BTW, your last post has a lot of duplications which makes it difficult to read) it seems your OpenGL environment is problematic. Also I just noticed that your Xcode is 15.5. Can you check if your Mac (in “System Preferences”) proposes you an update of Xcode ?

On my MacOS26 machine I have:

% sw_vers
ProductName:		macOS
ProductVersion:		26.2
BuildVersion:		25C56

%  pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.2.0.0.1.1764812424
volume: /
location: /
install-time: 1767623608

Oliver,

I apologize for that being difficult to read.

I checked my Xcode, and it looks like I have Version 26.2 as well. That’s what is says when I open Xcode in Applications.

How do I go about fixing my OpenGL environment?

Sincerely,

James

I have installed XCode on my Mac running OS 26.2 and I see:

% ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs 
MacOSX.sdk	MacOSX26.2.sdk	MacOSX26.sdk

What do you have in that folder ?

What do you get when you type:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

1 Like

Oliver,

I am sorry for my delayed reply. A new semester started since my last message, so I have been busy with teaching. For the list command you gave me above, I have the same thing as you do:

Jamess-MacBook-Pro:build jamesbowen$ ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
MacOSX.sdk	MacOSX26.2.sdk	MacOSX26.sdk

For the second command, this is what I got:

Jamess-MacBook-Pro:build jamesbowen$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
No receipt for ‘com.apple.pkg.CLTools_Executables’ found at ‘/’.

However, I got the same response on another, older Mac that I have where Root still works fine. So I am not sure how significant this is. What do you think?

Sincerely,

James

Dear James,

The second output you get is very suspicious. You should get something like:

couet@macphsft36 roottest % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.2.0.0.1.1764812424
volume: /
location: /
install-time: 1767623608

This command is used to check if the Command Line Tools (CLT) are installed on your Mac and to see which version is currently installed. The output you get suggests that the CLT are not properly installed on your machine. Can you try:

xcode-select --install

Olivier

Hi Olivier and James,

I have been having the same issue as James. When upgrading from 6.36.02 to 6.38 via Homebrew and updating Xcode via the App Store (also am on 26.2), I see identical errors and outputs from the previous commands in this thread. Upon running:

xcode-select --install

I see the following:

xcode-select: note: Command line tools are already installed. Use "Software Update" in System Settings or the softwareupdate command line interface to install updates

Removing the tools and reinstalling had no effect:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

Doing the following resulted in being able to locate with pkgutil:

sudo xcode-select -s /Library/Developer/CommandLineTools

However, reinstalling ROOT after this still does not work, yielding the same original error. Running brew config seems to locate the correct tools, so I am unsure what to do.

What do you make of this?

May be this recipe:

# remove the current Command Line Tools
sudo rm -r /Library/Developer/CommandLineTools

# Reset xcode-select
xcode-select -r

# Then install. You will be asked to click a button 
xcode-select --install

# Go in the System Settings -> General -> Software Update 
# if there is a new version of the Command Line Tools, update it.

# Install ROOT
git clone https://github.com/root-project/root.git
mkdir root-build
cd root-build
cmake ../root
make -j8

1 Like

That worked for me–thank you!!

1 Like