# Cannot compile ROOT at MACOS Catalina

**URL:** <https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624>\
**Category:** ROOT\
**Created:** [March 30, 2020, 12:09pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624 "2020-03-30T12:09:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [March 30, 2020, 12:09pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/1 "2020-03-30T12:09:15Z")

</div>

root 6.18.04, 6.20.02  
MACOS 10.15.2  
Xcode 11.4

Dear colleagues,

during compilation

I have a problem, it seems, with headers:

```auto
In file included from /Applications/HEPsoft/root_6.2/include/TMathBase.h:32:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error:
      no member named 'isless' in the global namespace
using ::isless;

```

etc.

I found that this problem was reported a few months ago but was fixed in the last versions of ROOT. What I’m doing wrong?

---

<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:** [March 30, 2020, 12:16pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/2 "2020-03-30T12:16:34Z")

</div>

Is it the latest version of Xcode?

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [March 30, 2020, 12:29pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/3 "2020-03-30T12:29:36Z")

</div>

Yes, version 11.4 (11E146).

---

<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:** [March 30, 2020, 12:31pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/4 "2020-03-30T12:31:11Z")

</div>

So maybe a MacOS user (@couet @Axel) could have an idea?

---

<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:** [March 30, 2020, 2:09pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/5 "2020-03-30T14:09:33Z")

</div>

I have :  
MacOS 10.15.3  
Xcode 11.3.1

And I do not see this problem

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [March 30, 2020, 2:23pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/6 "2020-03-30T14:23:13Z")

</div>

I believe 😄  
But it doesn’t solve my problem

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [March 31, 2020, 8:02am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/7 "2020-03-31T08:02:02Z")

</div>

I tested the issue with different versions of cmake - 3.15 and 3.17 from homebrew - the same problem …

---

<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:** [March 31, 2020, 11:21am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/8 "2020-03-31T11:21:26Z")

</div>

As you have a new version of Xcode may be you need to do:

```auto
$ xcode-select --install

```

?

@Axel should know better.

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [March 31, 2020, 11:33am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/9 "2020-03-31T11:33:50Z")

</div>

Of course it was done already…

---

<div class="post-metadata">

**Author:** ![Valerio\_Vagelli](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/valerio_vagelli/32/21175_2.png) [@Valerio\_Vagelli](https://root-forum.cern.ch/u/Valerio_Vagelli)\
**Post date:** [April 2, 2020, 11:31am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/10 "2020-04-02T11:31:17Z")

</div>

Dear all,  
I am experiencing a very similar problem, as already communicated in the following topic

> [@Compile ROOT 6.20.00 on Catilina 10.15](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345):
>
> \_ROOT Version: root-6.20.00 \_Platform: macOS Catilina 10.15.3 \_Compiler: Apple clang version 11.0.0 (clang-1100.0.33.17) Hi, I’m tying to compile ROOT v6.20.00 on a Catilina 10.15.3 os. According to this post this version should have fixed the location in which cling looks for headers. However, the result of issueing ~\> cmake -DCMAKE\_CXX\_STANDARD=14 …/root-6.20.00 is [omissis] – Clang version: 5.0.0 – Cling version (from VERSION file): ROOT\_0.7~dev – Cling will look for C++ he…

The issue could be related.  
As for aguskov, I am using the latest 11.4 (11E146) version of Xcode  
Thank you for any suggestions!  
Bests  
Valerio

---

<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:** [April 16, 2020, 11:31am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/11 "2020-04-16T11:31:18Z")

</div>

Closed on April 16, 2020, 11:31am UTC

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

---

<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 23, 2020, 9:44am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/12 "2020-04-23T09:44:54Z")

</div>

Are you building your own binary? If so, how? Or do you see this when building ROOT itself?

---

<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 23, 2020, 7:12pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/13 "2020-04-23T19:12:02Z")

</div>

Opened on April 23, 2020, 7:12pm UTC



---

<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 23, 2020, 7:13pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/14 "2020-04-23T19:13:10Z")

</div>

From Alexey (before I reopened the topic):

> No, I have this problem in compilation ROOT itself.  
> And I still have it with the last Xcode.

That’s really curious. Could you share your CMakeCache.txt, please?

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [April 23, 2020, 7:16pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/15 "2020-04-23T19:16:46Z")

</div>

[https://cernbox.cern.ch/index.php/s/EPo6m5c8osj6Luo](https://cernbox.cern.ch/index.php/s/EPo6m5c8osj6Luo)

---

<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 24, 2020, 12:23pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/16 "2020-04-24T12:23:18Z")

</div>

Thanks.

Can you invoke `make Core VERBOSE=1 > foraxel.txt 2>&1` and post `foraxel.txt`, please?

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [April 24, 2020, 12:40pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/17 "2020-04-24T12:40:22Z")

</div>

[https://cernbox.cern.ch/index.php/s/Y20Exr1kZrYezEO](https://cernbox.cern.ch/index.php/s/Y20Exr1kZrYezEO)

Best regards.  
Alexey

---

<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 24, 2020, 1:59pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/18 "2020-04-24T13:59:08Z")

</div>

OK thanks. Can you send `~/out.txt` from:

```auto
cd /Users/aguskov/Downloads/test/core/base && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -I/Users/aguskov/Downloads/root-6.20.04/core/base/res -I/Users/aguskov/Downloads/root-6.20.04/core/base/../foundation/res -I/Users/aguskov/Downloads/root-6.20.04/core/base/inc -I/Users/aguskov/Downloads/test/include -I/usr/local/include -std=c++11 -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++ -O2 -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -fPIC -std=c++11 -E /Users/aguskov/Downloads/root-6.20.04/core/base/src/String.cxx > ~/out.txt 2>&1

```

Thanks!

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [April 24, 2020, 2:20pm UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/19 "2020-04-24T14:20:41Z")

</div>

[https://cernbox.cern.ch/index.php/s/Yv0l1bjHMfc2ws4](https://cernbox.cern.ch/index.php/s/Yv0l1bjHMfc2ws4)

Best regards.  
Alexey

---

<div class="post-metadata">

**Author:** ![aguskov](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/278dde/32.png) [@aguskov](https://root-forum.cern.ch/u/aguskov)\
**Post date:** [April 30, 2020, 12:58am UTC](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624/20 "2020-04-30T00:58:40Z")

</div>

Is any chance to solve the problem?

[Next page](https://root-forum.cern.ch/t/cannot-compile-root-at-macos-catalina/38624.md?page=2)
