-
Notifications
You must be signed in to change notification settings - Fork 279
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
🐛 [BUG] Cannot run mas on ARM-based CPU #308
Comments
Thanks for this. I did test building and running mas on a DTK box and it worked fine. But I need to include an arm64 slice in the binary to resolve this. |
Actually, it may be the dependencies that are missing the arm64 slice |
I'll get it to install normally with the beta Build of Homebrew for Arm but when I try to run it, it gives me the following error: |
I can also confirm this behavior.
But then...
|
Confirmed for me as well |
This is maybe due to codesign rules for ARM64. All need to be at least adhoc signed. |
I suspect this is due to
|
The MacPorts version also fails to build on my Apple Silicon MacBook due to one of its dependencies not supporting arm64 |
Same here.
mayu@robinia ~ % brew install mas
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
bpython dstask pdftilecut
==> Updated Formulae
Updated 119 formulae.
==> New Casks
pibar pragli twobird
==> Updated Casks
Updated 72 casks.
Error: mas: no bottle available!
You can try to install from source with:
brew install --build-from-source mas
Please note building from source is unsupported. You will encounter build
failures with some formulae. If you experience any issues please create pull
requests instead of asking for help on Homebrew's GitHub, Twitter or any other
official channels.
mayu@robinia ~ % brew install --build-from-source mas
==> Downloading https://homebrew.bintray.com/bottles/carthage-0.36.0.arm64_big_s
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a8dda58b245591307897c
######################################################################## 100.0%
==> Cloning /~https://github.com/mas-cli/mas.git
Cloning into '/Users/mayu/Library/Caches/Homebrew/mas--git'...
==> Checking out tag v1.7.1
HEAD is now at b8dcb4c Merge pull request #300 from mas-cli/release-1.7.1
==> Installing dependencies for mas: carthage
==> Installing mas dependency: carthage
==> Pouring carthage-0.36.0.arm64_big_sur.bottle.tar.gz
==> Caveats
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Summary
🍺 /opt/homebrew/Cellar/carthage/0.36.0: 8 files, 7.4MB
==> Installing mas
==> carthage bootstrap --platform macOS Commandant
==> script/install /opt/homebrew/Cellar/mas/1.7.1
🍺 /opt/homebrew/Cellar/mas/1.7.1: 23 files, 1MB, built in 35 seconds
==> Caveats
==> carthage
zsh completions have been installed to:
/opt/homebrew/share/zsh/site-functions
mayu@robinia ~ % mas
zsh: killed mas
mayu@robinia ~ % mas --help
zsh: killed mas --help
mayu@robinia ~ % codesign --verify --deep --verbose /opt/homebrew/bin/mas
/opt/homebrew/bin/mas: invalid signature (code or signature have been modified)
In architecture: arm64
mayu@robinia ~ % |
Any news on this? mas-cli is still immediately killed on M1:
|
I tried your solution, @chris-araman, and it is not enough, here is what I then get;
It seems we will also need to wait for Commandant.framework to release an arm64 version... |
OK I have found I also needed to remove all references to VALID_ARCH, the corresponding pull request is here: #314 |
Bad news, even though I rebuilt everything taking into account @chris-araman's work, as described in #314, the binary still crashes... |
Thanks for digging in @fabriceb. I worried my change wasn't sufficient. |
Fix due out soon in mas 1.8 |
Your Environment
mas version
: 1.7.1system_profiler SPSoftwareDataType -detailLevel mini
): 11.0.1mas Install Method
brew install mas
(homebrew-core).pkg
installer from releasesDescribe the Bug
I've installed mas on an M1. Whenever I try to use mas in any way, it exits with a SIGKILL. I've tried using mas under fish, bash, and zsh (both macOS-provided and through Homebrew).
To Reproduce
Steps to reproduce the behavior:
mas
at a command promptExpected Behavior
mas works
Actual Behavior
mas is killed by SIGKILL
Screenshots, Terminal Output
Additional Context
If I install mas under Rosetta 2, it works as expected. The problem is specific to native M1.
The text was updated successfully, but these errors were encountered: