Skip to content
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

reproducible builds issue #230

Open
bmwiedemann opened this issue Jul 31, 2024 · 2 comments
Open

reproducible builds issue #230

bmwiedemann opened this issue Jul 31, 2024 · 2 comments

Comments

@bmwiedemann
Copy link

While working on reproducible builds for openSUSE (sponsored by the NLnet NGI0 fund), I found that our pop-launcher package build produces different results between a 1-core-VM and a VM with 2+ cores. This could be an indicator of some race-condition or poorly defined build-dependencies.

https://rb.zq1.de/other/pop-launcher/strings.diff.txt
shows that some symbols have variations in the ID at the end.
e.g.

-_ZN4core3ptr43drop_in_place$LT$zvariant..value..Value$GT$17he5bf3c79d5d19a4aE.28032
+_ZN4core3ptr43drop_in_place$LT$zvariant..value..Value$GT$17he5bf3c79d5d19a4aE.28050

The two full binaries are also available in the same directory.

@mmstick
Copy link
Member

mmstick commented Jul 31, 2024

Rust projects will always have different binaries when building with a different number of codegen units. You can configure your build system to 1 if you want it to use only one.

bmwiedemann added a commit to bmwiedemann/launcher that referenced this issue Jul 31, 2024
as suggested in
https://nnethercote.github.io/perf-book/build-configuration.html#codegen-units

to achieve reproducible builds.
It can also enhance optimizations of the produced binary.

Fixes pop-os#230

This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund.
@bmwiedemann
Copy link
Author

bmwiedemann commented Jul 31, 2024

bmwiedemann added a commit to bmwiedemann/launcher that referenced this issue Jul 31, 2024
as suggested in
https://nnethercote.github.io/perf-book/build-configuration.html#codegen-units

to achieve reproducible builds.
It can also enhance optimizations of the produced binary.

Fixes pop-os#230

This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants