Home | News | Documentation | Download

ROOT fails after upgrade to MacOS Monterey 12.0.1


ROOT Version: 6.24.04
Platform: MacOS 12.0.1
Compiler: Not Provided


Hello,
After upgrading to Monterey, my ROOT did not work anymore. I uninstalled it (brew uninstall root) then re-installed it (brew install root), but still not working, with the following errors below. I would appreciate any help. I should mention that I upgraded also Xcode and command line tools to the latest version (13.1).
Thank you!

**input_line_1:1:2:** **error:** **module 'Darwin' uses additional module map**

**'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/mach_debug.modulemap'**

**used when the module was built**

#include <new>

**^**

**input_line_1:1:2: note:** imported by module 'std' in '/usr/local/Cellar/root/6.24.04_1/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 '/usr/local/Cellar/root/6.24.04_1/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

'/usr/local/Cellar/root/6.24.04_1/lib/root/Cling_Runtime_Extra.pcm'

**input_line_2:1:2: note:** imported by module 'Cling_Runtime' in

'/usr/local/Cellar/root/6.24.04_1/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 '/usr/local/Cellar/root/6.24.04_1/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)

[<unknown binary>] (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCling.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCling.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCling.so] CreateInterpreter (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCore.so] TROOT::InitInterpreter() (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCore.so] ROOT::Internal::GetROOT2() (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libCore.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)

[/usr/local/Cellar/root/6.24.04_1/lib/root/libRint.so] TRint::TRint(char const*, int*, char**, void*, int, bool) (no debug info)

[/usr/local/Cellar/root/6.24.04_1/bin/root.exe] main (no debug info)

[/usr/lib/dyld] start (no debug info)

[<unknown binary>] (no debug info)

[<unknown binary>] (no debug info)

I got the same error after upgrading to Xcode 13.1 (Big Sur) I guess the problem is with the new Xcode version.

After reading several complaints here on the forum about MacOS Monterey and the corresponding advice, I uninstalled Xcode 13.1 and Command line tools and installed from Apple’s developer site the previous versions of Xcode(13.0) and Command line tools and afterwards reinstalled root. Now root is working and everything is fine, except for Homebrew complaining about the outdated versions.

2 Likes

Hi @Mukh , @monicabalan ,
indeed the current workaround is the one at ROOT 6.24/06 can not work on macOS Monterey .

We will release binaries compatible with the latest xcode version as soon as possible.

Cheers,
Enrico

Thank you!

Thanks Monicabalan… I was regretting after upgrading as ROOT was not working then. Your method worked for me…

Installing Xcode 13.0 worked for me too, thank you!

I have reinstalled Command Line Tools for Xcode 13.0, and root works quietly. Any idea about the timeline for a root_v6-macos12 release?

This is affecting homebrew (which hasn’t rebuilt for macOS 12 yet) and conda-forge ROOT, as well. (Sorry, didn’t see that brew and conda were mentioned in that issue)

Pardon me for making the noise, how one can know when the new release of root binaries for Mac OS Monterey ?

Did you reinstalled only Command line Tools?
Can you give me an instruction or link to how to do it? I am new in this.
Thank you in advance!
Val

yes, I took Xcode 13.1 and reinstalled only the command line tools for 13.0 . The link is Apple Deveoper - log in with your Apple developer username and password. HTH, Maurizio

Thanks for your reply. I don’t have apple developer account. Can I get it?
Valery

Valery

I downloaded and install command line tools for 13.0. I did not uninstall xCode or command line.

root is working now. However, any incorrect root command gives me error and root quit.

vpk@vpkmac14 ~ % root
   ------------------------------------------------------------------
  | Welcome to ROOT 6.24/06                         |
  | (c) 1995-2021, The ROOT Team; conception: R. Brun, F. Rademakers |
  | Built for macosxarm64 on Sep 02 2021, 14:20:23                   |
  | From tags/v6-24-06@v6-24-06                                      |
  | With Apple clang version 13.0.0 (clang-1300.0.29.3)              |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'       |
   ------------------------------------------------------------------

