# ROOT Compilation failed with Mac OS Catalina

**URL:** <https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595>\
**Category:** ROOT\
**Created:** [October 30, 2019, 7:33pm UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595 "2019-10-30T19:33:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sarajesmin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sarajesmin/32/20079_2.png) [@sarajesmin](https://root-forum.cern.ch/u/sarajesmin)\
**Post date:** [October 30, 2019, 7:33pm UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/1 "2019-10-30T19:33:13Z")

</div>

\_\_\_I get a compilation error below,

```auto
CMake Error at /Users/sara/work/root-6.18.04/obj/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-RelWithDebInfo.cmake:49 (message):
  Command failed: 2

   '/Library/Developer/CommandLineTools/usr/bin/make'

  See also

   /Users/sara/work/root-6.18.04/obj/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-*.log

make[2]: *** [builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build] Error 1
make[1]: *** [builtins/davix/CMakeFiles/DAVIX.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

```

What is the reason for this error, I cannot find out!

_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:_ v6.18.04  
_Platform:_ Mac OS 10.15 Catalina  
_Compiler:_ Apple clang version 11.0.0

* * *

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [November 4, 2019, 7:27am UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/2 "2019-11-04T07:27:45Z")

</div>

Hi Sara,

I guess we didn’t have time yet to adapt to all the changes that catalina brought. @Axel, opinions?

---

<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:** [November 4, 2019, 9:44am UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/3 "2019-11-04T09:44:37Z")

</div>

Hi Sara,

I thought I had fixed that ☹ The master is certainly working on Catalina, so you could consider taking that, as you seem to not be afraid to build from source 🙂

I will let you know later about the expected status of v6.18/04 wrt Catalina. Could you nonetheless post `/Users/sara/work/root-6.18.04/obj/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-*.log`

Cheers, Axel

---

<div class="post-metadata">

**Author:** ![sarajesmin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sarajesmin/32/20079_2.png) [@sarajesmin](https://root-forum.cern.ch/u/sarajesmin)\
**Post date:** [November 4, 2019, 1:42pm UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/4 "2019-11-04T13:42:20Z")

</div>

@StephanH & @Axel, Thank you for the reply!

I compiled ROOT again with the master. Still getting the same error. Below is the `/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-build-*.log`

````auto
                    range->start);
                    ^ ~~~~~~~~~~~
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_basic.c:213:21: warning: format specifies type 'long' but the argument has type 'ne_off_t' (aka 'long long') [-Wformat]
                    range->start, range->end);
                    ^ ~~~~~~~~~~~
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_basic.c:213:35: warning: format specifies type 'long' but the argument has type 'ne_off_t' (aka 'long long') [-Wformat]
                    range->start, range->end);
                                  ^ ~~~~~~~~~
3 warnings generated.
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_locks.c:116:12: warning: missing field 'name' initializer [-Wmissing-field-initializers]
    { NULL }
           ^
1 warning generated.
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_request.c:341:25: warning: format specifies type 'long' but the argument has type 'ne_off_t' (aka 'long long') [-Wformat]
                        req->body.file.offset);
                        ^ ~~~~~~~~~~~~~~~~~~~~
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_request.c:504:70: warning: format specifies type 'long' but the argument has type 'ne_off_t' (aka 'long long') [-Wformat]
    ne_print_request_header(req, "Content-Length", "%" FMT_NE_OFF_T, length);
                                                    ~~~~~~~~~~~~~~~^~~~~~
2 warnings generated.
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_socket.c:632:8: warning: implicit declaration of function 'writev' is invalid in C99 [-Wimplicit-function-declaration]
        ret = writev(sock->fd, vec, count);
              ^
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_socket.c:1990:34: warning: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'unsigned int *' [-Wincompatible-pointer-types]
        SSL_SESSION_get_id(sess, buflen);
                                 ^ ~~~~~
/Users/sara/work/root/obj/builtins/openssl/OPENSSL-prefix/include/openssl/ssl.h:2232:55: note: passing argument to parameter 'len' here
                                        unsigned int *len);
                                                      ^
2 warnings generated.
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/auth/davix_openssl.cpp:22:
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/./davix_internal.hpp:27:
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX-build/src/davix_internal_config.hpp:9:
/usr/local/include/pthread.h:331:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if !_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT
     ^
/usr/local/include/pthread.h:200:2: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
        defined(SWIFT_CLASS_EXTRA) && (!defined(SWIFT_SDK_OVERLAY_PTHREAD_EPOCH) || (SWIFT_SDK_OVERLAY_PTHREAD_EPOCH < 1))
        ^
