-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Unresolved external symbols when linking with incremental compilation #45929
Comments
Got an error (+ some warnings) which I think is related in a different, smaller project (same compiler as above). https://github.com/Marwes/tensile The warnings occur from time to time but the ICE only happened once and I didn't have backtrace when it happened (added it after in case it happens again). EDIT: Replaced error with one including backtrace
|
Thank you for the bug report! I'll look into it. |
These seem to be two different errors (although they might be related). Does building |
Yep, I have seen it a few times there as well and have been back and forth on trying to use incremental compliation on it. I'd guess the frequency is related to code size though as it does not appear as often. |
Could you try building non-incrementally but with |
None so far. It seems to work just as just disabling incremental does. |
Thanks @Marwes! Compilation failing with |
Had this happen with incremental compilation disabled now as well so incremental compilation may not be the culprit after all. |
I believe that I am hitting a similar issue. In my case, clearly the culprit is having more than one To get a bit of context, I am compiling on windows and I use some of the UWP features in some C++ code that gets link into the final executable. I recently updated my rust version to the fix in #47507, because I needed to filter out
However, now that incremental compilation is activated by default, this option is somewhat ignored as I always get multiple codegen units, see link output: Link output
|
FWIW I don't see this issue any longer so that might be a different issue. |
Triage: Closing since the issue has been reported to not occur for 5 years. |
@Enselic I am also experiencing this issue btw, heres my error:
|
While working on https://github.com/Marwes/gluon_language-server/tree/linking for a while, editing code and running
cargo test
I get linking errors aboutunresolved external symbols
.Disabling incremental compilation fixes it.
It might be relevant that I am using
[patch.crates-io]
and msvc as well.I can try to produce a smaller reproduction though given the unpredictable nature I am hoping that something in this post hops out at someone.
The text was updated successfully, but these errors were encountered: