Compiliation aborted because it can not delete dep-graph.bin

b46e100
Opened by Paul Dicker at 2019-12-18 05:16:37

Probably not important, but I report it anyway. See this travis log: https://travis-ci.org/rust-lang-nursery/rand/jobs/347348670

The first test command finishes successfully, but the second fails because one of the (leftover?) incremental compilation files can not be deleted (because it does not exist).

The command "cargo test --tests --no-default-features --features=alloc" exited with 0.
$ cargo test --all --features serde-1,log,nightly
   Compiling rand v0.4.2 (file:///home/travis/build/rust-lang-nursery/rand)
error: Failed to delete invalidated or incompatible incremental compilation session directory contents `/home/travis/build/rust-lang-nursery/rand/target/debug/incremental/rand-1tsi5gagblzct/s-eyqipa1yw1-8k3grx-working/dep-graph.bin`: No such file or directory (os error 2).
error: aborting due to previous error
error: Could not compile `rand`.
warning: build failed, waiting for other jobs to finish...
error: build failed
  1. This happens for me when executing cargo build inside the docker image janitortechnology/servo on a Google Cloud Compute Engine instance.

    Iddan Aaronsohn at 2018-09-12 23:43:12

  2. Has anyone seen this issue lately? any chance of a smaller reproduction?

    Steve Klabnik at 2019-12-18 05:16:37