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

bug?: Build script fails without strip = "symbols" #448

Closed
onkoe opened this issue Apr 8, 2024 · 1 comment
Closed

bug?: Build script fails without strip = "symbols" #448

onkoe opened this issue Apr 8, 2024 · 1 comment

Comments

@onkoe
Copy link

onkoe commented Apr 8, 2024

Sometimes, when I try to build Rust applications and libraries on my MacBook Pro M1, the proc-macro2 build script will fail.

This has been occurring for a looong time, likely due to some Homebrew dependencies I've had to install.

However, the build only fails on release builds. To check if the issue occurs for a reason, I tried building this crate only with --release and some configuration. However, the build succeeds with Cargo.toml containing:

[profile.release]
strip = "none"

Unfortunately, this doesn't bring me closer to the issue, as the success in debug mode makes it seem difficult to get additional debugging information.

Additional Steps

If you have any suggestions on additional steps to try, or build.rs adjustments to tell Cargo to emit failure information, I'd be happy to try them out.

edit: here's the output on cargo b --release:
out.txt

@onkoe
Copy link
Author

onkoe commented Apr 8, 2024

This appears to be a known bug with Apple Silicon. rust-lang/cargo#8913

As that issue states, shells and terminals that run inside a sandbox will be disallowed from performing certain actions. Thus, the SIGKILL...

I apologize for the issue, but I hope this helps someone down the line! :)

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

1 participant