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

build command crashes when "panic" codegen option is set to "abort" #443

Closed
hhirtz opened this issue Jun 7, 2021 · 1 comment
Closed

Comments

@hhirtz
Copy link

hhirtz commented Jun 7, 2021

cargo version: cargo 1.54.0-nightly (e931e4796 2021-05-24) and cargo 1.52.0 (69767412a 2021-04-21)

html5ever version: 57eb334

 $ RUSTFLAGS="-C panic=abort" cargo build
error: failed to run custom build command for `markup5ever v0.10.1 (/home/hubert/programmes/html5ever/markup5ever)`

Caused by:
  process didn't exit successfully: `/home/hubert/programmes/html5ever/target/debug/build/markup5ever-209a2feed7c451e1/build-script-build` (signal: 6, SIGABRT: process abort signal)
warning: build failed, waiting for other jobs to finish...
error: build failed

Otherwise, when using RUSTFLAGS="-C panic=unwind" (the default option for this codegen option) the build succeeds on both stable and nightly.

See https://doc.rust-lang.org/rustc/codegen-options/index.html#panic

@hhirtz
Copy link
Author

hhirtz commented Jun 7, 2021

Sorry for the noise, the crash is due to proc-macro2...

dtolnay/proc-macro2#218

@hhirtz hhirtz closed this as completed Jun 7, 2021
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