I looked at this link but it seems like that problem should have been solved with root 6.32.06.
I just tried to update root using homebrew but I’m getting errors.
First I got an error saying that /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk didn’t exist which I tried to solve by doing sudo ln -s /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk.
This left me with the following error message, which persists after doing brew uninstall and brew install of root:
input_line_1:1:2: fatal error: malformed or corrupted AST file: 'could not find file '/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/_types.modulemap' referenced by AST file'
#include <new>
^
input_line_1:1:2: note: after modifying system headers, please delete the module cache at '/usr/local/Cellar/root/6.32.08/lib/root'
input_line_1:1:2: note: imported by module 'std' in '/usr/local/Cellar/root/6.32.08/lib/root/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: ''
<<< cling interactive line includer >>>: fatal error: module file '/usr/local/Cellar/root/6.32.08/lib/root/Darwin.pcm' is out of date and needs to be rebuilt
it looks like a problem with your environment and brew installation, not the version of ROOT. We don’t provide the ROOT brew install formula ourselves, so unfortunately I won’t be able to help you much here (as a matter of a fact I also have it on my mac - OS15 and updated XCode - and it worked out of the box).
However, what I can suggest is that you download a binary file directly from our website - we have just released ROOT 6.34 so I would recommend that you use this version as many new features and solved issues are included: Release 63400 - ROOT.
Hi Marta, thanks for your help, I uninstalled homebrew and downloaded the binary pkg release but now I get the error:
/Applications/root_v6.34.00/bin/root.exe
Fatal in <TROOT::InitInterpreter>: cannot load library dlopen(/Applications/root_v6.34.00/lib/libCling.so, 0x0005): Library not loaded: /opt/local/lib/libzstd.1.dylib
Referenced from: <39385174-0CCF-31BC-A2B2-DBCF04DF968D> /Applications/root_v6.34.00/lib/libCling.so
Reason: tried: '/usr/local/Cellar/root/6.32.08/lib/root/libzstd.1.dylib' (no such file), '/opt/local/lib/libzstd.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libzstd.1.dylib' (no such file), '/opt/local/lib/libzstd.1.dylib' (no such file)
I am not sure which MacOS you have (so you may need to download a different version of the binary from the website: Release 63400 - ROOT) but what I did now is the following:
% curl https://github.com/root-project/root/releases/download/v6-34-00/root_v6.34.00.macos-15.1-arm64-clang160.tar.gz -o myroot.tar -L
% tar xvf myroot.tar
% cd root
% source bin/thisroot.sh
% root -b
Fatal in <TROOT::InitInterpreter>: cannot load library dlopen(/Users/martaczurylo/Downloads/root/lib/libCling.so, 0x0005): Library not loaded: /opt/local/lib/libzstd.1.dylib
Referenced from: <2560CE21-D81A-3DA3-ABE1-8F9F0EBCFAF8> /Users/martaczurylo/Downloads/root/lib/libCling.so
Reason: tried: '/Users/martaczurylo/Downloads/root/lib/libzstd.1.dylib' (no such file), '/opt/local/lib/libzstd.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libzstd.1.dylib' (no such file), '/opt/local/lib/libzstd.1.dylib' (no such file)
% export LD_LIBRARY_PATH=/opt/homebrew/lib:$LD_LIBRARY_PATH
% export DYLD_LIBRARY_PATH=/opt/homebrew/lib:$DYLD_LIBRARY_PATH
% root -b
------------------------------------------------------------------
| Welcome to ROOT 6.34.00 https://root.cern |
| (c) 1995-2024, The ROOT Team; conception: R. Brun, F. Rademakers |
| Built for macosxarm64 on Nov 29 2024, 06:04:15 |
| From tags/v6-34-00@v6-34-00 |
| With Apple clang version 16.0.0 (clang-1600.0.26.4) |
| Try '.help'/'.?', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------------
what you and I were missing is the ZSTD library path - in my case installed via brew so it can only be found in /opt/homebrew/ directory so that’s why we need to attach is to the library paths. Please let me know in case you have more questions or something is not working correctly.
If the problem is the download of assets directly from GH, one has to follow links with curl with the -L option.
Please also note that the version of Apple clang on the target machine will have to match the one on the build node at the time of the release.