-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Build error for release profile on x86_64-pc-windows-gnu
#11586
Comments
Hmm, I spend some time looking into this but I'm unsure what's happening. I'm successfully able to build ripgrep and romejs with the |
Okay, I'm able to build ruff after I disabled link time optimizations (setting I'm still unable to reproduce this with ripgrep. Setting This makes me wonder if, by chance, this is a linker issue. @BurntSushi any guesses? |
Reproduced same on GHA: |
Regressed by #9031 and related to #9245. Workaround:
Originally posted by @cr1901 in #9245 (comment) |
@T-256 nice for finding these details. I guess a work around on our side could be to set LTO to "fat" or disable it for this specific target (I think that's possible?) |
Yeah the specific bug is related to something about inlining functions with statics: rust-lang/rust#109797 And see also: BurntSushi/memchr#145 |
Another workaround is to link with LLD instead of default ld.bfd, that way you can still use ThinLTO. |
@mati865 I tested with [target.x86_64-pc-windows-gnu]
linker = "rust-lld" but I got errors even on
|
@T-256 you cannot use LLD like that for Unix and windows-gnu targets, it has to be called through the compiler to add the libraries. |
Debug profile, built successfully, but release profile produces errors. here is log file:
err.log
abstract:
The text was updated successfully, but these errors were encountered: