Skip to content

"cannot find -lgcc_eh" since nightly-2020-09-08-x86_64-pc-windows-gnu #76984

Closed
@AndreKR

Description

@AndreKR

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

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.E-needs-bisectionCall for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustcO-windows-gnuToolchain: GNU, Operating system: WindowsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions