# Compilation Issue Installing OpenMC on MacBook Pro (Apple M4 Max)

**URL:** <https://openmc.discourse.group/t/compilation-issue-installing-openmc-on-macbook-pro-apple-m4-max/5367>\
**Category:** User Support\
**Created:** [March 26, 2025, 4:50am UTC](https://openmc.discourse.group/t/compilation-issue-installing-openmc-on-macbook-pro-apple-m4-max/5367 "2025-03-26T04:50:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdoiz](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@abdoiz](https://openmc.discourse.group/u/abdoiz)\
**Post date:** [March 26, 2025, 4:50am UTC](https://openmc.discourse.group/t/compilation-issue-installing-openmc-on-macbook-pro-apple-m4-max/5367/1 "2025-03-26T04:50:23Z")

</div>

![Screenshot 2025-03-26 at 04.18.16](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/d/d6e46d48ab2f00f17d8408161741cf472c4dd9cb.png)  
 ![Screenshot 2025-03-26 at 04.24.57](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/1/1aff9cbf9b11656ddc00a5266cacb4da748b237b.png)  
 ![Screenshot 2025-03-26 at 04.29.29](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/7/7b37d9279ccd7e0ee05fb9984f3c5e5484c7510b.jpeg)  
 ![Screenshot 2025-03-26 at 04.29.43](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/e/ef36a30cc940c9a9920f1a67232f14d7c497f6a0.jpeg)  
 ![Screenshot 2025-03-26 at 04.30.00](https://global.discourse-cdn.com/free1/uploads/openmc/original/2X/e/e339b9778ef7c8de7901234bab1877ae5722896e.jpeg)

Hi everyone,

I’m having trouble installing OpenMC from source on my MacBook. I’ve tried multiple versions, but I keep running into the same issue (see attached screenshots).

Has anyone faced a similar problem or knows how to fix it? Any help would be greatly appreciated!

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![antigrav](https://avatars.discourse-cdn.com/v4/letter/a/74df32/32.png) [@antigrav](https://openmc.discourse.group/u/antigrav)\
**Post date:** [March 31, 2025, 6:10pm UTC](https://openmc.discourse.group/t/compilation-issue-installing-openmc-on-macbook-pro-apple-m4-max/5367/2 "2025-03-31T18:10:37Z")

</div>

I had the same problem, and fixed it with:  
brew install llvm --HEAD

This was a few weeks ago, and HEAD is unstable so it might not work today…
