# Segmentation Violation Error When Initializing ROOT on macOS

**URL:** <https://root-forum.cern.ch/t/segmentation-violation-error-when-initializing-root-on-macos/61720>\
**Category:** ROOT\
**Created:** [September 19, 2024, 1:54pm UTC](https://root-forum.cern.ch/t/segmentation-violation-error-when-initializing-root-on-macos/61720 "2024-09-19T13:54:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emachiamu](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/emachiamu/32/37675_2.png) [@emachiamu](https://root-forum.cern.ch/u/emachiamu)\
**Post date:** [September 19, 2024, 1:54pm UTC](https://root-forum.cern.ch/t/segmentation-violation-error-when-initializing-root-on-macos/61720/1 "2024-09-19T13:54:42Z")

</div>

Hello,  
I’m experiencing issues with ROOT on my Mac. Previously, ROOT was working fine, but now it fails to initialize. I’ve tried updating Homebrew, ROOT, and Xcode multiple times, but the problem persists.  
When trying to run ROOT, I encounter the following error:

[Error log starts here]  
input\_line\_1:1:10: remark: building module ‘std’ as ‘/usr/local/Cellar/root/6.32.04/lib/root/std.pcm’ [-Rmodule-build]  
#include   
^  
[… truncated for brevity …]  
\*\*\* Break \*\*\* segmentation violation  
[/usr/lib/system/libsystem\_platform.dylib] \_sigtramp (no debug info)  
[] (no debug info)  
[… truncated for brevity …]  
[/usr/local/Cellar/root/6.32.04/bin/root.exe] main (no debug info)  
[/usr/lib/dyld] start (no debug info)  
[Error log ends here]

The error seems to involve cyclic dependencies in modules and issues with building the ‘std’ module. It also mentions problems with files in Xcode’s SDK directory.  
Could you please advise on how to resolve this issue? Are there any known conflicts with recent macOS or Xcode updates that might be causing this problem?

Thank you for your help Ü  
Emanuele

---

<div class="post-metadata">

**Author:** ![Danilo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/danilo/32/34528_2.png) [@Danilo](https://root-forum.cern.ch/u/Danilo)\
**Post date:** [September 19, 2024, 1:55pm UTC](https://root-forum.cern.ch/t/segmentation-violation-error-when-initializing-root-on-macos/61720/2 "2024-09-19T13:55:34Z")

</div>

Dear Emanuele,

Thanks for the post and welcome to the ROOT Community!  
I am sorry ROOT stopped working for you, probably after moving to macos15 or the newest CLT. You may find this topic informative: [ROOT on macOS 15 / Xcode 16 - #8 by Danilo](https://root-forum.cern.ch/t/root-on-macos-15-xcode-16/61716/8)

There is a description of the current status of ROOT and a potential workaround which could unblock you today while you wait for the forthcoming 6.32 release.

Cheers,  
Danilo

---

<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:** [October 3, 2024, 1:56pm UTC](https://root-forum.cern.ch/t/segmentation-violation-error-when-initializing-root-on-macos/61720/3 "2024-10-03T13:56:11Z")

</div>

Closed on October 3, 2024, 1:56pm UTC

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