# Root on MAC M1 processor...does it work?

**URL:** <https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485>\
**Category:** Newbie\
**Created:** [April 20, 2021, 12:07pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485 "2021-04-20T12:07:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [April 20, 2021, 12:07pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/1 "2021-04-20T12:07:15Z")

</div>

Hello, I’m thinking to buy a MAC Book pro (I would definitely leave Windows, because even if I’ve an HP intel core i7 8th Gen 16GB RAM buyed 2 years ago, but since Windows updated it need 5-10minutes to load the windows!..I tried to format it some weeks ago, but it didn’t solve, then I’m fed up of Windows)

It would be my first mac…So I don’t have any idea about the Mac world! The Apple assistance said me to buy a M1 processor Mac Book Pro…  
then I would like to know

1. if ROOT works on M1 processor!
2. For physics software (Geant4, ROOT, MAthematica, etc ) is better a M1 processor MAc or a Intel 7 processor MAC?

BTW I know it isnt’ a ROOT question, but I also have on my windows Geant4, Matlab, Mathematica, if you have M1 processor Mac Book, do you know if they work?  
Thank you

---

<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:** [April 21, 2021, 11:53am UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/2 "2021-04-21T11:53:52Z")

</div>

There are still a couple of issues with software support for Apple’s M1 ARM, notably ROOT / llvm and exceptions. That’s really a terrible issue. For the rest it mostly works - you can always use the emulation layer if you cannot find an M1 port of a software.

The chip is certainly faster than the Intel generation used for macbook pros before; in that respect I can recommend it.

For any serious work I’d certainly recommend using Linux, though - there’s quite some choice for laptopts with Linux pre-installed, and even more so for laptops that have parts that Linux supports. And exceptions work, too, and you don’t get into the macOS security hassle of " I’m sorry Dave, I’m afraid I can’t let you run this program". I’d personally get a new AMD Ryzen mobile, plenty of RAM, Linux - that’s a **lot** of fun to work with!

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [April 21, 2021, 1:11pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/3 "2021-04-21T13:11:41Z")

</div>

Hello @Axel then do you think that ROOT works fine using Rosetta 2 on a M1 Macbook pro?

---

<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:** [April 28, 2021, 3:26pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/4 "2021-04-28T15:26:49Z")

</div>

I don’t have any experience with that, sorry!

---

<div class="post-metadata">

**Author:** ![faca87](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/f/b19c9b/32.png) [@faca87](https://root-forum.cern.ch/u/faca87)\
**Post date:** [April 30, 2021, 1:39pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/5 "2021-04-30T13:39:30Z")

</div>

Ok @Axel thank you. I think that I wait few month hoping that you can solve the issues and I will buy the mac

---

<div class="post-metadata">

**Author:** ![CuriousPeter](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/curiouspeter/32/25433_2.png) [@CuriousPeter](https://root-forum.cern.ch/u/CuriousPeter)\
**Post date:** [April 30, 2021, 5:04pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/6 "2021-04-30T17:04:59Z")

</div>

I have MacBook Air with M1 processor and from my experience there’s no problem with building and running ROOT natively on that machine without Rosetta 2. One has to build ROOT version with this [commit resolving some bug with M1](https://github.com/root-project/root/commit/f75a7c464b8b3f49b4ad1ae0e536d139235863d2) and use those options for cmake:

```auto
cmake -Dbuiltin_gsl=ON -Dbuiltin_glew=ON -Dmathmore=ON -Dimt=OFF -Dbuiltin_tbb=OFF <source_dir>

```

So, I see no problems with ROOT on M1 machines given that you build it yourself.  
Haven’t tested Geant4 or Mathematica though.

@Axel

> There are still a couple of issues with software support for Apple’s M1 ARM, notably ROOT / llvm and exceptions. That’s really a terrible issue.

Can you please elaborate a little bit on that or provide a link to the corresponding issue?  
Because I’m aware only of the issue with computing the correct ABI in arm and it was resolved in the commit mentioned above.

---

<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:** [April 30, 2021, 6:19pm UTC](https://root-forum.cern.ch/t/root-on-mac-m1-processor-does-it-work/44485/7 "2021-04-30T18:19:19Z")

</div>

Hi @CuriousPeter,

> [@CuriousPeter](#):
>
> Can you please elaborate a little bit on that or provide a link to the corresponding issue?  
> Because I’m aware only of the issue with computing the correct ABI in arm and it was resolved in the commit mentioned above.

Here is a link to the corresponding [GH issue #7541](https://github.com/root-project/root/issues/7541). AFAIK, exception handling for the M1 is work in progress in upstream LLVM.

Cheers,  
J.
