# ROOT-Build Fail on MacOS 12.1

**URL:** <https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752>\
**Category:** ROOT\
**Created:** [February 10, 2022, 7:26pm UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752 "2022-02-10T19:26:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![smd](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smd/32/19930_2.png) [@smd](https://root-forum.cern.ch/u/smd)\
**Post date:** [February 10, 2022, 7:26pm UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752/1 "2022-02-10T19:26:41Z")

</div>

Hello,

I’m trying to build root on macOS v12.1 with these options:

cmake -DCMAKE\_INSTALL\_PREFIX=…/install/ …/root\_src/ -Dminuit2=ON -Dpyroot=ON …/root\_src/

And see this error:

[48%] Generating G\_\_Core.cxx, …/lib/Core.pcm  
error: entry with relative path at the root level is not discoverable  
{ ‘name’: ‘’, ‘type’: ‘directory’,  
^~  
Error in modulemap.overlay!

Does anyone understand this?

---

<div class="post-metadata">

**Author:** ![smd](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smd/32/19930_2.png) [@smd](https://root-forum.cern.ch/u/smd)\
**Post date:** [February 10, 2022, 8:06pm UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752/2 "2022-02-10T20:06:38Z")

</div>

It seems like there are other threads:

> [@Problem with root on macos: error: module 'Darwin' uses additional module map](https://root-forum.cern.ch/t/problem-with-root-on-macos-error-module-darwin-uses-additional-module-map/47443):
>
> Hi, I have ROOT 6.22/08, it has been working fine on macos Big Sur, now I updated to Monterey, updated Xcode, I had to install again the command line tools and now when I am running ROOT I get: Mareks-MacBook:~ marekwalczak$ root Desktop/test\_mid.root input\_line\_1:1:2: error: module 'Darwin' uses additional module map '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine.modulemap' used when the module was built #include \<new\> ^ input\_line\_1:1:2: note: imported by module 'st…

and

> [@ROOT 6.24/06 can not work on macOS Monterey](https://root-forum.cern.ch/t/root-6-24-06-can-not-work-on-macos-monterey/47409):
>
> Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293) ROOT Version: 6.24/06 Platform: macOS 12 Compiler: Not Provided Dear ROOT experts, I have updated my macOS to macOS 12. The ROOT was installed by Conda on my MacBook. After I activate my Conda environment, the ROOT can’t be opened successfully as usual. The log is in the attachment. Is ROOT incompatible with macOS Monterey? Or do I need to reinstall the ROOT? Best regards, Zhuolin [runRoot.txt](https://root-forum.cern.ch/uploads/short-url/jkmmTIr6VxgdDF0u9evsZkorjqe.txt) (5.1 KB)

perhaps someone can advise. See I have a previous version of ROOT install and it worked on MacOS 12.1 until I updated XCode. So is there a way to just use that build if I just reverted back to the older version of XCode?

---

<div class="post-metadata">

**Author:** ![smd](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smd/32/19930_2.png) [@smd](https://root-forum.cern.ch/u/smd)\
**Post date:** [February 10, 2022, 11:40pm UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752/3 "2022-02-10T23:40:42Z")

</div>

So it seems there’s no way to install any form of root on MacOS12.1 … is this correct?

In that case I installed the docker image…is it possible to use the docker image to look at data stored locally (I mean in a TBrowser or for analysis)?

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [February 11, 2022, 8:31am UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752/4 "2022-02-11T08:31:10Z")

</div>

Hi,  
Which version of ROOT are you trying to install ? I have the master branch and 6,.26 branch working on 12.1 and latest XCode. You need to make sure you start with a clean build and using system libraries. Otherwise you can also use binary builds nightly from [Index of /download/nightly](https://root.cern/download/nightly/)

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![smd](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/smd/32/19930_2.png) [@smd](https://root-forum.cern.ch/u/smd)\
**Post date:** [February 11, 2022, 3:43pm UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752/5 "2022-02-11T15:43:22Z")

</div>

Hi,

it was the latest version, from source. I tried several things and none worked (source, brew, latest binary) and none worked. I have XCode 13 (since 13.1 didnt work and one of the other threads suggested switching back) and MacOS12.1. I’d rather have it from source since I want to use minuit2 but its not essential, I can find another machine to work on if I need to use that. In the end I was able to get this version to work: [https://root.cern/download/root\_v6.24.06.macos-10.15-x86\_64-clang120.pkg](https://root.cern/download/root_v6.24.06.macos-10.15-x86_64-clang120.pkg) . I’m not sure why it worked and others didnt though.

Thanks,  
Sophie

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [February 25, 2022, 3:43pm UTC](https://root-forum.cern.ch/t/root-build-fail-on-macos-12-1/48752/6 "2022-02-25T15:43:34Z")

</div>

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