Root_v6.24.06 in macOS Monterey

Hello, I have updated today the macos of my laptop to macOS Monterey (12.2.1) and then my root installed version stopped working and it was complaining that: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk was missing. For whatever reason, I did figured out that I need the Xcode 12 for Monterey, so I downloaded root_v6.24.06 (from Release 62406 - ROOT)
curl -LO https://root.cern/download/root_v6.24.06.macos-11.5-x86_64-clang120.tar.gz
and install it. In parallel I did dowloaded also Xcode 12 and now MacOSX.sdk points to MacOSX12.0.sdk which does indeed exist.

However root still not running and the error message I’ve go now is given below.

My question is: is there a recipe to fix this problem?

Thanks for your help
Salva
— error message when using root_v6.24.06 —
martis@portsili47 ~ % root
input_line_1:1:2: error: module ‘Darwin’ uses additional module map ‘/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/netinet.modulemap’ used when the module was built
#include
^
input_line_1:1:2: note: imported by module ‘std’ in ‘/Users/martis/Utils/root_v6.24.06/lib/std.pcm’
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: ‘’
input_line_2:1:2: fatal error: module file ‘/Users/martis/Utils/root_v6.24.06/lib/std.pcm’ is out of date and needs to be rebuilt
#include “cling/Interpreter/RuntimeUniverse.h”

Hi,

You have installed a version for macOS 11 and instead you have 12.
You can try to install the 6.26 candidate release version from our nightly builds. We have
a binary for Mac with arm chip (M1 or M1 Pro/Max):
https://root.cern/download/nightly/root_v6.26.99.macos-12.2-arm64-clang130.tar.gz
or a binary for the Intel chip:
https://root.cern/download/nightly/root_v6.26.99.macos-12.2-x86_64-clang130.tar.gz

These should work on Monterey

Cheers

Lorenzo

Perfect!
That fixed my problem. Thanks a lot!
Salva

I installed this binary just now on a mac with 12.2.1:

https://root.cern/download/nightly/root_v6.26.99.macos-12.2-x86_64-clang130.tar.gz

and see the original problem reported:

root

input_line_1:1:2: fatal error: malformed or corrupted AST file: 'could not find file ‘/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/net.modulemap’ referenced by AST file’

#include

^

input_line_1:1:2: note: after modifying system headers, please delete the module cache at ‘/Applications/root_v6_26_99/lib’

input_line_1:1:2: note: imported by module ‘std’ in ‘/Applications/root_v6_26_99/lib/std.pcm’

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: ‘’

Replaced symbol atexit cannot be found in JIT!

Replaced symbol at_quick_exit cannot be found in JIT!

<<< cling interactive line includer >>>: fatal error: module file ‘/Applications/root_v6_26_99/lib/Darwin.pcm’ is out of date and needs to be rebuilt

I can see the requested file:

ls /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/net.modulemap
ls: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/net.modulemap: No such file or directory

does not exist, though the directory where it should be does exist.

What have I got wrong here?

Cheers,

Mark

Turns out somehow when upgrading mac os and Xcode the new sdk was not installed. Removing the command line tools and reinstalling gave me the latest sdk (12) and now this ROOT binary works :slight_smile: