Closed
Description
Empty cargo project with fn main() {}
. Target is nightly-2020-09-08-x86_64-pc-windows-gnu, there's the latest (9.2.0) GCC from TDM-GCC in the PATH.
$ cargo build
Compiling rusttest v0.1.0 (C:\dev-projects\rusttest)
error: linking with `x86_64-w64-mingw32-gcc` failed: exit code: 1
|
[...]
= note: C:/dev-tools/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgcc_eh
collect2.exe: error: ld returned 1 exit status
I tried pinpointing the exact version where it breaks, but because some nightlies are broken I could only determine a range:
rustup default ... |
Result |
---|---|
nightly-2020-08-29 |
Builds ok |
nightly-2020-08-30 |
no release found |
nightly-2020-08-31 |
no release found |
nightly-2020-09-01 |
no release found |
nightly-2020-09-02 |
error: component 'rustfmt' [...] is unavailable [...] |
nightly-2020-09-03 |
error: component 'rustfmt' [...] is unavailable [...] |
nightly-2020-09-04 |
error: component 'rustfmt' [...] is unavailable [...] |
nightly-2020-09-05 |
error: component 'rustfmt' [...] is unavailable [...] |
nightly-2020-09-06 |
error: component 'rustfmt' [...] is unavailable [...] |
nightly-2020-09-07 |
Build error |
Metadata
Metadata
Assignees
Labels
Area: linking into static, shared libraries and binariesCategory: This is a bug.Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcToolchain: GNU, Operating system: WindowsRelevant to the compiler team, which will review and decide on the PR/issue.Performance or correctness regression from stable to nightly.