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

Doesn't work on macOS arm64 hardware #1

Closed
Nezteb opened this issue Sep 28, 2023 · 3 comments · Fixed by #2
Closed

Doesn't work on macOS arm64 hardware #1

Nezteb opened this issue Sep 28, 2023 · 3 comments · Fixed by #2
Labels
bug Something isn't working

Comments

@Nezteb
Copy link

Nezteb commented Sep 28, 2023

Describe the bug

Odin does support macOS using ARM, but Odin doesn't publish ARM builds for macOS. This won't be fixable/closable until that time. 😅

Steps to reproduce

  1. Use an M1 or M2 macOS machine.
  2. Install asdf and asdf-odin.
  3. Install of Odin with:
  4. asdf install odin dev-2023-08 (or whatever the latest version is)
  5. asdf global odin dev-2023-08
  6. Try to run odin.
  7. Notice error:
dyld[19872]: Library not loaded: /usr/local/opt/llvm@11/lib/libLLVM-C.dylib
  Referenced from: <0A12B3D4-P0YU-8273-JKL4-1AB23C4BCE9F> /Users/noah/.asdf/installs/odin/dev-2023-08/bin/odin
  Reason: tried: '/usr/local/opt/llvm@11/lib/libLLVM-C.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/llvm@11/lib/libLLVM-C.dylib' (no such file), '/usr/local/opt/llvm@11/lib/libLLVM-C.dylib' (no such file), '/usr/local/lib/libLLVM-C.dylib' (no such file), '/usr/lib/libLLVM-C.dylib' (no such file, not in dyld cache)
[1]    19872 abort      odin

Expected behavior

Ideally running Odin installed via asdf-odin would work on arm64 macOS machines.

Additional context

Once Odin starts publishing arm64 builds, asdf-odin will need a couple modifications to switch on the output of uname -m to differentiate between x84_64 and arm64. 😄

@Nezteb Nezteb added the bug Something isn't working label Sep 28, 2023
@jtakakura
Copy link
Owner

jtakakura commented Dec 8, 2023

@Nezteb asdf-odin downloads the release binaries of Odin from GitHub.
Currently, the binaries are only distributed for amd64, so I cannot support other architectures like arm64.

https://github.com/odin-lang/Odin/releases

@Nezteb
Copy link
Author

Nezteb commented Dec 8, 2023

@jtakakura Yep! I just wanted to create this GH issue as a placeholder so that it is not forgotten.

If/when Odin is able to start publishing ARM releases to GitHub, we can look at pulling those with asdf-odin. 😄

@jtakakura
Copy link
Owner

Ah, I see. Thanks for creating this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants