est31 / cargo-udeps

Find unused dependencies in Cargo.toml
Other
1.76k stars 46 forks source link

Failed to install on Mac M1 chip #177

Closed hcoderLee closed 1 year ago

hcoderLee commented 1 year ago

When I try to install it using cargo install cargo-udeps --locked, there were couple of error:

error: failed to run custom build command for `proc-macro2 v1.0.59`

Caused by:
  process didn't exit successfully: `/var/folders/tw/7wk2h8wd2wxf0t4hkpnzfhs00000gn/T/cargo-installJE5qEo/release/build/proc-macro2-6b22f88aec67a075/build-script-build` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `libc v0.2.144`

Caused by:
  process didn't exit successfully: `/var/folders/tw/7wk2h8wd2wxf0t4hkpnzfhs00000gn/T/cargo-installJE5qEo/release/build/libc-ada3fe701d8e51cc/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to run custom build command for `thiserror v1.0.40`

Caused by:
  process didn't exit successfully: `/var/folders/tw/7wk2h8wd2wxf0t4hkpnzfhs00000gn/T/cargo-installJE5qEo/release/build/thiserror-c8685e4e45bf73be/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to run custom build command for `quote v1.0.28`

Caused by:
  process didn't exit successfully: `/var/folders/tw/7wk2h8wd2wxf0t4hkpnzfhs00000gn/T/cargo-installJE5qEo/release/build/quote-2beed181786cc048/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to run custom build command for `memchr v2.5.0`

Caused by:
  process didn't exit successfully: `/var/folders/tw/7wk2h8wd2wxf0t4hkpnzfhs00000gn/T/cargo-installJE5qEo/release/build/memchr-3fafc96c0d0f7ef1/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to compile `cargo-udeps v0.1.40 (https://github.com/est31/cargo-udeps#b6b9207d)`, intermediate artifacts can be found at `/var/folders/tw/7wk2h8wd2wxf0t4hkpnzfhs00000gn/T/cargo-installJE5qEo`

My environments: cargo: cargo 1.70.0 (ec8a8a0ca 2023-04-25) rustc: 1.70.0 (90c541806 2023-05-31) OS: macOS Ventura 13.3.1 CPU: Apple M1 Pro

est31 commented 1 year ago

Maybe this might help?

est31 commented 1 year ago

I'll close this, but if it reappears, please comment!

awakeljw commented 11 months ago

I meet the same question in M1pro Macbook even in arch -arm64e sh. when i execute cargo install fd-file, I have the errors: error: failed to run custom build command for crossbeam-utils v0.8.18

Caused by:
  process didn't exit successfully:  (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `proc-macro2 v1.0.74`

Caused by:

cargo version:cargo 1.75.0 (1d8b05cdd 2023-11-20) rustc 1.75.0 (82e1608df 2023-12-21)