Failed to Open ROOT after today's update


_On my end, after today’s sequoia 15.4 update. Homebrew failed to correctly build root (I tried to reinstall but no luck either.) I suspect it is a change of library or some C++ patches in the new MAC OS system. Also please see the following command line when I tried to open root after the installation:

/opt/homebrew/Cellar/root/6.34.06/etc/root/cling/std_darwin.modulemap:540:12: error: header ‘experimental/__memory’ not found
header “experimental/__memory”
^
input_line_1:1:10: note: submodule of top-level module ‘std’ implicitly imported here
#include
^
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 '/tmp/root-20250327-18543-ll7y48/root-6.34.06/builddir/lib/mach_port_t.pcm’ not found: module file not found
#include <cling/Interpreter/RuntimeUniverse.h>
^
input_line_2:1:2: note: imported by module ‘pthread’ in ‘/opt/homebrew/Cellar/root/6.34.06/lib/root/pthread.pcm’
input_line_2:1:2: note: imported by module ‘std’ in ‘/opt/homebrew/Cellar/root/6.34.06/lib/root/std.pcm’
input_line_2:1:2: note: imported by module ‘Cling_Runtime_Extra’ in ‘/opt/homebrew/Cellar/root/6.34.06/lib/root/Cling_Runtime_Extra.pcm’
input_line_2:1:2: note: imported by module ‘Cling_Runtime’ in ‘/opt/homebrew/Cellar/root/6.34.06/lib/root/Cling_Runtime.pcm’
<<< cling interactive line includer >>>: fatal error: module file ‘/opt/homebrew/Cellar/root/6.34.06/lib/root/std.pcm’ is out of date and needs to be rebuilt
<<< cling interactive line includer >>>: note: imported by module ‘Darwin’ in ‘/opt/homebrew/Cellar/root/6.34.06/lib/root/Darwin.pcm’
Failed to load module Darwin

ROOT Version: 6.34.06
Platform: MacOS sequoia 15.4
Compiler: homebrew (xcode 16.3)


Hi @yansonhuang,

Welcome to the ROOT forum and thanks for your question.

Can you please share the build configuration that you are using so that I can try and reproduce the issue on my end?

Cheers,
Devajith

Hello @devajith,
Thanks for your reply. I use a Macbook and the build is Homebrew: i.e.
brew install root
root
Then this error message showed up.

Ahh, I see. I suspect it’s caused by root not being installed properly after the upgrade.

Can you try completely uninstalling root and installing again?

If that doesn’t work, you can download pre-compiled binaries from Installing ROOT - ROOT rather than via Homebrew

EDIT:

We do not have a release version for sequoia 15.4 yet. You can build root from source instead

Cheers,
Devajith

Hello, again, I have tried to uninstall homebrew and install again but no luck either. I have issued a troubleshooting message to homebrew. Hopefully, it will get resolved shortly.

I will also try to build root from the source later today as you suggested. I will return here if I still have issues.

Thanks. In the meantime we are closely looking at the issue to understand if an action on our side is required.

Being a chronic upgrader, I have seen this sequence of events many times before:

  1. New version of ROOT comes to Homebrew, everything works beautifully
  2. New version of MacOS and Xcode comes out, root doesn’t work any more
  3. ROOT formula adapts to Xcode, everything works beautifully again

Looking at my notes, it usually has something to do with the version of the C++ standard library, and sometimes I can find workarounds, but generally I have found it easier to wait for the experts to fix it, and I thank them for their efforts in maintaining Homebrew ROOT.

Hi @yansonhuang, @devajith ,
I am running into the same problem. I tried to install it from source as well but no luck. Is there any update? Have you manage to fix it or install it from source?

We are aware of the issue and trying to fix this on our side.

1 Like

Do you solute the problem? When I try to compiler the ROOT from source, I meet the same problem.

The configuration is shown as below,

cmake -DCMAKE_INSTALL_PREFIX=../install -DPYTHON_EXECUTABLE=/opt/homebrew/bin/python3 -DPYTHON_INCLUDE_DIR=/opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/include/python3.12 ../root

The Error are shown as,

Users/fanfeizeng/Downloads/software/root/build/etc/cling/std_darwin.modulemap:540:12: error: header ‘experimental/__memory’ not found
header “experimental/__memory”
^
input_line_1:1:10: note: submodule of top-level module ‘std’ implicitly imported here
#include
^
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: ‘’
While building module ‘Core’:
While building module ‘Cling_Runtime’ imported from input_line_2:1:
While building module ‘Cling_Runtime_Extra’ imported from /Users/fanfeizeng/Downloads/software/root/build/etc/cling/Interpreter/RuntimeUniverse.h:27:

ROOT version: 6.34.06
Platform: MacOS Sequoia 15.4
Cmake version: 3.29

Hello,
just to let you know… I have 3 different Mac all of them with Sequoia 15.4 installed.The only one where I have this problem is the Mac with XCode installed. The other 2 Mac (where there is no XCode installed… only the command tools) works.
Best

Attilio

We’ve fixed the issues. The releases should be available soon.

1 Like

Hi,

Thank you very much for your great efforts.

For your information, I attempted to build ROOT 6.34.08 from source on
my macOS 15.4 with Xcode 16.3, but unfortunately,
I encountered similar errors as with version 6.34.06.

Below is a summary of my build options along with a digest of the typical errors I encountered.
I hope this information will be helpful for your further development.

=====================================================
cmake  -Wno-dev "$ROOT_SOURCE" \
    -DCMAKE_INSTALL_PREFIX="$ROOT_INSTALL" \
    -DCMAKE_CXX_STANDARD=17 \
    -Dfortran=ON \
    -Dimt=ON \
    -Dboost=ON \
    -Dgsl=ON \
    -Dmathmore=ON \
    -Droofit=ON \
    -Dbuiltin_fftw3=ON \
    -Dbuiltin_tbb=ON \
    -Dbuiltin_glew=ON \
    -Dbuiltin_xrootd=ON 
=====================================================
CMake Error at /Users/yue/CERN/root-6.34.08_build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-configure-Release.cmake:49 (message):
  Command failed: 1

   '/opt/homebrew/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/Users/yue/CERN/root-6.34.08_build/builtins/davix/DAVIX-prefix' '-DCMAKE_BUILD_TYPE=Release' '-DENABLE_HTML_DOCS=OFF' '-DENABLE_IPV6=OFF' '-DSTATIC_LIBRARY=ON' '-DSHARED_LIBRARY=OFF' '-DENABLE_TOOLS=OFF' '-DDAVIX_TESTS=OFF' '-DCMAKE_C_COMPILER=/usr/bin/cc' '-DCMAKE_CXX_COMPILER=/usr/bin/c++' '-DCMAKE_C_FLAGS= -m64 -pipe -W -Wall -fsigned-char -fno-common -Qunused-arguments -pthread' '-DCMAKE_CXX_FLAGS= -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++  -fPIC' '-DCMAKE_OSX_SYSROOT=' '-DCMAKE_OSX_DEPLOYMENT_TARGET=' '-DLIB_SUFFIX=' '-GUnix Makefiles' '-C/Users/yue/CERN/root-6.34.08_build/builtins/davix/DAVIX-prefix/tmp/DAVIX-cache-Release.cmake' '-S' '/Users/yue/CERN/root-6.34.08_build/builtins/davix/DAVIX-prefix/src/DAVIX' '-B' '/Users/yue/CERN/root-6.34.08_build/builtins/davix/DAVIX-prefix/src/DAVIX-build'

  See also

    /Users/yue/CERN/root-6.34.08_build/builtins/davix/DAVIX-prefix/src/DAVIX-stamp/DAVIX-configure-*.log


make[2]: *** [VDT-prefix/src/VDT-stamp/VDT-configure] Error 1
make[1]: *** [CMakeFiles/VDT.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Hi! Thanks for your efforts. ROOT 6.34.08 works well now!

1 Like

@Fanfei_Zeng thanks for your patience and confirming the release works for you!

Thanks! I found that the Homebrew version of 6.34.08 works fine with --build-from-source. The binary install of 6.34.08 still crashes at startup but this is great, thanks again.

Hi,

Inspired by other discussions on this forum, I figured out a solution.
(Issue with macOS 15.4 Xcode 16.3 - #6 by suter_a)
For those who are interested in compiling from source, here is what I found to be useful:

brew install cmake gfortran python3 boost openssl gsl tbb davix xrootd

Then use the following options when running CMake:

cmake -Wno-dev "$ROOT_SOURCE" \
    -DCMAKE_INSTALL_PREFIX="$ROOT_INSTALL" \
    -DCMAKE_CXX_STANDARD=17 \
    -Dfftw3=ON \
    -Dfortran=ON \
    -Dimt=ON \
    -Dboost=ON \
    -Dgsl=ON \
    -Dmathmore=ON \
    -Droofit=ON \
    -Dvdt=OFF \
    -Dbuiltin_vdt=OFF \
    -DCMAKE_OSX_SYSROOT=$(xcrun --sdk macosx --show-sdk-path)
1 Like

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