Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Silicon Support #1283

Closed
spfennell opened this issue Jun 10, 2022 · 1 comment · Fixed by #1286
Closed

Apple Silicon Support #1283

spfennell opened this issue Jun 10, 2022 · 1 comment · Fixed by #1286

Comments

@spfennell
Copy link
Contributor

No description provided.

spfennell pushed a commit that referenced this issue Jun 10, 2022
@spfennell
Copy link
Contributor Author

spfennell commented Jun 10, 2022

I got this to work but its ugly, and for some reason SIM_amoeba (with monte carlo) is giving me problems. I had this problem before but I can't remember the fix.

cmake -G Ninja -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=AArch64 -DCMAKE_INSTALL_PREFIX=${HOME}/llvm13-aarch64 ../llvm
cmake --build .
cmake --build . --target install
  • add these flags to your environment (you can add them to your .zshrc in your home directory and source the file or relaunch the terminal)
export PYTHON_VERSION=3
export TRICK_CXXFLAGS="-g -I/opt/homebrew/include -L/opt/homebrew/lib -Wno-unused-command-line-argument"
export TRICK_CFLAGS="-g -I/opt/homebrew/include -L/opt/homebrew/lib -Wno-unused-command-line-argument"
  • configure trick with this command (change the llvm location if you changed the install prefix earlier):
./configure --with-llvm=${HOME}/llvm13-aarch64 --with-udunits=/opt/homebrew
  • Then make.

This passes all tests except for SIM_amoeba, which has some issue with monte host/slave connection. I've had this problem before so it may be unrelated to the M1 build.

spfennell added a commit that referenced this issue Jun 13, 2022
* llvm assert fix #1283 #1284 

* add UDUNITS link flags to DPX test #1283 #1285

closes #1283
closes #1284
closes #1285
astrophysics referenced this issue in astrophysics/trick Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant