-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Failure to compile unit tests for procedural macros on stable-x86_64-pc-windows-gnu #128944
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
I've found out (looking at #103939) that it is possible to install MSYS2, then install clang for MSYS2 and use the clang's executable. (I did not test it for now. ) Is it the currently optimal workaround or are there easier ways to make things work with GNU toolchain on Windows? |
I tried different stable versions: seems like the tests compiled but failed with I also found the version that worked out of the box. The last stable version I found to support proc-macro tests on Windows GNU toolchain is 1.43. Even tried a real test with proc-macro2 (used 0.4 version), works fine. |
We are running into the same issue. Reproduced this on a fresh windows VM with serde_derive, but it seems to happen on every proc macro crate we tried when running It works on 1.77.2:
Fails on 1.78.0
dlltool.exe is part of the rust-mingw component, so we tried fixing up the path manually:
Unfortunately I have not found a way to get any more detailed logging out of this than |
I tried the following code.
In the proc-macro nested crate
macros-derive
:In the main crate:
I expected to see this happen:
cargo test
runs to completion.Instead, compilation of the test target fails:
If I add dlltool from self-contained folder (from inside the toolchain folder) to PATH, the compilation fails with:
Stable version:
Nightly version (same result):
The text was updated successfully, but these errors were encountered: