# Consistent issues with ROOT on macOS

**URL:** <https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932>\
**Category:** Newbie\
**Created:** [January 23, 2024, 9:04am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932 "2024-01-23T09:04:47Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 9:04am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/1 "2024-01-23T09:04:47Z")

</div>

Hi,

I’m having consistent issues with ROOT on my macOS Sonoma 14.2.1. When I try to run a command on some ROOT dependent software I have installed, I get:

```auto
alexgavin@Alexs-MacBook-Air Run % UCLSignalAna data/mu3e_vertex_signal_r1_f4000.root

Reading data/mu3e_vertex_signal_r1_f4000.root and tree vertex

clang: **error:** **argument to '-isysroot' is missing (expected 1 value)**

clang: **error:**  **no input files**

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!

Invoking:

LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -isysroot;/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -xc++ -E -v /dev/null 2>&1 | sed -n -e '/^.include/,${' -e '/^ \/.*++/p' -e '}'

Results was:

clang: **error:** **argument to '-isysroot' is missing (expected 1 value)**

clang: **error:**  **no input files**

```

I’ve rebuilt ROOT several times and ROOT seems to be working fine on everything else. I’ve rebuilt the software that contains this command ‘UCLSignalAna’ after every new ROOT build and it builds and installs just fine, but I always get this error when I try to run. I’ve also tried uninstalling and reinstalling Xcode and command line tools but to no avail. Does anyone have any suggestions?

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 23, 2024, 9:07am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/2 "2024-01-23T09:07:42Z")

</div>

Let’s ping a macOS user… @couet , @moneta ?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 9:19am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/3 "2024-01-23T09:19:01Z")

</div>

I have never seen this error myself on Mac but I see a similar report here:

> [@Issues with root after the Developer Tools apdate](https://root-forum.cern.ch/t/issues-with-root-after-the-developer-tools-apdate/56410):
>
> Hello there! I just updated my Xcode Developer Tool in MacOs (apple silicon M1 pro) Ventura 13.5.2 as suggested by apple updates message and now when I run root I got this error at the beginning: root clang: error: argument to '-isysroot' is missing (expected 1 value) clang: error: no input files ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths! Invoking: LC\_ALL=C /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -i…

Rebuilding ROOT seems to have cured the problem.

You said you rebuilt ROOT, as it does have cured the problem for you are you sure the software `UCLSignalAna ` is using the new version you rebuilt ? mays be it is still pointing to an older one ?

Also have you asked the authors of `UCLSignalAna ` ?

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 9:35am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/4 "2024-01-23T09:35:32Z")

</div>

Hi,

I did see this other post before I posted mine and tried to rebuild like they did. I’m sure UCLSignalAna is using my new build since I source /path/to/root/install/bin/thisroot.sh in every new window, unless I am mistaken in thinking this will tell UCLSignalAna which root to use? The author of this software told me to rebuild ROOT but they’re not very familiar with macOS so can’t offer in depth advice. I’m quite stuck on what to do since I’ve already spent many hours trying to rebuild.

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 9:37am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/5 "2024-01-23T09:37:01Z")

</div>

Also I have a root file and when I try root myfile.root, I get the same error when previously it opened on my internet browser

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 9:50am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/6 "2024-01-23T09:50:58Z")

</div>

> [@Alex\_Gavin](#):
>
> Also I have a root file and when I try root myfile.root, I get the same error

Ah ? so you also get the same error directly with ROOT ? can you post the output you get when you do:

```auto
root myrootfile.root

```

?

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 10:04am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/7 "2024-01-23T10:04:20Z")

</div>

Yes, I do. Please see the error below:

```auto
alexgavin@Alexs-MacBook-Air Run % root plot_files/mu3e_vertex_signal_r1_f4000_plots.root

clang: **error:** **argument to '-isysroot' is missing (expected 1 value)**

clang: **error:**  **no input files**

ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!

Invoking:

LC_ALL=C /Library/Developer/CommandLineTools/usr/bin/c++ -isysroot;/Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -xc++ -E -v /dev/null 2>&1 | sed -n -e '/^.include/,${' -e '/^ \/.*++/p' -e '}'

Results was:

clang: **error:** **argument to '-isysroot' is missing (expected 1 value)**

clang: **error:**  **no input files**

With exit code 0

```

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 10:07am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/8 "2024-01-23T10:07:41Z")

</div>

Ok, so that’s really root issue. Do you see this error with any root file or just with that one ? if that’s only this one can we have access to it ?

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 10:27am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/9 "2024-01-23T10:27:43Z")

</div>

Hi, it’s happening for all ROOT files. I’ve decided to rebuild one final time before I throw in the towel, but if the issue persists then I’ll return here for further advice. Thanks for your help so far!

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 11:53am UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/11 "2024-01-23T11:53:53Z")

</div>

Do you get the error message only when you attach a root file or just starting root without parameter gives you also the same error ?  
Which root version have you installed ?  
Did you get the sources from GitHub ?

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 1:33pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/12 "2024-01-23T13:33:50Z")

</div>

I’m using v6.28.06 and yes I cloned the source from GitHub. Do you recommend a later release? ROOT is still rebuilding on my system so I can try just running the root command without a parameter when it’s done, but I’m pretty sure I get the same error just running the root command.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 2:13pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/13 "2024-01-23T14:13:50Z")

</div>

I am compiling and running ROOT master on various MacOS version . It is fine. What processor has your Mac ? which MacOS version ?

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 2:39pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/14 "2024-01-23T14:39:18Z")

</div>

Processor: 1.1 GHz Quad-Core Intel Core i5  
macOS: Sonoma 14.2.1

The build on my system takes well over 2 hours. Is this normal? I’m building with the following flags:  
-DCMAKE\_CXX\_STANDARD=17 -Dbuiltin\_glew=ON -Dbuiltin\_openssl=ON -Dhttp=ON -DCMAKE\_BUILD\_TYPE=Release

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 2:40pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/15 "2024-01-23T14:40:39Z")

</div>

2 hours ?? no that’s not normal. I will try on a similar machine

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 2:41pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/16 "2024-01-23T14:41:32Z")

</div>

Yes I thought it seemed quite long. Might I add that I’m building using the command -j7 so using 7/8 cores so I’m unsure why it takes quite so long.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 2:43pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/17 "2024-01-23T14:43:52Z")

</div>

yes with -j8 it should be must faster. I am trying on a similar machine now (note I just saw that MacOS 14.3 is available)

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 2:47pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/18 "2024-01-23T14:47:08Z")

</div>

So use -j8 instead of -j7? I can try that and maybe I could update my system too if you recommend that? Thanks for trying on your system too, I’m interested to see how much slower my build is.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 2:48pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/19 "2024-01-23T14:48:25Z")

</div>

-j7 or -j8 should not make a difference

---

<div class="post-metadata">

**Author:** ![Alex\_Gavin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/alex_gavin/32/34613_2.png) [@Alex\_Gavin](https://root-forum.cern.ch/u/Alex_Gavin)\
**Post date:** [January 23, 2024, 2:49pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/20 "2024-01-23T14:49:33Z")

</div>

I see, that is strange why its taking so long then.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 23, 2024, 3:28pm UTC](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932/21 "2024-01-23T15:28:14Z")

</div>

On a similar machine as yours I did:

 ![Screenshot 2024-01-23 at 16.27.39](https://root-forum.cern.ch/uploads/default/original/3X/8/d/8df61a67514f1548e1dc2959f18c84aa759daa8a.png)

root built in 32 minutes

then I ran root fine… no errors.

[Next page](https://root-forum.cern.ch/t/consistent-issues-with-root-on-macos/57932.md?page=2)
