# Fatal error: cyclic dependency in module 'std': std -\> \_wctype -\> \_\_wctype -\> std (6.32.0.6 , MAC OS 15)

**URL:** <https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034>\
**Category:** ROOT\
**Created:** [October 28, 2024, 11:55am UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034 "2024-10-28T11:55:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [October 28, 2024, 11:55am UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/1 "2024-10-28T11:55:37Z")

</div>

Hello,

When building root 6.32.06 on MAC OS 15.0.1, after downloading the source tar.gz file, I encounter this error:

FAILED: core/G\_\_Core.cxx lib/Core.pcm etc etc  
While building module ‘\_\_wctype’ imported from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/\_wctype.h:36:  
In file included from :1:  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/\_\_\_wctype.h:72:10: fatal error: cyclic dependency in module ‘std’: std → \_wctype → \_\_wctype → std  
#include \<ctype.h\>  
^  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/\_wctype.h:36:10: fatal error: could not build module ‘\_\_wctype’  
#include \<\_types/\_wctrans\_t.h\>  
etc  
etc

From this thread:

> [@Cyclic dependency while installing Root 6.32.04 on MacOS 15 (MacBook Pro Intel)](https://root-forum.cern.ch/t/cyclic-dependency-while-installing-root-6-32-04-on-macos-15-macbook-pro-intel/61680):
>
> Hello, I have recently upgraded my system to Mac OS 15. I am re-installing the root from the source on this system (Macbook Pro Intel). However, I am getting this error: fatal error: cyclic dependency in module 'std': std -\> \_wctype -\> \_\_wctype -\> std #include \<ctype.h\> ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/usr/include/\_wctype.h:36:10: fatal error: could not build module '\_\_wctype' #include \<\_types/\_wctrans\_t.h\> May I k…

I had thought I should not see this problem with 6.32.06?

Thanks,

Mark

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [October 28, 2024, 11:58am UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/2 "2024-10-28T11:58:28Z")

</div>

From the thread you mention I only see that this should be fixed in 6.34.06, not 6.32.06, or did I miss something? @Danilo ?

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [October 28, 2024, 12:26pm UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/3 "2024-10-28T12:26:14Z")

</div>

It was typo in Danilo posts - 6.34.06 is not exists.

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [October 28, 2024, 12:27pm UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/4 "2024-10-28T12:27:31Z")

</div>

Oops! Sorry! Then @Danilo might take a look

---

<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:** [October 28, 2024, 1:47pm UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/5 "2024-10-28T13:47:59Z")

</div>

Hi Mark,

Could you confirm you have only one SDK installed on your system?  
(see e.g. [ROOT on macOS 15 / Xcode 16 - #8 by Danilo](https://root-forum.cern.ch/t/root-on-macos-15-xcode-16/61716/8) )

Cheers,  
Danilo

---

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [October 28, 2024, 2:11pm UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/6 "2024-10-28T14:11:51Z")

</div>

It seems I have many versions (which is odd, because I recall cleaning this up recently!)

ls /Library/Developer/CommandLineTools/SDKs  
MacOSX.sdk MacOSX12.1.sdk MacOSX12.3.sdk MacOSX12.sdk MacOSX14.5.sdk MacOSX14.sdk MacOSX15.0.sdk MacOSX15.sdk

So I assume I should be removing all the pre 15 ones?

Cheers,

Mark

---

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [October 28, 2024, 3:08pm UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/7 "2024-10-28T15:08:53Z")

</div>

Removing the older SDK does not solve the problem.

---

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [November 6, 2024, 9:27am UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/8 "2024-11-06T09:27:13Z")

</div>

Do you have a suggestion as to how to solve this?

Even after removing the command line tools, resetting Xcode-select and reinstalling the compilation of ROOT fails with the same issue:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/\_\_\_wctype.h:72:10: fatal error: cyclic dependency in module ‘std’: std → \_wctype → \_\_wctype → std

---

<div class="post-metadata">

**Author:** ![Mark\_C\_Hodgkinson](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mark_c_hodgkinson/32/23393_2.png) [@Mark\_C\_Hodgkinson](https://root-forum.cern.ch/u/Mark_C_Hodgkinson)\
**Post date:** [November 7, 2024, 11:45am UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/9 "2024-11-07T11:45:56Z")

</div>

I think I have finally got to the bottom of this. I inherited a build script from one of the Acts developers that they have been using some time ago, and it looks like this option caused the problem:

-DCMAKE\_CXX\_STANDARD=17

switching this to 20 allows my compilation to work 🙂

---

<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:** [November 21, 2024, 11:46am UTC](https://root-forum.cern.ch/t/fatal-error-cyclic-dependency-in-module-std-std-wctype-wctype-std-6-32-0-6-mac-os-15/62034/10 "2024-11-21T11:46:16Z")

</div>

Closed on November 21, 2024, 11:46am UTC

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