Problems Reinstalling Root on MacBook After OS Upgrade

Maybe related: Prevent LLVM cmake from finding builtin zstd. by pcanal · Pull Request #17909 · root-project/root · GitHub

I’m not sure why this is happening. I found a similar issue here: Unable to build toolchain due to thin libzstd.dylib - Compiler - Swift Forums

Just to confirm that you are using the right SDK, can you paste the outputs of the following here?

xcrun --sdk macosx --show-sdk-version
xcrun --sdk macosx --show-sdk-path
ls -la $(!!)
1 Like

Thanks Olivier. Yes, the cmake step went well, so far as I could tell. I will respond to devajith’s question below.

R/James

Dear devajith,

Here it is:

*Mac:~ jamesbowen$ xcrun --sdk macosx --show-sdk-version*
*15.5*
*Mac:~ jamesbowen$ xcrun --sdk macosx --show-sdk-path*
*/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk*
*Mac:~ jamesbowen$ ls -la $(!!)*
*ls -la $(xcrun --sdk macosx --show-sdk-path)*
*lrwxr-xr-x  1 root  wheel  10 May 31 01:39 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk -> MacOSX.sdk*
*Mac:~ jamesbowen$*

R/James

I’m not entirely sure what is wrong here. Maybe you can try rebuilding again with the flag -DCMAKE_OSX_SYSROOT=$(xcrun --sdk macosx --show-sdk-path)?

$ rm -r build
$ git clone https://github.com/root-project/root.git
$ mkdir build
$ cd build
$ cmake -DCMAKE_OSX_SYSROOT=$(xcrun --sdk macosx --show-sdk-path) ../root
$ make -j8
$ source bin/thisroot.sh
$ root
1 Like

Dear devajith,

During the execution of the command " ```
cmake -DCMAKE_OSX_SYSROOT=$(xcrun --sdk macosx --show-sdk-path) ../root


*CMake Error at CMakeLists.txt:86 (string):*
*  string sub-command REGEX, mode REPLACE needs at least 6 arguments total to*
*  command.*
*Call Stack (most recent call first):*
*  CMakeLists.txt:96 (strip_path)*

I did attempt the "make -j8", command, and this is what happened:

*Mac:build jamesbowen$ make -j8*
*make: *** No targets specified and no makefile found.  Stop.*
*Mac:build jamesbowen$*

This is different than the error I got last time, but obviously still not the result I want.  Do you have any further suggestions?

R/James

P.S.  I got a new software upgrade to Mac OS Sequoia 15.6.  I tried installing with brew again, and I am still getting those errors that started this all.

Dear devajith,

Did you see my reply on 6 Aug?

R/James

Hi @James_Bowen,

Sorry, I missed your previous response. I have no more ideas. Might be your version of CMake used. @couet Have you seen this before?

@devajith , no I haven’t. Previsouly in that thread it was said that `cmake` step went well… What is your cmake version ?