# Doubt with ROOT and M1 Mac

**URL:** <https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467>\
**Category:** Newbie\
**Created:** [November 26, 2020, 11:34am UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467 "2020-11-26T11:34:42Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![VicenteGT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vicentegt/32/24097_2.png) [@VicenteGT](https://root-forum.cern.ch/u/VicenteGT)\
**Post date:** [November 26, 2020, 11:34am UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/1 "2020-11-26T11:34:42Z")

</div>

Hi,

I just started my PhD in Nuclear Physics and I’m thinking about buy a new pc, like the new Mac, but I’m not sure if ROOT actually work for OS11 Big Sur with M1 processor.

All info related to that will help. Thanks!

Vicente.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [November 26, 2020, 12:36pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/2 "2020-11-26T12:36:28Z")

</div>

Hi Vincente,  
We already test Big Sur in our continuous integration and we had early access to Apple ARM (M1), so ROOT is definitely supported there. No worries!

cc: @Axel

---

<div class="post-metadata">

**Author:** ![VicenteGT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vicentegt/32/24097_2.png) [@VicenteGT](https://root-forum.cern.ch/u/VicenteGT)\
**Post date:** [November 26, 2020, 1:22pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/3 "2020-11-26T13:22:15Z")

</div>

Cool @oshadura ! I will probably buy it soon then.

Is there any special way to install ROOT in Big Sur Apple ARM (M1)? As I don’t see any installation file or tutorial at main ROOT website. I supose that PyROOT is supported too, Am I right?

Thank you very much for your answer!

---

<div class="post-metadata">

**Author:** ![beojan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/beojan/32/19432_2.png) [@beojan](https://root-forum.cern.ch/u/beojan)\
**Post date:** [November 26, 2020, 1:28pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/4 "2020-11-26T13:28:06Z")

</div>

You might want to check if your institute will be issuing you a machine before you rush to buy one yourself.

---

<div class="post-metadata">

**Author:** ![VicenteGT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vicentegt/32/24097_2.png) [@VicenteGT](https://root-forum.cern.ch/u/VicenteGT)\
**Post date:** [November 26, 2020, 1:40pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/5 "2020-11-26T13:40:27Z")

</div>

Thanks for your answer @beojan . I’m actually using a relatively new Desktop-PC with Linux in my institute but due to the actual covid scenario I have to work from home several days and I don’t have laptop. I don’t think that my institute will buy me a laptop and also I prefer to buy one that belongs to me and that I could use it after finish my PhD.

Anyway I could ask them for a laptop, but I would like to be sure that everything will work properly before suggest them to buy me a Mac.

Vicente.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [December 8, 2020, 3:02pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/6 "2020-12-08T15:02:59Z")

</div>

Hi,  
@Axel lets me know that Big Sur and M1 are supported in ROOT v6.22/06 and later, but you will have to build with `-Dtbb=OFF` because Intel’s TBB still does not work out of the box.

Hope this helps!  
Enrico

---

<div class="post-metadata">

**Author:** ![Ning\_Yu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ning_yu/32/24295_2.png) [@Ning\_Yu](https://root-forum.cern.ch/u/Ning_Yu)\
**Post date:** [December 13, 2020, 12:48am UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/7 "2020-12-13T00:48:15Z")

</div>

You can install root through miniconda3 or conda3. I have tested it. It runs very well.

---

<div class="post-metadata">

**Author:** ![Patrick\_Dunne](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/patrick_dunne/32/24356_2.png) [@Patrick\_Dunne](https://root-forum.cern.ch/u/Patrick_Dunne)\
**Post date:** [December 17, 2020, 7:12pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/8 "2020-12-17T19:12:23Z")

</div>

A full recipe for any of these would be appreciated. I’m getting an error when building from source about truetype fonts being built for macos-x64 but the target being macos-arm64

I am using the -Dtbb=OFF that is recommended above

---

<div class="post-metadata">

**Author:** ![Patrick\_Dunne](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/patrick_dunne/32/24356_2.png) [@Patrick\_Dunne](https://root-forum.cern.ch/u/Patrick_Dunne)\
**Post date:** [December 17, 2020, 9:02pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/9 "2020-12-17T21:02:24Z")

</div>

The successful recipe I found is as follows:  
Install xcode developer tools by running: xcode-select --install  
Install the open source miniconda package mambaforge using the macosx-arm64 installer here: [https://github.com/conda-forge/miniforge/releases](https://github.com/conda-forge/miniforge/releases)  
restart your terminal  
Run: conda install root  
Done

---

<div class="post-metadata">

**Author:** ![VicenteGT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vicentegt/32/24097_2.png) [@VicenteGT](https://root-forum.cern.ch/u/VicenteGT)\
**Post date:** [December 22, 2020, 11:42am UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/10 "2020-12-22T11:42:17Z")

</div>

As @Patrick_Dunne said, with xcode terminal tools we can install root through mambaforge with conda package manager and it works perfectly. I actually tested PyROOT and some simple scripts and also work.

Right now im testing the same but using Anaconda, because I want to use Spyder visual interface for some programs with a lot of variables. But it seems that Spyder don’t work very well on new ARM Macs through Anaconda (but it work perfectly when used out of Anaconda, sadly we loose ROOT with spyder, as it is installed as Anaconda package).

Thanks all for your help!

---

<div class="post-metadata">

**Author:** ![Bayes27](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b3f665/32.png) [@Bayes27](https://root-forum.cern.ch/u/Bayes27)\
**Post date:** [December 22, 2020, 2:52pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/11 "2020-12-22T14:52:30Z")

</div>

Thanks eguiraud, I have one of these new processors and this error appeared to me when compiling from source. I wonder if the community will have a precompiled version for M1 processors ready to download in near future.

Best regards,  
Jose A.

Edit: For me worked **cmake -Dimt=OFF -Dbuiltin\_tbb=OFF path-to-source** inside the build directory, then **cmake --build .** , everything seems fine. Sourcing thisroot.sh completes the set up.

---

<div class="post-metadata">

**Author:** ![VicenteGT](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vicentegt/32/24097_2.png) [@VicenteGT](https://root-forum.cern.ch/u/VicenteGT)\
**Post date:** [January 1, 2021, 6:30pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/12 "2021-01-01T18:30:19Z")

</div>

I’ll write down here the configuration that works for me as update of my last post. Maybe it’s useful for someone that wants to use spyder with PyROOT.

After install mambaforge and root using conda, I installed standalone spyder from [here](https://github.com/spyder-ide/spyder/releases/latest/download/Spyder.dmg). Once I have mambaforge (with root) and Spyder the way to link them is: Spyder \> Preferences \> Python Interpreter \> Select the following python interpreter: /Users/your\_user/mambaforge/bin/python3.9

After that you will have an issue when Spyder open, something about spyder-kernels is missing in your selected python eviroment. Solve that is really easy, just go to Applications Folder on your Mac, find Spyder.app then control+click and show package content, then go to: Contents/Resources/lib/python3.9/ there find “spyder\_kernels” folder and copy it to your ~/ (home directory).

Once you have that folder there, just start spyder and it will find by default the kerners that you just set in your home directory. And everything should work perfectly. At least it work for me with MacBook Pro M1 with Big Sur 11.1.

Hope that helps you while we wait for future Anaconda updates. Happy New Year!

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [January 1, 2021, 6:36pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/13 "2021-01-01T18:36:27Z")

</div>

Thanks for sharing, @VicenteGT! Happy 2021!

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![Deon\_Evangeline](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/deon_evangeline/32/24662_2.png) [@Deon\_Evangeline](https://root-forum.cern.ch/u/Deon_Evangeline)\
**Post date:** [January 25, 2021, 5:10pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/14 "2021-01-25T17:10:52Z")

</div>

> [@Patrick\_Dunne](#):
>
> The successful recipe I found is as follows:  
> Install xcode developer tools by running: xcode-select --install  
> Install the open source miniconda package mambaforge using the macosx-arm64 installer here: [conda-forge · GitHub](https://github.com/conda-forge/)[work time](https://www.worktime.com/)[/miniforge/releases](https://github.com/conda-forge/miniforge/releases)
> 
> > restart your terminal  
> > Run: conda install root

thanks, now I will try to test it!

---

<div class="post-metadata">

**Author:** ![granadomarc](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/granadomarc/32/28736_2.png) [@granadomarc](https://root-forum.cern.ch/u/granadomarc)\
**Post date:** [February 11, 2022, 6:26pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/15 "2022-02-11T18:26:57Z")

</div>

I had already installed Miniforge3 because I needed some other Python environments and it worked fine so far. However, I tried your way and it doesn’t leave any error message during the installation but if later on I try to run root or import pyroot form there it gives the following error:

**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

**^**

**input\_line\_1:1:2: note:** imported by module ‘std’ in ‘/Users/marcgranadogonzalez/miniforge3/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 ‘/Users/marcgranadogonzalez/miniforge3/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 ‘/Users/marcgranadogonzalez/miniforge3/lib/Cling\_Runtime\_Extra.pcm’

**input\_line\_2:1:2: note:** imported by module ‘Cling\_Runtime’ in ‘/Users/marcgranadogonzalez/miniforge3/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 ‘/Users/marcgranadogonzalez/miniforge3/lib/Darwin.pcm’ is out of date and needs to be rebuilt**

And then a long list of modules that failed to load. Any tips on that?

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 14, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/16 "2022-02-14T16:19:06Z")

</div>

Please don’t resurrect old posts. [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) might help in your case

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 14, 2022, 4:19pm UTC](https://root-forum.cern.ch/t/doubt-with-root-and-m1-mac/42467/17 "2022-02-14T16:19:11Z")

</div>


