[rb-general] Reproducible build of a GCC cross-compiler?
Bernhard M. Wiedemann
bernhardout at lsmod.de
Wed Jun 12 13:07:52 UTC 2019
On 12/06/2019 14.42, Sebastian Huber wrote:
> do you have a log of the cross compiler build which shows the GCC
> configure command line? An example for a proven reproducible build would
> be a big help for me.
This week, I confirmed that openSUSE's gcc9 + gcc8 can build
reproducibly (non-cross) when we disable Profile Guided Optimization
(PGO) with
%do_profiling 0
Unfortunately, this also loses 8% compiler performance, so we leave PGO
enabled in our official builds for now.
gcc9 needed 1 new fix:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90778
in addition to previous fixes like
https://gcc.gnu.org/ml/gcc-patches/2018-06/msg00516.html
https://build.opensuse.org/package/view_file/devel:gcc/gcc8/gcc8-reproducible-builds-buildid-for-checksum.patch
plus all the normalizations we apply in our build env (constant path,
user, umask, locale, timezone)
https://build.opensuse.org/package/show/devel:gcc/gcc9
has build logs
I'll also test a cross-ppc64le-gcc8 build to see if it behaves worse,
but would not expect so.
Ciao
Bernhard M.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.reproducible-builds.org/pipermail/rb-general/attachments/20190612/9a9748e9/attachment.sig>
More information about the rb-general
mailing list