-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Missing linker symbols with incremental build #86049
Comments
@rustbot label +A-incr-comp +O-windows-msvc +T-compiler |
Possibly related to #81280 (which would make it independent of windows). |
I'll yank the windows tag. I don't know why I assumed that just because it was on windows it would be windows specific. Maybe it's that I'm still figuring out how to do this tagging thing. In any case, I'm sorry for the error! @rustbot label -O-windows-msvc |
Just got this error while linking
|
I'm compiling a project of mine with both --release and incremental. And after a certain code change i'm getting linker errors:
This is extremely fragile, and almost any attempt to minimize the issue, or even really preserve for posterity is unsuccessful. (as a specific example: this binary depends on another rust project on local filesystem. Trying to move them both to a dedicated place triggers a recompilation in a way that makes the bug disappear) (but raw
rustc
invocation on the copy of thesniffer
itself seems to result in linkage errors, as desired).Potentially related: #61917 , #45929
-Ccodegen-units=9999
doesn't seem to do anything.Let me know if there's anything i can do to get meaningful diagnostics.
I'm not comfortable sharing the repro (i.e. the full source folder + target/ directory) publicly, but I'm happy to do so in private for whoever is willing to minimize/debug this (figuring out the exact logistics of this seem to be easiest if you @ me on Discord -
moxian#8121
)Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: