Mac OS Ventura - Compilation Fail

Hello,

Trying to get setup with root on Mac OS Ventura ARM 64.

  • root from macports - broken - because a dependency (gl2ps) isn’t available for ventura arm64.
  • binaries… outrageous number of permissions errors from unidentified developer. After about 50 clicks, got past it but lots of mysterious library print out when using root. Unusable.
  • from source build…

Cloned the git repository to build but latest stable is broken for ventura (cpppy version fix, and also missing include . Seems fixed (on another’s computer) for the tag v6-28-00-rc1. (By the way, the git clone command you put in the manual clones only the branch so you can’t checkout the tag… bit of a trap door).

On colleague’s mac with homebrew we already have xrootd installed so the build doesn’t need it. On this mac (same OS, compiler, arm64) the build fails because of xrootd. After trawling the forum the solution seems to be to turn off builtin_xrootd, but it turns itself back on. We don’t know which of the many builtins or other options are forcing this back on.

Tried… getting xrootd through macports, but it fails to compile there.

The error when compiling root with builtin_xrootd on from source with tag v6-28-00-rc1 is:

CMake Error at /Users/<username>/physics/packages/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-Release.cmake:49 (message):
  Command failed: 2

   '/Applications/Xcode.app/Contents/Developer/usr/bin/make'

  See also

    /Users/<username>/physics/packages/root_build/builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build-*.log


make[2]: *** [builtins/xrootd/XROOTD-prefix/src/XROOTD-stamp/XROOTD-build] Error 1
make[1]: *** [builtins/xrootd/CMakeFiles/XROOTD.dir/all] Error 2

Questions:

  1. can we turn off builtin_xrootd to get around this? and if so how? flipping the one cmake option doesn’t work
  2. is there another fix we can try?

Just now, we will try the whole environment change (nuclear option) with homebrew.

Many thanks,
Laurie

PS I’m attaching the patch of things that were broken in latest stable but are fixed in the tag.
patch.txt (1.4 KB)


Please read tips for efficient and successful posting and posting code

ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


ROOT Forum → Search → Dxrootd

Dear ROOT developers,

I am the colleague having this installation issue, which still persists.

I have attempted, with others much more in the know than I to install ROOT as it is necessary for the work which I do.

I am attempting to install ROOT 6.26/10 tag v6-28-00-rc1
On MacOS (Ventura 13.2)
Using clang version 14.0.0 (clang-1400.0.29.202)

As mentioned by the OP, the dependency gl2ps isn’t yet available for Ventura on M1 silicon so a port-based install keeps failing.

The pre-compiled version produces an excessive number of permissions errors. Possibly due to this version of ROOT not yet being signed(?)

When running ‘make’ I encounter an error approximately 76% into the the make process, as shown below:

--------------------------------------------------------------------------------------------------------------------------------
[ 76%] **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>:1430:

In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.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/robmurphy/physics/packages/root_src-install/etc/cling/Interpreter/RuntimeUniverse.h:27:

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

**/Users/robmurphy/physics/packages/root_src-install/etc/cling/Interpreter/DynamicExprInfo.h:13:10:** **fatal error:** **could not build module 'std'**

#include <string>

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

**/Users/robmurphy/physics/packages/root_src-install/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/robmurphy/physics/packages/root_src-install/etc/cling/lib/clang/9.0.1/include/arm_acle.h:17:

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

#include_next <stdint.h>

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

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/robmurphy/physics/packages/root_src-install/include/Rtypes.h:23:

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

In file included from /Users/robmurphy/physics/packages/root_src-install/include/RtypesCore.h:23:

**/Users/robmurphy/physics/packages/root_src-install/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/robmurphy/physics/packages/root_src-install/include/Rtypes.h:23:

While building module 'ROOT_Config' imported from /Users/robmurphy/physics/packages/root_src-install/include/RtypesCore.h:25:

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

In file included from /Users/robmurphy/physics/packages/root_src-install/include/RConfig.h:23:

**/Users/robmurphy/physics/packages/root_src-install/include/ROOT/RConfig.hxx:279:13:** **fatal error:** **could not build module 'Darwin'**

# include <AvailabilityMacros.h>

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

While building module 'Core':

While building module 'ROOT_Foundation_C' imported from /Users/robmurphy/physics/packages/root_src-install/include/Rtypes.h:29:

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

In file included from /Users/robmurphy/physics/packages/root_src-install/include/ThreadLocalStorage.h:57:

**/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>

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

While building module 'Core':

While building module 'ROOT_Foundation_Stage1_NoRTTI' imported from /Users/robmurphy/physics/packages/root_src-install/include/Rtypes.h:195:

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

**/Users/robmurphy/physics/packages/root_src-install/include/ROOT/RStringView.hxx:25:10:** **fatal error:** **could not build module 'std'**

#include <string_view>

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

Error: Error loading the default rootcling header files.

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

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

make: *** [all] Error 2

--------------------------------------------------------------------------------------------------------------------------------

xrootd was a particular problem as after configuring using ccmake with the builtin_xrootd flag being switched to off, it would switch back on again (not sure if this is part of the problem).

My colleague suggested using Homebrew instead, and now that xrootd is installed this isn’t a problem.

We’ve tried setting the CMAKE_CXX_STANDARD flag to 14, 17 and 21, all of which have resulted in a ‘make’ failure, the latter not working at all. (See above for the error produced with 14 and 17).

I’ve browsed the forum link provided by Wile_E_Coyote, but it hasn’t helped with solving this problem.

If you are able to provide any further assistance, it’d be greatly appreciated.

Many thanks

Rob

P.S. My apologies for posting the entire error text along with this message. As a ‘new user’ I’m not allowed to include download links.

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