-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
gcc10: build is not deterministic #108475
Comments
To reproduce:
|
When I run that twice on my machine, however, it produces the same output each time - so perhaps some characteristic of the build machine leaking through? |
#445 introduced the "profiledCompiler" flag for gcc. #445 last comments are quite explicit about determinism vs performance. |
Used two machines:
With this applied:
Ran the build on both.
After building on two different machines, got twice the same result:
Admittedly, the patch is blunt and need to be refined, but could it just be the |
yay? |
ack on a Dell XPS15 (on 29a15e2 plus that change):
|
I marked this as stale due to inactivity. → More info |
#112928 has since been merged |
Describe the bug
Building gcc twice does not necessarily result in the exact same binary. This makes auditing harder. For more information see https://reproducible-builds.org .
This is a particularly interesting case because gcc-10.2.0 is part of the build closure of nixos.iso_minimal, which we use as a milestone (https://r13y.com, https://arnout.engelen.eu/nixos-r13y/report/)
The text was updated successfully, but these errors were encountered: