Building ROOT from source: symbol(s) not found for architecture arm64

Hi, I am currently building ROOT from source, but the build fails at 100%. I get the following warning:

ld: warning: ignoring file /Users/opt/anaconda3/lib/libpython3.8.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

Undefined symbols for architecture arm64:

(…)

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/libPyMVA.so] Error 1
make[1]: *** [tmva/pymva/CMakeFiles/PyMVA.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…

When configuring, I use the following cmake procedure:

cmake -DCMAKE_INSTALL_PREFIX=$HOME/progs/ROOT/root-install -DPYTHIA8_DIR=$PYTHIA8 -DPYTHIA8_INCLUDE_DIR=$PYTHIA_INC -DPYTHIA8_LIBRARY=$PYTHIA8_LIB/libpythia8.a -DGSL_DIR=/usr/local -Droofit=ON -Dpythia8=ON -Dbuiltin_glew=ON -Dxroot=OFF …/root-sources

I have tried adding both DCMAKE_SYSTEM_PROCESSOR=arm64 and DCMAKE_OSX_ARCHITECTURES=arm64, but to no avail.

_ROOT Version: 6.26.10
_Platform: macOS 13.2 (M1, 16GB)
_Compiler: Xcode 14.2

It looks like your anaconda install is (still) for an intel cpu while it looks like you are running/building on an Apple silicon cpu. You may need to reinstall anaconda and its stack of products.

Thank you so much, this was the issue. It ran smoothly after reinstalling conda.