Skip to content

encountered incremental compilation error with normalize_generic_arg_after_erasing_regions #91235

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

Open
WaffleLapkin opened this issue Nov 25, 2021 · 3 comments
Labels
A-incr-comp Area: Incremental compilation C-bug Category: This is a bug. 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

@WaffleLapkin
Copy link
Member

I've got an "encountered incremental compilation error" (#84970) while running x test library/core --doc --stage 1

Meta

1.57.0-beta.2 (7e4c9ee 2021-10-22)

Error output

error: internal compiler error: encountered incremental compilation error with normalize_generic_arg_after_erasing_regions(7755a2f7701a978-b4a7594ac116bae6)
  |
  = help: This is a known issue with the compiler. Run `cargo clean -p rustc_ty_utils` or `cargo clean` to allow your project to compile
  = note: Please follow the instructions below to create a bug report with the provided information
  = note: See <https://github.com/rust-lang/rust/issues/84970> for more information
Full output

Running a second time with RUST_BACKTRACE=1 succeded, so I don't have a backtrace.

Updating only changed submodules
Submodules updated in 0.15 seconds
    Finished dev [unoptimized] target(s) in 0.56s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
    Finished release [optimized + debuginfo] target(s) in 0.30s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling rustc_middle v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_middle)
   Compiling rustc_infer v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_infer)
   Compiling rustc_metadata v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_metadata)
   Compiling rustc_mir_dataflow v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_mir_dataflow)
   Compiling rustc_symbol_mangling v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_symbol_mangling)
   Compiling rustc_incremental v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_incremental)
   Compiling rustc_monomorphize v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_monomorphize)
   Compiling rustc_query_impl v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_query_impl)
   Compiling rustc_passes v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_passes)
   Compiling rustc_save_analysis v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_save_analysis)
   Compiling rustc_codegen_ssa v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_codegen_ssa)
   Compiling rustc_resolve v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_resolve)
   Compiling rustc_trait_selection v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_trait_selection)
   Compiling rustc_codegen_llvm v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_codegen_llvm)
   Compiling rustc_lint v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_lint)
   Compiling rustc_const_eval v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_const_eval)
   Compiling rustc_ty_utils v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_ty_utils)
   Compiling rustc_traits v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_traits)
   Compiling rustc_mir_build v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_mir_build)
   Compiling rustc_typeck v0.0.0 (/home/waffle/projects/repos/rust/compiler/rustc_typeck)
error: internal compiler error: encountered incremental compilation error with normalize_generic_arg_after_erasing_regions(7755a2f7701a978-b4a7594ac116bae6)
  |
  = help: This is a known issue with the compiler. Run `cargo clean -p rustc_ty_utils` or `cargo clean` to allow your project to compile
  = note: Please follow the instructions below to create a bug report with the provided information
  = note: See <https://github.com/rust-lang/rust/issues/84970> for more information

thread 'rustc' panicked at 'Found unstable fingerprints for normalize_generic_arg_after_erasing_regions(7755a2f7701a978-b4a7594ac116bae6): rustc_query_system::query::plumbing::QueryCacheStore<bool>', /rustc/7e4c9eebd82e9fa71f74626e5ba4e3494b8aba25/compiler/rustc_query_system/src/query/plumbing.rs:615:13
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/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: rustc 1.57.0-beta.2 (7e4c9eebd 2021-10-22) running on x86_64-unknown-linux-gnu

note: compiler flags: -Z symbol-mangling-version=v0 -Z macro-backtrace -Z tls-model=initial-exec -Z unstable-options -Z binary-dep-depinfo -Z force-unstable-if-unmarked -C opt-level=3 -C embed-bitcode=no -C debuginfo=1 -C debug-assertions=on -C incremental -C link-args=-Wl,-rpath,$ORIGIN/../lib -C link-args=-fuse-ld=lld -C prefer-dynamic -C llvm-args=-import-instr-limit=10 --crate-type lib

note: some of the compiler flags provided by cargo are hidden

query stack during panic:
#0 [normalize_generic_arg_after_erasing_regions] normalizing `rustc_query_system::query::plumbing::QueryCacheStore<<rustc_query_system::query::caches::DefaultCacheSelector as rustc_query_system::query::caches::CacheSelector<rustc_span::def_id::LocalDefId, core::option::Option<rustc_middle::hir::Owner>>>::Cache>`
#1 [layout_of] computing layout of `rustc_query_system::query::plumbing::QueryCacheStore<<rustc_query_system::query::caches::DefaultCacheSelector as rustc_query_system::query::caches::CacheSelector<rustc_span::def_id::LocalDefId, core::option::Option<rustc_middle::hir::Owner>>>::Cache>`
end of query stack
error: could not compile `rustc_ty_utils` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
Build completed unsuccessfully in 0:05:27

@WaffleLapkin WaffleLapkin added C-bug Category: This is a bug. 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. labels Nov 25, 2021
@Aaron1011
Copy link
Member

@WaffleLapkin Were you modifying the compiler locally before performing this build? I'm not sure where rustc_query_system::query::plumbing::QueryCacheStore<bool> is coming from, since bool is not a QueryCache.

@WaffleLapkin
Copy link
Member Author

@Aaron1011 no, I only updated the core (it's this PR: #91216)

@pierwill
Copy link
Member

pierwill commented Jan 12, 2022

@rustbot label +A-incr-comp

@rustbot rustbot added the A-incr-comp Area: Incremental compilation label Jan 12, 2022
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. 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