ROOT Compilation failed with Mac OS Catalina

___I get a compilation error below,

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 and posting code

ROOT Version: v6.18.04
Platform: Mac OS 10.15 Catalina
Compiler: Apple clang version 11.0.0


1 Like

Hi Sara,

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

Hi Sara,

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

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

@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

                    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```
1 Like

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

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 work for you?

Axel.

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

Yup that works, too :slight_smile:

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