-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
rustdoc reproducibility issue due to nondeterministic anon.llvm.<hash> #126976
Comments
The |
@bjorn3 Any pointers here on this issue? |
I have no clue what the problem is unfortunately. |
May be your question is about a bit more detailed problem description? The 'rustdoc' binary is not reproducible when the rust sources are built in two different directories. This is occurring with rust upstream sources (I verified on 1.78 sources). In short summary, the rcgu's generated between the builds are not identical on rustdoc crate, which is not the case with other crates. |
With problem I meant what the cause of this problematic behavior is. Should have been clearer. |
I also want to note that we currently work around the issue with this patch to rust's build system. e.g. setting -Clto=off for rustdoc only:
|
I am facing a reproducibility issue with rustdoc in Yocto project. The issue is happening due to a different llvm.<hash> generation between the builds.
What could be the reason for this llvm.<hash> is nondeterministic. Any optimization settings causing this? (I tried the PGO enabling/disabling but has no effect).
[Info] - This issue we've seen in past https://internals.rust-lang.org/t/rustdoc-binary-is-not-reproducible/20027. There we concluded the issue is fixed by disabling PGO and setting tools = ["rust-demangler",] but it is not fixed. Somehow with those settings rustdoc is not generating at all. (We found that by removing tools = ["rust-demangler",] the rustdoc is generated)
The text was updated successfully, but these errors were encountered: