Open
Description
Problem
I interrupted cargo while running a build. Now, all builds fail:
= note: /usr/bin/ld: /home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/compiletest-97f2ebb77df2d450.3lz51tdautzkzp0f.rcgu.o: in function `compiletest::runtest::TestCx::run_revision':
3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0xefc): undefined reference to `hashbrown::map::HashMap<K,V,S>::with_hasher'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x11d1): undefined reference to `compiletest::runtest::TestCx::get_lines'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1239): undefined reference to `hashbrown::map::HashMap<K,V,S>::insert'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x150f): undefined reference to `compiletest::runtest::TestCx::get_lines'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x156e): undefined reference to `hashbrown::map::HashMap<K,V,S>::insert'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x174b): undefined reference to `anon.5b390069a16cdb298c166ae64fea27d2.27.llvm.13332668346296994633'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1820): undefined reference to `<alloc::vec::Vec<T> as alloc::vec::SpecFromIter<T,I>>::from_iter'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x19e5): undefined reference to `hashbrown::map::HashMap<K,V,S>::get_mut'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1c89): undefined reference to `alloc::vec::Vec<T>::remove'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1d8d): undefined reference to `hashbrown::map::HashMap<K,V,S>::iter'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1df4): undefined reference to `<hashbrown::map::Iter<K,V> as core::iter::traits::iterator::Iterator>::next'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1e85): undefined reference to `<&T as core::fmt::Debug>::fmt'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x1f30): undefined reference to `core::ptr::drop_in_place'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x6dd6): undefined reference to `<&mut T as core::fmt::Debug>::fmt'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x6e8a): undefined reference to `<std::collections::hash::map::HashMap<K,V,S> as core::fmt::Debug>::fmt'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x6fda): undefined reference to `compiletest::runtest::TestCx::fatal_proc_rec_with_ctx'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x75ae): undefined reference to `core::ptr::drop_in_place'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x7c8e): undefined reference to `core::ptr::drop_in_place'
/usr/bin/ld: 3lz51tdautzkzp0f:(.text._ZN11compiletest7runtest6TestCx12run_revision17h53bfdde18ccb76d8E+0x81d5): undefined reference to `core::ptr::drop_in_place'
/usr/bin/ld: /home/joshua/rustc/build/x86_64-unknown-linux-gnu/stage0-tools/x86_64-unknown-linux-gnu/release/deps/compiletest-97f2ebb77df2d450: hidden symbol `_ZN9hashbrown3map24HashMap$LT$K$C$V$C$S$GT$7get_mut17h33f0137c7ac86501E' isn't defined
/usr/bin/ld: final link failed: bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
error: could not compile `compiletest`
Steps
I can't reproduce this reliably. I was running RUST_BACKTRACE=1 xpy test src/test/rustdoc --test-args rustdoc/unit-return.rs
after modifying compiletest, so it was building compiletest itself. I hit ctrl+c a couple different times to make changes.
Possible Solution(s)
Notes
Output of cargo version
:
cargo 1.48.0-beta (65cbdd2 2020-10-14)