/usr/local/include/pthread.h:331:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
/usr/local/include/pthread.h:200:34: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
        defined(SWIFT_CLASS_EXTRA) && (!defined(SWIFT_SDK_OVERLAY_PTHREAD_EPOCH) || (SWIFT_SDK_OVERLAY_PTHREAD_EPOCH < 1))
                                        ^
/usr/local/include/pthread.h:540:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if !_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT
     ^
/usr/local/include/pthread.h:200:2: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
        defined(SWIFT_CLASS_EXTRA) && (!defined(SWIFT_SDK_OVERLAY_PTHREAD_EPOCH) || (SWIFT_SDK_OVERLAY_PTHREAD_EPOCH < 1))
        ^
/usr/local/include/pthread.h:540:6: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
/usr/local/include/pthread.h:200:34: note: expanded from macro '_PTHREAD_SWIFT_IMPORTER_NULLABILITY_COMPAT'
        defined(SWIFT_CLASS_EXTRA) && (!defined(SWIFT_SDK_OVERLAY_PTHREAD_EPOCH) || (SWIFT_SDK_OVERLAY_PTHREAD_EPOCH < 1))
                                        ^
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_xml.c:173:1: warning: missing field 'externalSubset' initializer [-Wmissing-field-initializers]
};
^
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_xml.c:341:59: warning: passing 'const char *const *' to parameter of type 'const char **' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
                                  elm->nspace, elm->name, PASS_ATTS(atts));
                                                          ^ ~~~~~~~~~~~~~~
/Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/deps/libneon/src/ne_xml.c:179:25: note: expanded from macro 'PASS_ATTS'
#define PASS_ATTS(atts) (atts ? (const char **)(atts) : empty_atts)
                        ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/auth/davix_openssl.cpp:22:
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/./davix_internal.hpp:53:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:314:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:315:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;

      ~~^
2 warnings generated.
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:316:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
/usr/local/include/math.h:749:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/auth/davix_openssl.cpp:22:
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/./davix_internal.hpp:53:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:320:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
using ::isgreater;
      ^~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:728:29: note: '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/auth/davix_openssl.cpp:22:
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/./davix_internal.hpp:53:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:321:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
using ::isgreaterequal;
      ^~
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/functional:757:29: note: '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/auth/davix_openssl.cpp:22:
In file included from /Users/sara/work/root/obj/builtins/davix/DAVIX-prefix/src/DAVIX/src/./davix_internal.hpp:53:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isless' in the global namespace
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:323:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:324:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
4 warnings and 13 errors generated.
make[5]: *** [src/CMakeFiles/libdavix_static.dir/auth/davix_openssl.cpp.o] Error 1
make[4]: *** [src/CMakeFiles/libdavix_static.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libneon.a(ne_ntlm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libneon.a(ne_sspi.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libneon.a(ne_ntlm.c.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libneon.a(ne_sspi.c.o) has no symbols```
````

---

<div class="post-metadata">

**Author:** ![s\_manthey](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/s_manthey/32/20137_2.png) [@s\_manthey](https://root-forum.cern.ch/u/s_manthey)\
**Post date:** [November 4, 2019, 8:39pm UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/5 "2019-11-04T20:39:56Z")

</div>

Hi Alex,

I get the same error message as Sara. I would be very grateful if you could tell me an alternative way to build ROOT that worked, like the master you mention. I’m not very experienced, is there any step by step guide? Thanks in advance!

Cheers, Sergio

---

<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:** [November 8, 2019, 11:21am UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/6 "2019-11-08T11:21:40Z")

</div>

Hi,

Which version of the command line tools do you have - what does `clang --version` say?

How does [https://root.cern/download/nightly/root\_v6.18.99.macosx64-10.15-clang110.pkg](https://root.cern/download/nightly/root_v6.18.99.macosx64-10.15-clang110.pkg) work for you?

Axel.

---

<div class="post-metadata">

**Author:** ![sarajesmin](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sarajesmin/32/20079_2.png) [@sarajesmin](https://root-forum.cern.ch/u/sarajesmin)\
**Post date:** [November 12, 2019, 5:18pm UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/7 "2019-11-12T17:18:06Z")

</div>

ROOT from master (latest version V6.19.01) worked for me.  
I did cmake -Dmacos\_native=ON …/  
Then make and make install

clang–version:  
Apple clang version 11.0.0 (clang-1100.0.33.12)  
Target: x86\_64-apple-darwin19.0.0  
Thread model: posix  
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

---

<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:** [November 14, 2019, 9:36am UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/8 "2019-11-14T09:36:48Z")

</div>

Yup that works, too 🙂

---

<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 28, 2019, 9:36am UTC](https://root-forum.cern.ch/t/root-compilation-failed-with-mac-os-catalina/36595/9 "2019-11-28T09:36:52Z")

</div>

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