Issue with macOS 15.4 Xcode 16.3

ProductName: macOS
ProductVersion: 15.4
BuildVersion: 24E248

Xcode Version 16.3 (16E140)

xcode-select 2409

root branch v6-34-00-patches
Newest log entry:
commit b6403c153f08ef72f8e427a2b67c4db95be614ac (HEAD → v6-34, origin/v6-34-00-patches)
Author: Danilo Piparo danilo.piparo@cern.ch
Date: Tue Apr 8 06:23:29 2025 +0200

[core] Version 6.34.09

cmake ../ -DCMAKE_INSTALL_PREFIX=$ROOTSYS -Dgminimal=1 -Dasimage=1 -Dmathmore=1 -Dxml=1 -Dbuiltin_glew=1 -Dopengl=1

System: Darwin-24.4.0
ROOT Platform: macosx
ROOT Architecture: macosxarm64
Processor: 8 core Apple M1 (arm64)
Build type: Release
Install path: /Users/suter_a/Applications/root/root_exec
Compiler: AppleClang 17.0.0.17000013
C++ standard: 17
Compiler flags:

  • C: -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread
  • C (build type specific): -O3 -DNDEBUG
  • C++: -Wc++11-narrowing -Wsign-compare -Wsometimes-uninitialized -Wconditional-uninitialized -Wheader-guard -Warray-bounds -Wcomment -Wtautological-compare -Wstrncat-size -Wloop-analysis -Wbool-conversion -m64 -pipe -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Qunused-arguments -pthread -stdlib=libc++
  • C++ (build type specific): -O3 -DNDEBUG
    – Linker flags:
  • Executable:
  • Module:
  • Shared:

– Enabled support for: asimage builtin_clang builtin_cling builtin_freetype builtin_ftgl builtin_gl2ps builtin_glew builtin_llvm builtin_nlohmannjson builtin_xxhash cocoa libcxx mathmore opengl runtime_cxxmodules shared xml
– Configuring done (28.6s)
– Generating done (3.3s)
– Build files have been written to: /Users/suter_a/Applications/root/root_build

Using up-to-date brew

cmake version 4.0.0

Compile Error
[ 82%] Generating G__Core.cxx, ../lib/Core.pcm
fatal error: module map file ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap’ not found
<<< cling interactive line includer >>>: fatal error: could not build module ‘_Builtin_intrinsics’
Error: Module ‘_Builtin_intrinsics’ failed to load.
fatal error: module map file ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/std_darwin.MacOSX14.2.sdk.modulemap’ not found
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[1]: *** Waiting for unfinished jobs…
[ 82%] Built target MetaCling
make: *** [all] Error 2

I have the same issue also on a mbp m3pro.

Hello @suter_a,

is this a fresh build or an incremental one? A PR was just merged this morning that updates the format of the PCM modules, so it is expected that incremental builds break. If this is your case, removing the PCMs with rm <root_build_dir>/lib/*.pcm should solve the issue.

Unfortunately this doesn’t help.
I removed the *.pcm and after cmake build I get the very same error message as posted.

Yes, I realized that cannot be the problem because that would only affect the master branch.
However, is it a clean build or an incremental one? That might still make a difference. Meanwhile I’ll try to see if I can get more information on the problem on my end.

This is not supposed to happen.

Since your config says: AppleClang 17.0.0.17000013
std_darwin.modulemap should be selected.
A full clean build (rm <root_build_dir>/*) should fix the problem.

Cheers,
Dev

No, sorry, this is not working.
History:

  • re-cloned root repo, configured, build → error message as reported.
  • re-installation for Xcode, clt → error message as reported.

This on two different Apple Silicon machines with running homebrew.
On an old Intel Mac it works.

Thank you for trying that out. I was able to reproduce the issue by updating to CMake 4.0.

As a workaround for now, you can build ROOT by adding the following at configure time:

-DCMAKE_OSX_SYSROOT=$(xcrun --sdk macosx --show-sdk-path)

This should ideally allow ROOT to build without the errors seen above.

Let me know if that works for you.

Cheers,
Dev

1 Like

Wow, this works! Thank you very much!

Cheers,
Andreas

1 Like

thanks for the info.