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

**URL:** <https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479>\
**Category:** Newbie\
**Created:** [February 6, 2023, 1:13pm UTC](https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479 "2023-02-06T13:13:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Baltazar](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonathan_baltazar/32/32348_2.png) [@Jonathan\_Baltazar](https://root-forum.cern.ch/u/Jonathan_Baltazar)\
**Post date:** [February 6, 2023, 1:13pm UTC](https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479/1 "2023-02-06T13:13:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [February 6, 2023, 11:09pm UTC](https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479/2 "2023-02-06T23:09:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jonathan\_Baltazar](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonathan_baltazar/32/32348_2.png) [@Jonathan\_Baltazar](https://root-forum.cern.ch/u/Jonathan_Baltazar)\
**Post date:** [February 7, 2023, 10:01am UTC](https://root-forum.cern.ch/t/building-root-from-source-symbol-s-not-found-for-architecture-arm64/53479/3 "2023-02-07T10:01:40Z")

</div>

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