Home | News | Documentation | Download

Problem with root on MacOs: error: module ‘Darwin’ uses additional module map

_ROOT Version: root_v6.24.06
_Platform: MacBookPro BigSur 11.6

Hi, I’m running into problems with root v6.24.06 on my MacBookPro with BigSur 11.6, yesterday evening it was running smoothly, but this morning when I ran “root -l” on my terminal I got this:

input_line_1:1:2: error: module 'Darwin' uses additional module map
      '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/uuid.modulemap'
      used when the module was built
#include <new>
 ^
input_line_1:1:2: note: imported by module 'std' in '/Applications/root_v6.24.06/lib/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 '/Applications/root_v6.24.06/lib/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
      '/Applications/root_v6.24.06/lib/Cling_Runtime_Extra.pcm'
input_line_2:1:2: note: imported by module 'Cling_Runtime' in
      '/Applications/root_v6.24.06/lib/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 '/Applications/root_v6.24.06/lib/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 VMC
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 Unuran
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 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 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 RCsg
Failed to load module Cling_Runtime
Failed to load module SPlot
Failed to load module RooFit
Failed to load module GeomBuilder
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 Vc
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 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 Netx
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 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 ROOTTPython
Failed to load module TreePlayer
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)
[/Applications/root_v6.24.06/lib/libCling.6.24.06.so] ROOT::TMetaUtils::TNormalizedCtxtImpl::TNormalizedCtxtImpl(cling::LookupHelper const&) (no debug info)
[/Applications/root_v6.24.06/lib/libCling.6.24.06.so] ROOT::TMetaUtils::TNormalizedCtxt::TNormalizedCtxt(cling::LookupHelper const&) (no debug info)
[/Applications/root_v6.24.06/lib/libCling.6.24.06.so] TCling::TCling(char const*, char const*, char const* const*) (no debug info)
[/Applications/root_v6.24.06/lib/libCling.6.24.06.so] CreateInterpreter (no debug info)
[/Applications/root_v6.24.06/lib/libCore.6.24.06.so] TROOT::InitInterpreter() (no debug info)
[/Applications/root_v6.24.06/lib/libCore.6.24.06.so] ROOT::Internal::GetROOT2() (no debug info)
[/Applications/root_v6.24.06/lib/libCore.6.24.06.so] TApplication::TApplication(char const*, int*, char**, void*, int) (no debug info)
[/Applications/root_v6.24.06/lib/libRint.6.24.06.so] TRint::TRint(char const*, int*, char**, void*, int, bool) (no debug info)
[/Applications/root_v6.24.06/bin/root.exe] main (no debug info)
[/usr/lib/system/libdyld.dylib] start (no debug info)

I have seen that this kind of problem occurred for Monterey, but I didn’t do any system update.
How can I fix it?

Thanks,
Elia

Hi @Elia_Bottalico,

I would bet that CommandLineTools got upgraded. Either installing the previous version of CommandLineTools or reinstalling ROOT should fix it. How did you installed ROOT on this machine (Homebrew, Macports, etc.)?

Cheers,
J.

Hi, I installed it by downloading the binary (pkg) from CERN website. I tried to remove root and reinstall it, but the problem persists.

See also related topic: Problem with root on macos: error: module 'Darwin' uses additional module map - #4 by Axel.

Maybe @Axel knows any workaround?

Thanks, I checked the Xcode CommandLineTools version which is 13.0 (13A233). In the link you sent me, the solution seems to be downgrade from 13.1 to 13.0, but I’m still in 13.0. Is there a simple way to downgrade to previous CommandLineTools version?

I think I solved.
I deleted the CommandLineTools directory using the command:

sudo rm -rf /Library/Developer/CommandLineTools

and then I simply reinstalled the command line tools via:

xcode-select --install

Thanks for your suggestion @jalopezg

This is very likely another occurrence of Build error on MacOS, macports... with unctrl.h / ncurses.h

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