bbqsrc/cargo-ndk

Install cargo-ndk failed

Closed this issue · 4 comments

Macbook M1
rustc 1.77.2 (25ef9e3d8 2024-04-09)
cargo install cargo-ndk

error: failed to run custom build command for `syn v1.0.109`

Caused by:
  process didn't exit successfully: `/var/folders/03/t8ftyvfj3437x37njdhz9hlm0000gn/T/cargo-installAxtc9W/release/build/syn-8a34bbb3af64b1db/build-script-build` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `thiserror v1.0.58`

Caused by:
  process didn't exit successfully: `/var/folders/03/t8ftyvfj3437x37njdhz9hlm0000gn/T/cargo-installAxtc9W/release/build/thiserror-c716b6e6ef3fd685/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to run custom build command for `serde v1.0.197`

Caused by:
  process didn't exit successfully: `/var/folders/03/t8ftyvfj3437x37njdhz9hlm0000gn/T/cargo-installAxtc9W/release/build/serde-8e7e77be8e958097/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to run custom build command for `libc v0.2.153`

Caused by:
  process didn't exit successfully: `/var/folders/03/t8ftyvfj3437x37njdhz9hlm0000gn/T/cargo-installAxtc9W/release/build/libc-ff873a4d4019b4e9/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to run custom build command for `proc-macro2 v1.0.79`

Caused by:
  process didn't exit successfully: `/var/folders/03/t8ftyvfj3437x37njdhz9hlm0000gn/T/cargo-installAxtc9W/release/build/proc-macro2-dccb5e150068cb35/build-script-build` (signal: 9, SIGKILL: kill)
error: failed to compile `cargo-ndk v3.5.0`, intermediate artifacts can be found at `/var/folders/03/t8ftyvfj3437x37njdhz9hlm0000gn/T/cargo-installAxtc9W`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Your process is being killed. Not related to this code in particular but something about your system setup.

Your process is being killed. Not related to this code in particular but something about your system setup.

Thanks for your reply. but why was process killed?
I even reinstalled rust, and the problem still persists.

Maybe it runs out of memory? 🤔

Maybe it runs out of memory? 🤔

No, I just rebooted the computer, and the problem is still there