Skip to content

ICE in cargo test with CARGO_INCREMENTAL=1 on Cargo #39585

Closed

Description

@alexcrichton

I've checked out Cargo at rust-lang/cargo@4ce099b and from a clean build directory I get:

$ CARGO_INCREMENTAL=1 cargo +nightly test
...
   Compiling cargo v0.18.0 (file:///home/alex/code/cargo)
   Compiling cargotest v0.1.0 (file:///home/alex/code/cargo/tests/cargotest)
error: failed to remove /home/alex/code/cargo/target/debug/deps/metadata-2a6cfcba5e51f525.metadata.o: No such file or directory (os error 2)

warning: Error finalizing incremental compilation session directory `/home/alex/code/cargo/target/debug/incremental/metadata-2kp13d1pc45a0/s-emvufj4cj6-1f76yqu-working`: No such file or directory (os error 2)

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

thread 'rustc' panicked at '/buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/session/mod.rs:450: Trying to invalidate IncrCompSession `InvalidBecauseOfErrors { session_directory: "/home/alex/code/cargo/target/debug/incremental/metadata-2kp13d1pc45a0/s-emvufj4cj6-1f76yqu-working" }`', /buildslave/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/session/mod.rs:782
note: Run with `RUST_BACKTRACE=1` for a backtrace.

error: Could not compile `cargo`.
Build failed, waiting for other jobs to finish...
error: build failed

The compiler in use is the current latest nightly, specifically:

$ rustc +nightly -vV
rustc 1.17.0-nightly (ea7a6486a 2017-02-04)
binary: rustc
commit-hash: ea7a6486a26af085862cd7a5596bb69e83d85e12
commit-date: 2017-02-04
host: x86_64-unknown-linux-gnu
release: 1.17.0-nightly
LLVM version: 3.9

Activity

  1. added
    A-incr-compArea: Incremental compilation
    I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
    on Feb 6, 2017
  2. alexcrichton commented on Feb 6, 2017

    @alexcrichton
    MemberAuthor
  3. michaelwoerister commented on Feb 6, 2017

    @michaelwoerister
    Member

    Thanks for the report!

  4. Marwes commented on Feb 7, 2017

    @Marwes
    Contributor

    Possible duplicate of #39508 ? Same error and it seems like both fail on testing a file called tests/metadata.rs

  5. added 2 commits that reference this issue on Feb 8, 2017
    9a9fe17
    3eaca41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-incr-compArea: Incremental compilationI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions