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

macOS M1 (aarch64 / arm64) builds crash #5876

Open
coolaj86 opened this issue Feb 15, 2024 · 0 comments
Open

macOS M1 (aarch64 / arm64) builds crash #5876

coolaj86 opened this issue Feb 15, 2024 · 0 comments

Comments

@coolaj86
Copy link

Expected behavior

dashd, dash-cli, dash-qt, etc should run without any issue other than the normal process of removing the quarantine bit.

Actual behavior

All CLI tools die with SIGKILL.

There are no XProtect or Gatekeeper logs as far as I can tell.

This looks like a toolchain issue (binaries in an incorrect format).

@PastaPastaPasta notes that the binaries are cross-compiled from x64 Linux.

Running codesign -s - ./bin/dash-cli will rewrite the file in such a way that it works, but the issue doesn't appear to be related to the code signing itself since other Go and Rust programs work (signed, self-signed, or unsigned) without issue.

To reproduce

  1. Download and install dashcore, and remove the quarantine bit:
    curl -L -O https://github.com/dashpay/dash/releases/download/v20.0.4/dashcore-20.0.4-arm64-apple-darwin.tar.gz
    mkdir -p ~/.local/opt/
    tar xvf ./dashcore-20.0.4-arm64-apple-darwin.tar.gz -C ~/.local/opt/
    xattr -r -d com.apple.quarantine ~/.local/opt/dashcore-20.0.4/
  2. Run the help
    ~/.local/opt/dashcore-20.0.4/bin/dash-cli --help
  3. See the error
    fish: Job 1, '~/.local/opt/dashcore-20.0.4/b…' terminated by signal SIGKILL (Forced quit)
    

System information

Tested on

  • MacBook Pro M1 & Mac Studio M2
  • macOS Sonoma 14.3.0 & 14.3.1
@coolaj86 coolaj86 changed the title Mac M1 Arm builds crash macOS M1 (aarch64 / arm64) builds crash Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant