JohannesBuchner / UltraNest

Fit and compare complex models reliably and rapidly. Advanced nested sampling.
https://johannesbuchner.github.io/UltraNest/
Other
147 stars 30 forks source link

osx-arm64 install #143

Open as595 opened 3 months ago

as595 commented 3 months ago

is there an osx-arm64 install option please?

JohannesBuchner commented 3 months ago

what happens when you follow the pip install instructions?

JohannesBuchner commented 3 months ago

for conda, there is already an issue open: https://github.com/JohannesBuchner/UltraNest/issues/120

as595 commented 3 months ago

I get an error about the gcc compilers. I think it's a clang issue, and I tried switching to a conda install to see if that helped, but I got the same error (copied at end).

If I do a direct install from the cloned repo I get a cython error, which is very puzzling since cython is definitely installed an up to date, but that might be a python version mismatch issue.

None of this happens when I install on linux - everything works fine there - and it's not super important, I just wondered if something had already been worked out. No need to spend time on it if not.

/usr/local/bin/gcc-10 -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/ascaife/miniconda3/include -arch arm64 -fPIC -O2 -isystem /Users/ascaife/miniconda3/include -arch arm64 -I. -I/private/var/folders/xw/vlgb7nwj2qq3frx27gxgfvxh0000gr/T/pip-build-env-t2wortie/overlay/lib/python3.11/site-packages/numpy/core/include -I/Users/ascaife/SRC/GITHUB/AGNfitter/venv/include -I/Users/ascaife/miniconda3/include/python3.11 -c ultranest/mlfriends.c -o build/temp.macosx-11.1-arm64-cpython-311/ultranest/mlfriends.o -O3 gcc-10: error: this compiler does not support arm64 gcc-10: error: this compiler does not support arm64 error: command '/usr/local/bin/gcc-10' failed with exit code 1

JohannesBuchner commented 3 months ago

Maybe update gcc https://github.com/iains/gcc-darwin-arm64/issues/35