ROOT fails on my Mac after an update


Please read tips for efficient and successful posting and posting code

Please fill also the fields below. Note that root -b -q will tell you this info, and starting from 6.28/06 upwards, you can call .forum bug from the ROOT prompt to pre-populate a topic.

ROOT Version: 6.38.04
Platform: Macbook Air with Sequioa 15.7.4
Compiler: 26.3


Hi,

My ROOT installation failed after an update. I tried updating Mactools, but it still fails, with a bunch of error messages starting

warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk’
C system headers (glibc/Xcode/Windows SDK) must be installed.
fatal error: module map file ‘module.modulemap’ not found
Module Darwin not found.

This problem looks very similar to the problem described in

However, I installed and maintain ROOT using homebrew, and am hoping that there is a simpler solution that does not require reinstalling ROOT using a different method. This seems like it would be a fairly common problem, with, hopefully, a simple solution.

thanks for any pointers.

Spencer

Just to clarify which MacOS version you have now: Your message says it is 15.7.4 but after an update it should be 26 ?

My OS is Sequoia 15.7.4. This is not the latest (Tahoe), but is it close. I held off on updating to Tahoe because of reports of problems, but that was a while back. If updating to Tahoe will fix this problem, I could do so.

My Xcode is Version 26.3, which should be the latest (at least for Tahoe).

This is the configuration we have for sequoia:

MacOS: 15.7.5
Build: 24G624
given by the command: sw_vers

Xcode Command Line Tools: 26.3.0.0.1.1771626560
given by the command: pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

Hi,

When I run those two commands, I get similar, but not identical versions. I believe that the Sequioia OS and Xcode are fully up-to-date, modulo not having installed Tahoe.

sklein@Spencers-MacBook-Air ~ % sw_vers
ProductName: macOS
ProductVersion: 15.7.4
BuildVersion: 24G517
sklein@Spencers-MacBook-Air ~ % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.2.0.0.1.1764812424
volume: /
location: /
install-time: 1769318463
sklein@Spencers-MacBook-Air ~ %

I suspect that the problem may be with the homebrew installation scripts - something isn’t getting connected up properly - i. e. some paths have changed, or something like that.

Is this problem likely to disappear if I upgrade the OS to Tahoe? Any other suggestions?

It looks like your versions for both MacOS and CLT are a bit behind the latest one. When you go to “System Preference” → “General” → “Software Update” it should propose you an update for both.

Otherwise can always install ROOT from source.

So, I updated the OS to the latest, and got build 24G624, as you did. There was no way to update Xcode, which thought it was up to date. Unfortunately, ROOT still failed in the same way.

Then, I tried updated to Tahoe, something I would have had to do eventually anyway. And then updated Xcode, and did a brew upgrade ROOT to make sure I had a Tahoe-compatible version. Then, I get the following:

sklein@Spencers-MacBook-Air ~ % sw_vers
ProductName: macOS
ProductVersion: 26.4.1
BuildVersion: 25E253
sklein@Spencers-MacBook-Air ~ % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 26.2.0.0.1.1764812424
volume: /
location: /
install-time: 1769318463
sklein@Spencers-MacBook-Air ~ %

When I run ROOT, I get errors:

sklein@Spencers-MacBook-Air ~ % root
warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk’
C system headers (glibc/Xcode/Windows SDK) must be installed.
fatal error: module map file ‘module.modulemap’ not found
Module Darwin not found.
Module std not found.
<<< cling interactive line includer >>>: fatal error: module file ‘/private/tmp/root-20260410-30746-yhq51d/root-6.38.04/builddir/lib/Darwin.pcm’ not found: module file not found
<<< cling interactive line includer >>>: note: imported by module ‘_Builtin_intrinsics’ in ‘/usr/local/Cellar/root/6.38.04_1/lib/root/_Builtin_intrinsics.pcm’
Failed to load module _Builtin_intrinsics
Failed to load module ROOT_Foundation_C
Failed to load module ROOT_Config
Failed to load module ROOT_Rtypes
Failed to load module ROOT_Foundation_Stage1_NoRTTI
Failed to load module Core
Failed to load module Rint
Failed to load module RIO
Failed to load module MathCore

etc.

The first two lines of the ROOT crash

warning: no such sysroot directory: ‘/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk’
C system headers (glibc/Xcode/Windows SDK) must be installed.

make it seem like ROOT is not able to find something that it should. I’m confused because Windows SDK is found only on Windows machines, not Macs.

In the past, homebrew has handled these connections seamlessly. But, now, something is not matching up.

Spencer

Your system seem to be trying to use an older version of SDK. Can you maybe see what you have in SDKs folder with:

ls /Library/Developer/CommandLineTools/SDKs

And then set SDKROOT to whatever the latest version you have there and then try to run root.

For example,

export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX26.4.sdk

Let me know if that works.

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