Installing ROOT on Apple Silicon based mac

I managed to fix it. Moderators can delete my post but I am keeping it in case someone comes with a similar issue.
Solution : On a brand new M1 Pro mac, I installed xcode CLT from here Unauthorized - Apple Developer and XCode 13 from here Sign In - Apple
after that installed root using brew install root and voila it works!

I am trying to install root on the new M1 pro Macbooks running MacOS 12.0
ROOT 6.24/06 can not work on macOS Monterey - #2 by bellenot using this workaround, I installed XCode 13 and installed root using ‘brew install root’
I didn’t see any installation errors but when I try to start root by entering ‘root -l’, I get the following error

input_line_1:1:2: error: module ‘Darwin’ uses additional module map
‘/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach.modulemap’ used when the module was
built
#include
^
input_line_1:1:2: note: imported by module ‘std’ in ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/std.pcm’
Warning in cling::IncrementalParser::CheckABICompatibility():
Failed to extract C++ standard library version.
Warning in cling::IncrementalParser::CheckABICompatibility():
Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION ‘1’
Extraction of runtime standard library version was: ‘’
input_line_2:1:2: fatal error: module file ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/std.pcm’ is out of date and needs to be rebuilt
#include “cling/Interpreter/RuntimeUniverse.h”
^
input_line_2:1:2: note: imported by module ‘Cling_Runtime_Extra’ in ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Cling_Runtime_Extra.pcm’
input_line_2:1:2: note: imported by module ‘Cling_Runtime’ in ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Cling_Runtime.pcm’
Replaced symbol atexit cannot be found in JIT!
Replaced symbol at_quick_exit cannot be found in JIT!
<<< cling interactive line includer >>>: fatal error: module file ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Darwin.pcm’ is out of date and needs to be rebuilt
Failed to load module Darwin
Failed to load module std
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 Darwin
Failed to load module Unfold
Failed to load module Imt
Failed to load module HistPainter
Failed to load module PyMVA
Failed to load module RHTTPSniff
Failed to load module RDAVIX
Failed to load module RHTTP
Failed to load module FitPanel
Failed to load module ROOTVecOps
Failed to load module ProofDraw
Failed to load module ROOTBrowsable
Failed to load module Quadp
Failed to load module ROOT_Foundation_Stage1_NoRTTI
Failed to load module GeomPainter
Failed to load module Genetic
Failed to load module Eve
Failed to load module TreeViewer
Failed to load module Physics
Failed to load module ROOTNTuple
Failed to load module EG
Failed to load module Tree
Failed to load module HistFactory
Failed to load module Spectrum
Failed to load module Matrix
Failed to load module Html
Failed to load module Hist
Failed to load module GuiHtml
Failed to load module _Builtin_intrinsics
Failed to load module Gpad
Failed to load module TMVAGui
Failed to load module ROOTEve
Failed to load module Fumili
Failed to load module Net
Failed to load module RGL
Failed to load module Geom
Failed to load module Postscript
Failed to load module GCocoa
Failed to load module ROOTGpadv7
Failed to load module RCsg
Failed to load module Cling_Runtime
Failed to load module SPlot
Failed to load module Hbook
Failed to load module GeomBuilder
Failed to load module RooFit
Failed to load module ROOT_Config
Failed to load module RooFitMore
Failed to load module Rint
Failed to load module XMLParser
Failed to load module MultiProc
Failed to load module RooStats
Failed to load module Proof
Failed to load module FITSIO
Failed to load module Ged
Failed to load module Recorder
Failed to load module FFTW
Failed to load module GuiBld
Failed to load module ROOTWebDisplay
Failed to load module RooFitCore
Failed to load module Gui
Failed to load module SQLIO
Failed to load module XMLIO
Failed to load module ROOT_Rtypes
Failed to load module std
Failed to load module ROOTHistDraw
Failed to load module RIO
Failed to load module ProofPlayer
Failed to load module ASImage
Failed to load module ROOT_Foundation_C
Failed to load module MathMore
Failed to load module Foam
Failed to load module RSQLite
Failed to load module SpectrumPainter
Failed to load module Minuit2
Failed to load module Core
Failed to load module MLP
Failed to load module ROOTDataFrame
Failed to load module GenVector
Failed to load module NetxNG
Failed to load module ROOTBrowserv7
Failed to load module Minuit
Failed to load module RootAuth
Failed to load module Graf3d
Failed to load module TMVA
Failed to load module ASImageGui
Failed to load module Graf
Failed to load module Gdml
Failed to load module ProofBench
Failed to load module Cling_Runtime_Extra
Failed to load module MathCore
Failed to load module Gviz3d
Failed to load module WebGui6
Failed to load module ROOTTPython
Failed to load module ROOTHist
Failed to load module TreePlayer
Failed to load module ROOTGraphicsPrimitives
Failed to load module ROOTFitPanelv7
Failed to load module Smatrix
Failed to load module SessionViewer
Failed to load module Thread

*** Break *** segmentation violation
[/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::keepTypedef(cling::LookupHelper const&, char const*, bool) (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCling.so] CreateInterpreter (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libCore.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/lib/root/libRint.so] TRint::TRint(char const*, int*, char**, void*, int, bool) (no debug info)
[/opt/homebrew/Cellar/root/6.24.06/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

ROOT Version: 6.22
Platform: MacOS M1 Pro
Compiler: Not Provided


@rushabhgala managed to fix it:

Solution : On a brand new M1 Pro mac, I installed xcode CLT from here Unauthorized - Apple Developer and XCode 13 from here Sign In - Apple
after that installed root using brew install root and voila it works!

It seems that I met the same problem !

input_line_1:1:2: error: module ‘Darwin’ uses additional module map

’/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach_machine.modulemap’

used when the module was built

#include

^

input_line_1:1:2: note: imported by module ‘std’ in ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/std.pcm’

Warning in cling::IncrementalParser::CheckABICompatibility():

Failed to extract C++ standard library version.

Warning in cling::IncrementalParser::CheckABICompatibility():

Possible C++ standard library mismatch, compiled with _LIBCPP_ABI_VERSION ‘1’

Extraction of runtime standard library version was: ‘’

input_line_2:1:2: fatal error: module file ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/std.pcm’ is out of date

and needs to be rebuilt

#include “cling/Interpreter/RuntimeUniverse.h”

^

input_line_2:1:2: note: imported by module ‘Cling_Runtime_Extra’ in

‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Cling_Runtime_Extra.pcm’

input_line_2:1:2: note: imported by module ‘Cling_Runtime’ in

‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Cling_Runtime.pcm’

Replaced symbol atexit cannot be found in JIT!

Replaced symbol at_quick_exit cannot be found in JIT!

<<< cling interactive line includer >>>: fatal error: module file ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Darwin.pcm’ is out of

date and needs to be rebuilt

Failed to load module Darwin

Failed to load module std

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 Darwin

Failed to load module Unfold

Failed to load module Imt

Failed to load module HistPainter

Failed to load module PyMVA

Failed to load module RHTTPSniff

Failed to load module RDAVIX

Failed to load module RHTTP

Failed to load module FitPanel

Failed to load module ROOTVecOps

Failed to load module ProofDraw

Failed to load module ROOTBrowsable

Failed to load module Quadp

Failed to load module ROOT_Foundation_Stage1_NoRTTI

Failed to load module GeomPainter

Failed to load module Genetic

Failed to load module Eve

Failed to load module TreeViewer

Failed to load module Physics

Failed to load module ROOTNTuple

Failed to load module EG

Failed to load module Tree

Failed to load module HistFactory

Failed to load module Spectrum

Failed to load module Matrix

Failed to load module Html

Failed to load module Hist

Failed to load module GuiHtml

Failed to load module _Builtin_intrinsics

Failed to load module Gpad

Failed to load module TMVAGui

Failed to load module ROOTEve

Failed to load module Fumili

Failed to load module Net

Failed to load module RGL

Failed to load module Geom

Failed to load module Postscript

Failed to load module GCocoa

Failed to load module ROOTGpadv7

Failed to load module RCsg

Failed to load module Cling_Runtime

Failed to load module SPlot

Failed to load module Hbook

Failed to load module GeomBuilder

Failed to load module RooFit

Failed to load module ROOT_Config

Failed to load module RooFitMore

Failed to load module Rint

Failed to load module XMLParser

Failed to load module MultiProc

Failed to load module RooStats

Failed to load module Proof

Failed to load module FITSIO

Failed to load module Ged

Failed to load module Recorder

Failed to load module FFTW

Failed to load module GuiBld

Failed to load module ROOTWebDisplay

Failed to load module RooFitCore

Failed to load module Gui

Failed to load module SQLIO

Failed to load module XMLIO

Failed to load module ROOT_Rtypes

Failed to load module std

Failed to load module ROOTHistDraw

Failed to load module RIO

Failed to load module ProofPlayer

Failed to load module ASImage

Failed to load module ROOT_Foundation_C

Failed to load module MathMore

Failed to load module Foam

Failed to load module RSQLite

Failed to load module SpectrumPainter

Failed to load module Minuit2

Failed to load module Core

Failed to load module MLP

Failed to load module ROOTDataFrame

Failed to load module GenVector

Failed to load module NetxNG

Failed to load module ROOTBrowserv7

Failed to load module Minuit

Failed to load module RootAuth

Failed to load module Graf3d

Failed to load module TMVA

Failed to load module ASImageGui

Failed to load module Graf

Failed to load module Gdml

Failed to load module ProofBench

Failed to load module Cling_Runtime_Extra

Failed to load module MathCore

Failed to load module Gviz3d

Failed to load module WebGui6

Failed to load module ROOTTPython

Failed to load module ROOTHist

Failed to load module TreePlayer

Failed to load module ROOTGraphicsPrimitives

Failed to load module ROOTFitPanelv7

Failed to load module Smatrix

Failed to load module SessionViewer

Failed to load module Thread


So I used brew uninstall root to remove root and install Xcode.
when I tried xcode-select --install, It showed :
xcode-select: error: command line tools are already installed, use “Software Update” to install updates
after I installed root by using brew install root, the same error shows again.

xcode-select will install the latest C.L.T. version, i.e. 13.1. You may want, as suggested, to download the command language tools version 13 from the Apple Developer site and install them.

However, I add that this kludge is, well, a kludge and not a real solution. I really want to see a root version for MacOS 12 released, compatible with the latest and greatest C.L.Tools. Timeline, please?

Thanks a lot!
I installed command line tools version 13.1 from the Apple Developer site. I will download version 13 and try it again.
Many thanks

After installing today fresh just released update of CLT for Monterey M1 brand new laptop
I got the same errors. Do I need to to do something else after updating CLT?
Examples of error running root.
<<< cling interactive line includer >>>: fatal error: module file ‘/opt/homebrew/Cellar/root/6.24.06/lib/root/Darwin.pcm’ is out of
date and needs to be rebuilt

Here is the CLT release:
vpk@vpkmac14 ~ % xcode-select -p
/Applications/Xcode.app/Contents/Developer
vpk@vpkmac14 ~ % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 13.1.0.0.1.1633545042
volume: /
location: /
install-time: 1638124959
groups: com.apple.FindSystemFiles.pkg-group

Hi,

I see the same error as others here. Is there some hope for an updated ROOT version in the near future?

Cheers,

Today MacOS has been updated to 12.1, Xcode to 13.2 and Command Line Tools also to 13.2; CLT are incompatible with root. I know that root developers know about this issue, and I was hoping to see root for OS 12 appearing - maybe in the nightly builds. I asked a couple times for a deadline, without any answer. Will some kind soul care to tell when a working root for Xcode 13.2 is foreseen? Thank you in advance, M.

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