[BUG] Installation failed on macOs
xobs opened this issue · 3 comments
Checks
- I have read the troubleshooting section and still think this is a bug.
Describe the bug you encountered:
Running cargo install fd-find
fails on macOs:
❯ cargo install fd-find
Updating crates.io index
Installing fd-find v9.0.0
Updating crates.io index
Compiling libc v0.2.152
Compiling bitflags v2.4.2
Compiling proc-macro2 v1.0.76
Compiling crossbeam-utils v0.8.19
Compiling memchr v2.7.1
Compiling rustix v0.38.30
Compiling unicode-ident v1.0.12
Compiling utf8parse v0.2.1
Compiling cfg-if v1.0.0
Compiling autocfg v1.1.0
Compiling regex-syntax v0.8.2
Compiling anstyle v1.0.4
Compiling colorchoice v1.0.0
Compiling anstyle-query v1.0.2
Compiling bitflags v1.3.2
Compiling anstyle-parse v0.2.3
Compiling clap_lex v0.6.0
Compiling strsim v0.10.0
Compiling heck v0.4.1
Compiling anyhow v1.0.79
Compiling anstream v0.6.9
Compiling same-file v1.0.6
Compiling log v0.4.20
error: failed to run custom build command for `crossbeam-utils v0.8.19`
Caused by:
process didn't exit successfully: `/var/folders/x3/tm61vv4s33jggpmy312j9swh0000gn/T/cargo-installNPH8Lf/release/build/crossbeam-utils-1ab957f49557e56b/build-script-build` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `fd-find v9.0.0`, intermediate artifacts can be found at `/var/folders/x3/tm61vv4s33jggpmy312j9swh0000gn/T/cargo-installNPH8Lf`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
~/Code took 3s
❯
Describe what you expected to happen:
fd-find
should install
What version of fd
are you using?
fish: Unknown command: fd
Which operating system / distribution are you on?
Darwin 23.2.0 arm64
fish: Unknown command: lsb_release
Note this appears to be a manifestation of rust-lang/cargo#8913 wherein custom build scripts fail with SIGKILL
There does not appear to be a workaround, however this is not a bug with fd
. If anything, it's a bug in the documentation, but more practically it's just Apple being weird.
There does not appear to be a workaround
Any chance this comment helps? rust-lang/cargo#8913 (comment)
It didn't help, no. But thank you for finding that.
I installed fd via homebrew, which did the trick. It's just odd that I can't build it from source.
There's something tricky going on, as evidenced by the many comments there. Now there's a record in the bugtracker here so people can at least have a solution and the issue is documented.