root [0] aaaaaaa
input_line_9:2:3: error: use of undeclared identifier 'aaaaaaa'
 (aaaaaaa)
  ^
libc++abi: terminating with uncaught exception of type cling::CompilationException
vpk@vpkmac14 ~ %

Hello!

I reinstall Xcode 13.1 and install Xcode 13.0 and the command line tools, then I installed root with brew install root, but I still have the same error, can some one help me please?

I don’t know about the root installation via brew install root. But the anaconda version of ROOT is working.

It’s not about the Xcode 13.1, just uninstall the command line tools for 13.1 and install the command line tools for Xcode 13. Then the problem will be solved.

I had the same problem. I managed to install a running ROOT, on a MacbookAir M1 with Monterey and Xcode 13.1 + CommandLineTools 13.1, via Macport.

$ sudo port install root6

Hi, i have compiled root in my apple m1 with this guide:

git clone --branch v6-22-00-patches https://github.com/root-project/root.git root_src
mkdir root_build root_install && cd root_build
cmake -DCMAKE_INSTALL_PREFIX=../root_install ../root_src  -Dimt=OFF -Dbuiltin_tbb=OFF # because Intel’s TBB still does not work out of the box
cmake --build . -- install -j6 # if you have 6 cores available for compilation

during compilation everything is fine.
I run thisroot.sh and it’s fine.
When I compile macro.C file, it gives me this error.

root [0] .L macro.C++
Info in <TMacOSXSystem::ACLiC>: creating shared library /Users/roany/Downloads/./macro_C.so
ld: library not found for -lCoreEntitlements
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error in <ACLiC>: Executing 'cd "/Users/roany/Downloads" ; c++ -fPIC -c -O3 -DNDEBUG -std=c++11 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++  -I$ROOTSYS/include -isysroot "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/" -I"/Users/roany/root_build/etc/" -I"/Users/roany/root_build/etc//cling" -I"/Users/roany/root_build/include/" -I"/Users/roany/root_build/include"   -D__ACLIC__ "/Users/roany/Downloads/macro_C_ACLiC_dict.cxx" ; c++ -O3 -DNDEBUG "/Users/roany/Downloads/macro_C_ACLiC_dict.o" -dynamiclib -Wl,-headerpad_max_install_names -m64 -single_module -Wl,-dead_strip_dylibs -undefined dynamic_lookup   "/Users/roany/root_build/lib/libRint.so" "/Users/roany/root_build/lib/libCore.so" "-lz.1" "-lfakelink" "-lapple_nghttp2" "-lnetwork" "-lsqlite3" "-lenergytrace" "-lCoreEntitlements" "-lMobileGestalt" "-lcoretls" "-lcoretls_cfhelpers" "-lxar.1" "-lcompression" "-larchive.2" "-lxml2.2" "-lpcap.A" "-ldns_services" "-llzma.5" "-lbz2.1.0" "-liconv.2" "-lcharset.1" "-lCheckFix" "-lmecabra" "-lmecab" "-lgermantok" "-lThaiTokenizer" "-lChineseTokenizer" "-lcmph" "-lutil" "-lapp_launch_measurement" "-lxslt.1" "-lspindump" "-late" "-lexpat.1" "-lAudioStatistics" "-lSMC" "-lperfcheck" "-lmis" "-lIOReport" "-lheimdal-asn1" "/Users/roany/root_build/lib/libRIO.so" "/Users/roany/root_build/lib/libThread.so" "/Users/roany/root_build/lib/libCling.so" "-lncurses.5.4" "/Users/roany/root_build/lib/libMathCore.so" "-lsandbox.1" "-lCoreStorage" "-lcsfde" "-lMatch.1" -o "/Users/roany/Downloads/./macro_C.so"' failed!
root [1] 


This error occurs even when installing the pre-compiled ROOT

I have Macbook AIR M1
Mac Osx Monterey
XCODE 13 and CLT 13