# Compile ROOT 6.20.00 on Catilina 10.15

**URL:** <https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345>\
**Category:** Newbie\
**Created:** [March 10, 2020, 5:54pm UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345 "2020-03-10T17:54:26Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [March 10, 2020, 5:54pm UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/1 "2020-03-10T17:54:27Z")

</div>

* * *

\_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

> [@Root catalina bug report](https://root-forum.cern.ch/t/root-catalina-bug-report/36693):
>
> Please read [tips for efficient and successful posting](https://root-forum.cern.ch/t/tips-for-efficient-and-successful-posting/28292) and [posting code](https://root-forum.cern.ch/t/posting-code-read-this-first/28293) \_ROOT Version:6.18.04 \_Platform: Mac OS X catalina \_Compiler: system default clang #include in aa.cpp running program with debug mode cause header error(see below). root aa.cpp++g however without debug mode is OK. Is it a bug? /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:314:9: error: no member named 'signbit' in the global namespace using ::signbit…

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++ headers in ‘/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/…/include/c++/v1’ at runtime.  
– And if not found, will invoke: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ ’ for them.  
[omissis]

This turns out to an error when ROOT is compiled.

Could you please indicate me how can I correctly instruct cling to search for headers in the folder

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include

that should be the correct one?

Thank you very much for your help.

Best regards,

Valerio

---

<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:** [March 10, 2020, 7:53pm UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/2 "2020-03-10T19:53:51Z")

</div>

Hi Valerio,

Welcome to the forum! Could you share the exact error message you get during the build?

Cheers, Axel

---

<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:** [March 11, 2020, 9:10am UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/3 "2020-03-11T09:10:15Z")

</div>

Dear Axel,  
please find in attachment the resulting log files.  
Thank you very much for your prompt interest!

If helpful, during the compilation the following env was set:  
CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include

Bests  
Valerio

[cmake.txt](https://root-forum.cern.ch/uploads/short-url/yLdSe2ZA9f42UA9vRvs3Outrr4X.txt) (13.9 KB) [rootbuild.txt](https://root-forum.cern.ch/uploads/short-url/3fiGwKmJzob2FLFjKIT62d1rw7o.txt) (763.2 KB)

---

<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:** [March 18, 2020, 11:05am UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/4 "2020-03-18T11:05:57Z")

</div>

I also imagine this could possibly be related of my local environment.  
Is anyone else experiencing the same problem?  
Thanks for the support!  
Bests  
Valerio

---

<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:** [June 3, 2020, 1:33pm UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/5 "2020-06-03T13:33:53Z")

</div>

@Axel according to your experience, do you think that this could be a problem related to my environment, or it regards some compatibility issue that may be solved in future releases?  
Thank you!

---

<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:** [June 3, 2020, 2:15pm UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/6 "2020-06-03T14:15:17Z")

</div>

Hi Valerio,  
Ouch, sorry for not following up on this, and thanks for pinging me! So first of all: `curl -O https://root.cern/download/root_v6.20.04.macosx64-10.15-clang110.pkg` should give you a package that you can just install, instead of having to build ROOT yourself. Now - if you _want_ to build ROOT yourself nonetheless then please provide the output of running `xcode-select -p` at a terminal; can you upload your `CMakeCache.txt`; can you run `make VERBOSE=1 > make.log 2>&1` and upload `make.log`?  
Cheers, Axel.

---

<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:** [June 3, 2020, 6:59pm UTC](https://root-forum.cern.ch/t/compile-root-6-20-00-on-catilina-10-15/38345/7 "2020-06-03T18:59:10Z")

</div>

Dear Axel,  
thank you very much for taking your time on this!  
Indeed, I would need to build ROOT for compatibility with other library, that depend on ROOT.

This time I’ve tried to compile ROOT 6.20.04, as I still get the same error.

Following are the information you have requested

```auto
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer

```

in attachment, the CMakeCache file  
and at this link [https://cernbox.cern.ch/index.php/s/xRtlG8uQIwjAzGW](https://cernbox.cern.ch/index.php/s/xRtlG8uQIwjAzGW) the make.log

Thank you very much for your feedback!

Best

Valerio

[CMakeCache.txt](https://root-forum.cern.ch/uploads/short-url/4g0NqnwlxmJQjZ8PDiubZAWFLjn.txt) (125.5 KB)
