-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"cannot find -lgcc_eh" since nightly-2020-09-08-x86_64-pc-windows-gnu #76984
Comments
I'm able to reproduce with TDC-GCC (9.2.0) but not with MinGW-w64 GCC (10.2.0), so it seems to be compiler specific. If I'm not mistaken, only MinGW is officially supported. I was not able to get |
I removed the TDM-GCC directory from my PATH and I did not add any other directory to it and now Rust/Cargo is using |
It was changed in #76167 @AndreKR you can disable it with
The motivation for this change was the fact when crate builds C code it will use compiler from the path (Rust bundles linker but not the compiler). |
According to the WG-prioritization discussion on Zulip, we have decided to close this issue, as TDM-GCC is unsupported, and there's a workaround available. |
Say I meet this problem today when I just want to compile a hello world rust file. As I don't want to remove tdm-gcc from my So I just copied the Well, I only tried the hello world file and a hello world cargo project. |
@Xdminsy you can use |
Ohh thank you, this environment variable seems to be a better way. |
I changed the .cargo/config.toml like this:
And it worked for me. |
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.I tried pinpointing the exact version where it breaks, but because some nightlies are broken I could only determine a range:
rustup default ...
nightly-2020-08-29
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
The text was updated successfully, but these errors were encountered: