Root got error with anaconda

Hi expert,
I use conda to install root and succeed. however when I type root, it report the following message
/opt/anaconda3/envs/hep/etc/cling/std_darwin.modulemap:153:10: error: header ‘mdspan’ not found
header “mdspan”
^
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: ‘’
IncrementalExecutor::executeFunction: symbol ‘_ZN5cling7runtime6gClingE’ unresolved while linking [cling interface function]!
You are probably missing the definition of cling::runtime::gCling
Maybe you need to load the corresponding shared library?

How can I fix this? Thanks.

Hi,

Thanks for the post.
Can we have more details about your setup, e.g. root version and operating system?

best,
D

Hi,
The root version is 6.32.0 and I use MacOS15(the latest version).
The following command is what I used to install root:
conda create -c conda-forge --name hep root geant4 cmake
The conda installation package is “Anaconda3-2024.06-1-MacOSX-arm64.pkg” with python version 3.12.

After the first post, i tried to install an old root version (6.30.4) and python version is 3.10. I got no error for this version.

Basically the same way:
conda create -c conda-forge --name hep root=6.30.4 python=3.10 geant4 cmake

Dear @yiyu ,

I just tried installing ROOT from conda on my Mac version 14.4.1 and everything works for every ROOT version. I find it curious that on Mac 15 ROOT version 6.32 does not work for you but 6.30.4 works. I will need to get access to a Mac 15 machine and try to reproduce your issue.

Cheers,
Vincenzo

Hi,
I have used 6.32.0 for months installed with conda, which works very well. About one week ago, I checked updates and updated some of the packages I installed with conda within the environment ‘hep’ I created. After the updates, I got the errors I posted when I use root. At that time, the MacOS version is 14.6.
I tried to uninstall root and reinstall it. It doesn’t work.
I tried to uninstall conda and reinstall it many times. It doesn’t work.
I also tried to uninstall/reinstall Xcode command line tool. It doesn’t work.
The MacOS15 released later and I upgrade the OS to it. I tried to the same thing i did with MacOS14.6. It still doesn’t work.
I used an older version then, it works.

The above are what I experienced. I think the errors stem from the conda updates I did. But I don’t know why reinstallation doesn’t work.

Thanks

I met the same problem after updating my MacOS system to 15. Expect solution.