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

ICE: incremental compile + thin LTO immediately panics on 2nd compile with "failed to open bitcode file" #66371

Closed
pnkfelix opened this issue Nov 13, 2019 · 1 comment
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@pnkfelix
Copy link
Member

Steps to reproduce:

% mkdir temp
% cd temp
% touch lib.rs
% rustc +nightly --version
rustc 1.40.0-nightly (4f03f4a98 2019-11-12)
% rustc +nightly lib.rs --crate-type=lib -C incremental=incr -C lto=thin
% rustc +nightly lib.rs --crate-type=lib -C incremental=incr -C lto=thin
thread 'rustc' panicked at 'failed to open bitcode file `/home/pnkfelix/Dev/Mozilla/issue59535/foo/temp/incr/lib-2274d9nt8ooh9/s-fht\
by5f755-xye94s-working/41tp7ytbumzkt3gk.pre-lto.bc`: No such file or directory (os error 2)', src/librustc_codegen_ssa/back/write.rs\
:1877:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

note: rustc 1.40.0-nightly (4f03f4a98 2019-11-12) running on x86_64-unknown-linux-gnu

note: compiler flags: -C incremental -C lto=thin --crate-type lib

(If its common knowledge that one cannot use ThinLTO with incremental compiles, I certainly was not aware of it.)

@pnkfelix pnkfelix added A-incr-comp Area: Incremental compilation T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ labels Nov 13, 2019
@pnkfelix pnkfelix changed the title ICE: incremental compile + thin LTO immediately panics with failed to open bitcode file ICE: incremental compile + thin LTO immediately panics on 2nd compile with failed to open bitcode file Nov 13, 2019
@pnkfelix pnkfelix changed the title ICE: incremental compile + thin LTO immediately panics on 2nd compile with failed to open bitcode file ICE: incremental compile + thin LTO immediately panics on 2nd compile with "failed to open bitcode file" Nov 13, 2019
@jonas-schievink jonas-schievink added the C-bug Category: This is a bug. label Nov 13, 2019
@rust-lang-glacier-bot rust-lang-glacier-bot added the glacier ICE tracked in rust-lang/glacier. label Nov 14, 2019
brainplot pushed a commit to brainplot/dotfiles that referenced this issue Dec 6, 2019
brainplot pushed a commit to brainplot/dotfiles that referenced this issue Feb 23, 2020
brainplot pushed a commit to brainplot/dotfiles that referenced this issue Feb 24, 2020
brainplot pushed a commit to brainplot/dotfiles that referenced this issue Feb 24, 2020
@Alexendoo
Copy link
Member

Fixed by #72020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. glacier ICE tracked in rust-lang/glacier. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ 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

4 participants