-
Notifications
You must be signed in to change notification settings - Fork 27
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 M1: bad CPU type in executable #43
Comments
GraalVM currently does not support Apple M1 chips yet (we are actively working on it, see: oracle/graal#2666). In the meantime, you can run GraalVM on Rosetta 2. For that, you need to run |
@fniephaus we had an update on graalvm, now it supports arm architecture (mac m1)
|
Hey @avelino, yes, M1 support has landed in GraalVM. However, we have to wait for the 22.1 release, which is due next month, before we can add support for M1 machines to this tap. In the meantime, you can try out dev builds: https://github.com/graalvm/graalvm-ce-dev-builds/releases/latest |
Is it possible to create a homebrew tap for the nightly build? |
Technically it's possible, but I don't think it's a good idea as dev builds are volatile so we'd need to keep this repo in sync. Do you have a good use case for dev builds beyond M1 support? Note that there is also a GitHub Action for GraalVM, which allows you to use GraalVM dev builds on macOS. |
Currently, no ^^ |
Fair enough! Anyway, I managed to look into this: you can now run the following to install an M1 dev build: brew install --cask graalvm/tap/graalvm-ce-java17
# or
brew install --cask graalvm/tap/graalvm-ce-java11 |
Tried installing it, failing for me # uname -m
arm64
# brew install --cask graalvm/tap/graalvm-ce-java17
...
==> Downloading https://github.com/graalvm/graalvm-ce-dev-builds/releases/download/22.1.0-dev-20220321_2332/graalvm-ce-java17-darwin-aarch64-dev.tar.gz
...
# file /Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.1.0-dev/Contents/Home/bin/java
/Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.1.0-dev/Contents/Home/bin/java: Mach-O 64-bit executable arm64 Edit: Fixed: |
Have you removed the quarantine bit? See also oracle/graal#2666 (comment)
|
@KevinRoebert thanks that worked! |
Closed by 0560e96. With the new |
CPU: Apple M1
OS: macOS Monterey
The text was updated successfully, but these errors were encountered: