cargo-bins / cargo-quickinstall

pre-compiled binary packages for `cargo install`
Apache License 2.0
218 stars 10 forks source link

Broken build for `broot` on aarch64-apple-darwin #255

Open ilyagr opened 4 months ago

ilyagr commented 4 months ago

Installing broot 1.40.0 from QuickInstall on Mac OS Apple Silicon results in a broken build.

$ uname -a
Darwin macaw.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May  1 20:14:38 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6020 arm64 arm Darwin

$ cargo binstall broot --force
 INFO resolve: Resolving package: 'broot'
 INFO resolve: Verified signature for package 'broot-1.40.0-aarch64-apple-darwin': timestamp:1721145288  file:broot-1.40.0-aarch64-apple-darwin.tar.gz    hashed
 WARN The package broot v1.40.0 (aarch64-apple-darwin) has been downloaded from third-party source QuickInstall
 INFO This will install the following binaries:
 INFO   - broot (broot -> /Users/ilyagr/.cargo/bin/broot)
Do you wish to continue? yes/[no]
? yes
 INFO Installing binaries...
 INFO Done in 3.464556292s

$ ~/.cargo/bin/broot
fish: Job 1, '~/.cargo/bin/broot' terminated by signal SIGILL (Illegal instruction)
                              ⏎

OTOH, installing broot 1.40.0 with cargo install --locked --features clipboard broot works for me.

NobodyXu commented 4 months ago

Our CI uses cargo-auditable to build the binary, I suppose that could be the problem?

ilyagr commented 4 months ago

I don't have an idea of what's going on, but I can perhaps test another binary if you try to do something differently.

I'm also wondering whether the Linux QuickInstall binary works. I don't currently have a good way to test x86 Linux binaries, but maybe I'll set some VM up.

ilyagr commented 4 months ago

Actually, I realized I could test the Linux binary via a Codespace or Gitpod. The x86_64-unknown-linux-gnu broot binary seems to work OK.

NobodyXu commented 4 months ago

I changed the CI to macOS 14 which uses M1, perhaps that will fix it

NobodyXu commented 4 months ago

I've removed broot 1.40.0 aarch64-apple-darwin build, it should then be rebuilt later.

ilyagr commented 4 months ago

The newly recreated https://github.com/cargo-bins/cargo-quickinstall/releases/download/broot-1.40.0/broot-1.40.0-aarch64-apple-darwin.tar.gz still fails with the same message, unfortunately.

The x86 version runs OK via Rosetta.