# Installation issues on MacOS

**URL:** <https://root-forum.cern.ch/t/installation-issues-on-macos/46479>\
**Category:** Newbie\
**Created:** [August 27, 2021, 5:18am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479 "2021-08-27T05:18:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RPaun](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rpaun/32/20683_2.png) [@RPaun](https://root-forum.cern.ch/u/RPaun)\
**Post date:** [August 27, 2021, 5:18am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479/1 "2021-08-27T05:18:21Z")

</div>

Hi all,

I’m having difficulty installing ROOT from source binaries on MacOS Big Sur 11.5.2. At some point, the installation crashes with these errors:

```auto
**_ [75%]**Generating G__Core.cxx, ../lib/Core.pcm**

**While building module 'Core':**

**While building module 'std' imported from input_line_1:1:**

**While building module 'Darwin' imported from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h:38:**

**In file included from <module-includes>:1073:**

**In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/include/ncurses.h:141:**

**/opt/local/include/unctrl.h:61:38:**  **error:** **cannot initialize a variable of type 'char *' with an lvalue of type 'char *(chtype)' (aka 'char *(unsigned int)')**

**NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);**

**^ ~~~~~~ **

**/opt/local/include/unctrl.h:61:61:**  **error:**  **expected ';' after top level declarator**

**NCURSES_EXPORT(NCURSES_CONST char *) NCURSES_SP_NAME(unctrl) (SCREEN*, chtype);**

**^**

**While building module 'Core':**

**While building module 'std' imported from input_line_1:1:**

**In file included from <module-includes>:2:**

**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ctype.h:38:15:**  **fatal error:**  **could not build module 'Darwin'**

**#include_next <ctype.h>**

** ~~~~~~~~~~~~~ ^**

**input_line_1:1:10:**  **fatal error:**  **could not build module 'std'**

**#include <new>**

** ~~~~~~~~ ^**

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

**While building module 'Core':**

**While building module 'Cling_Runtime' imported from input_line_2:1:**

**While building module 'Cling_Runtime_Extra' imported from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/Interpreter/RuntimeUniverse.h:27:**

**In file included from <module-includes>:1:**

**/Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/Interpreter/DynamicExprInfo.h:13:10:**  **fatal error:**  **could not build module 'std'**

**#include <string>**

** ~~~~~~~~ ^**

**/Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/Interpreter/RuntimeUniverse.h:27:10:**  **fatal error:**  **could not build module 'Cling_Runtime_Extra'**

**#include "cling/Interpreter/Visibility.h"**

** ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ **

**While building module 'Core':**

**While building module '_Builtin_intrinsics':**

**In file included from <module-includes>:2:**

**In file included from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/lib/clang/9.0.1/include/immintrin.h:18:**

**In file included from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/lib/clang/9.0.1/include/xmmintrin.h:27:**

**In file included from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/lib/clang/9.0.1/include/mm_malloc.h:13:**

**In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stdlib.h:93:**

**/Users/rpaun/Workspace/root/root-6.24.04/buildRoot/etc/cling/lib/clang/9.0.1/include/stdlib.h:8:15:**  **fatal error:**  **could not build module 'Darwin'**

**#include_next <stdlib.h>**

** ~~~~~~~~~~~~~ ^**

**-- clad build command succeeded. See also /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-build-*.log**

**75%]**Performing install step for 'clad'**

**[75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypedefInfo.cxx.o**

**While building module 'Core':**

**< cling interactive line includer >>>:** fatal error: **** could not build module '_Builtin_intrinsics'**

**Error: Module '_Builtin_intrinsics' failed to load.**

**While building module 'Core':**

**While building module 'ROOT_Rtypes' imported from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/Rtypes.h:23:**

**In file included from <module-includes>:1:**

**In file included from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/RtypesCore.h:23:**

**/Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/ROOT/RConfig.hxx:279:13:**  **fatal error:**  **could not build module 'Darwin'**

**# include <AvailabilityMacros.h>**

** ~~~~~~~~ ^**

**While building module 'Core':**

**While building module 'ROOT_Rtypes' imported from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/Rtypes.h:23:**

**While building module 'ROOT_Config' imported from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/RtypesCore.h:25:**

**In file included from <module-includes>:1:**

**In file included from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/RConfig.h:23:**

**/Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/ROOT/RConfig.hxx:279:13:**  **fatal error:**  **could not build module 'Darwin'**

**# include <AvailabilityMacros.h>**

** ~~~~~~~~ ^**

**-- clad install command succeeded. See also /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/interpreter/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-install-*.log**

**While building module 'Core':**

**While building module 'ROOT_Foundation_C' imported from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/Rtypes.h:29:**

**In file included from <module-includes>:1:**

**In file included from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/ThreadLocalStorage.h:58:**

**/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/stddef.h:45:15:**  **fatal error:**  **could not build module 'Darwin'**

**#include_next <stddef.h>**

** ~~~~~~~~~~~~~ ^**

**75%]**Completed 'clad'**

**While building module 'Core':**

**While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/Rtypes.h:195:**

**In file included from <module-includes>:2:**

**/Users/rpaun/Workspace/root/root-6.24.04/buildRoot/include/ROOT/RStringView.hxx:19:10:**  **fatal error:**  **could not build module 'std'**

**#include <string_view>**

** ~~~~~~~~ ^**

**Error: Error loading the default rootcling header files.**

**[75%] Built target clad**

**make[2]:*** [core/G__Core.cxx] Error 1**

**make[1]:*** [core/CMakeFiles/G__Core.dir/all] Error 2**

**make[1]:*** Waiting for unfinished jobs....**

**[75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingTypeInfo.cxx.o**

**[75%] Building CXX object core/metacling/src/CMakeFiles/MetaCling.dir/TClingValue.cxx.o**

**[75%] Built target MetaCling**

```

Any suggestions on how to fix this?  
Regards,  
Remus

_ROOT Version:_ 6.24.02  
_Platform:_ MacOS  
_Compiler:_ Cmake

* * *

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [August 27, 2021, 7:05am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479/2 "2021-08-27T07:05:41Z")

</div>

Just in case… have you done:

```auto
xcode-select --install

```

?

---

<div class="post-metadata">

**Author:** ![RPaun](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rpaun/32/20683_2.png) [@RPaun](https://root-forum.cern.ch/u/RPaun)\
**Post date:** [August 27, 2021, 7:54am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479/3 "2021-08-27T07:54:18Z")

</div>

I have not. Are you suggesting I install it through MacPorts?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [August 27, 2021, 8:16am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479/4 "2021-08-27T08:16:46Z")

</div>

This command is required to have a proper XCode installation. Just do it once from the terminal. I am not saying that’s the problem but for sure you need to do it.

---

<div class="post-metadata">

**Author:** ![RPaun](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rpaun/32/20683_2.png) [@RPaun](https://root-forum.cern.ch/u/RPaun)\
**Post date:** [August 27, 2021, 9:27am UTC](https://root-forum.cern.ch/t/installation-issues-on-macos/46479/5 "2021-08-27T09:27:30Z")

</div>

I installed it through macPorts. Worked so far. Thank you for your help.
