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

Failed to run custom build command on Apple Silicon #935

Closed
p-kuen opened this issue Nov 29, 2020 · 3 comments
Closed

Failed to run custom build command on Apple Silicon #935

p-kuen opened this issue Nov 29, 2020 · 3 comments

Comments

@p-kuen
Copy link

p-kuen commented Nov 29, 2020

I wanted to try out actix-web with the new Apple Silicon MacBook and ran into some errors.

One of them was an error when compiling the syn crate:

patrickkuen@mbp-von-patrick clime-server % cargo build
    Updating crates.io index
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.52
error: failed to run custom build command for `syn v1.0.52`

Caused by:
  process didn't exit successfully: `/Users/patrickkuen/Developer/cloudacy/clime/clime-server/target/debug/build/syn-68e8dc1d3fac40d1/build-script-build` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...
error: build failed

rustup-toolchain:

beta-aarch64-apple-darwin (default)
rustc 1.49.0-beta.2 (bd26e4e54 2020-11-24)

Steps to reproduce

  1. Create a new project using cargo new
  2. Add the syn = "1.0" package under Cargo.toml
  3. Run cargo build
@dtolnay
Copy link
Owner

dtolnay commented Nov 29, 2020

Thanks -- I'm sure I won't be able to reproduce this, but I would accept a PR to fix it.

@p-kuen
Copy link
Author

p-kuen commented Nov 29, 2020

Thanks for your fast answer. I would be glad to help - I am not a rust pro, so where can I find clearer error messages to start with?

@p-kuen p-kuen changed the title Failed to run custom build command Failed to run custom build command on Apple Silicon Nov 29, 2020
@p-kuen
Copy link
Author

p-kuen commented Nov 29, 2020

After some tests with different packages it seems that every package using a custom build.rs crashes with this error. Therefore I created a new issue on the cargo package (rust-lang/cargo#8913).

@dtolnay dtolnay closed this as completed Nov 29, 2020
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

2 participants