# Cling fails on macOS 27

**URL:** <https://root-forum.cern.ch/t/cling-fails-on-macos-27/65046>\
**Category:** Newbie\
**Tags:** root\
**Created:** [November 5, 2026, 5:27pm UTC](https://root-forum.cern.ch/t/cling-fails-on-macos-27/65046 "2026-11-05T17:27:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stanju](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c57346/32.png) [@Stanju](https://root-forum.cern.ch/u/Stanju)\
**Post date:** [November 5, 2026, 5:27pm UTC](https://root-forum.cern.ch/t/cling-fails-on-macos-27/65046/1 "2026-11-05T17:27:29Z")

</div>

* * *

Hello Experts,

I am an undergrad working on a decay dataset, I am stuck with this problem and this is my first time using ROOT so i don’t know where to start when it come to fixing it. ROOT starts on my Mac and it does succeed after a command like ./sortIDS 14, which sorts my data file. Furthermore it compiles my analysis program (xia4ids, a C++ sorting code for XIA Pixie list-mode data). However the compiler must be unstable as after the command Run014.root (my data file) it fails outputting this error:

```auto
*/Applications/root/etc/cling/std_darwin.modulemap:80:64: error: header '\__type_traits/can_extract_key.h' not found***
**
as well as even before asking for a prompt outputting:
*
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: ''***
**
and:
*
root \[0\]*

*Attaching file Run014.root as \_file0...*

*\[runStaticInitializersOnce\]: Failed to materialize symbols: { (main, { $.cling-module-6.\ __inits.0, \__ GLOBAL __sub_I_cling_module_6, \_cling_module_6\_, \__ ZN11 __cling_N506_file0E, \__ ZN11 __cling_N5015__ cling_Un1Qu30EPv, \ ____ orc_init_func.cling-module-6 }) }*

*IncrementalExecutor::executeFunction: symbol '\_ZN5cling7runtime6gClingE' unresolved while linking \[cling interface function\]!*

*You are probably missing the definition of cling::runtime::gCling*

*Maybe you need to load the corresponding shared library?*

*root \[1\] root-config --version*

***ROOT_prompt_1:1:15: error: expected ';' after expression***

*root-config --version*

              ***^***

              *;*

***ROOT_prompt_1:1:15: error: use of undeclared id***

```

Setup:

- Mac: MacBook Pro, Apple Silicon (arm64)

- macOS 27.0.1 (build 26A434)

- ROOT: root\_v6.40.04.macos-26.6-arm64-clang210.pkg, prebuilt arm64 macOS download,  
installed in /Applications/root

My guess is that the macOS 27 SDK moved or removed headers that ROOT’s modulemap  
expects.

Is macOS 27 supported yet and is there a workaround or anything i could perhaps do?

Thank you in advance.

* * *

---

<div class="post-metadata">

**Author:** ![lbreitwi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lbreitwi/32/21330_2.png) [@lbreitwi](https://root-forum.cern.ch/u/lbreitwi)\
**Post date:** [November 6, 2026, 10:51am UTC](https://root-forum.cern.ch/t/cling-fails-on-macos-27/65046/2 "2026-11-06T10:51:11Z")

</div>

Hi @Stanju,  
Welcome to the ROOT forum and thank you for your report.  
I have a similar setup (macbook pro with macOS 27.2), but use brew to install root (`brew install root`). The brew version matches the one your are using 6.40.04

Could you please try installing root with brew?

Here a quick smoke test you can use afterwards to check the installation works.

```auto
cat >/tmp/smoke.C <<'EOF'
void smoke() {
  TH1D h("h", "smoke test", 10, 0, 10);
  h.Fill(3.5);
  if (h.GetEntries() != 1) gSystem->Exit(1);
  std::cout << "ROOT works; histogram entries = " << h.GetEntries() << std::endl;
}
EOF

root -l -b -q /tmp/smoke.C

```

Best,  
Lukas

---

<div class="post-metadata">

**Author:** ![lbreitwi](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/lbreitwi/32/21330_2.png) [@lbreitwi](https://root-forum.cern.ch/u/lbreitwi)\
**Post date:** [November 6, 2026, 10:52am UTC](https://root-forum.cern.ch/t/cling-fails-on-macos-27/65046/3 "2026-11-06T10:52:04Z")

</div>

I just noticed that the ROOT package you installed says macOS 26.6, which does not match your macOS 27 version
