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

Rustc reports error on Ctrl-C during linking #124265

Open
bjorn3 opened this issue Apr 22, 2024 · 0 comments
Open

Rustc reports error on Ctrl-C during linking #124265

bjorn3 opened this issue Apr 22, 2024 · 0 comments
Labels
C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@bjorn3
Copy link
Member

bjorn3 commented Apr 22, 2024

^C
gh-bjorn3@dev-desktop-eu-1:~/cg_clif$ error: linking with `cc` failed: signal: 2 (SIGINT)
  |
  = note: LC_ALL="C" PATH="/home/gh-bjorn3/cg_clif/dist/lib/rustlib/aarch64-unknown-linux-gnu/bin:/home/gh-bjorn3/.local/bin:/home/gh-bjorn3/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "cc" "/tmp/rustc3QDuN1/symbols.o" [...]
  = note: 

error: aborting due to 1 previous error

Rustc should probably check if it received SIGINT itself and if so ignore child processes exiting with SIGINT.

This is almost certainly a regression from #111769

@bjorn3 bjorn3 added A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. labels Apr 22, 2024
@fmease fmease added T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. and removed A-diagnostics Area: Messages for errors, warnings, and lints labels Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants