[rb-general] Reproducible build of a GCC cross-compiler?

Richard Purdie richard.purdie at linuxfoundation.org
Fri Jun 7 11:54:20 UTC 2019


On Fri, 2019-06-07 at 13:41 +0200, Sebastian Huber wrote:
> Hello,
> 
> has someone tried to do a reproducible build of a GCC cross-compiler? 
> I 
> am not interested in a native GCC. I guess it needs some tweaks in
> the 
> build system of GCC, e.g.
> 
> * use of -frandom-seed=???
> 
> * export SOURCE_DATE_EPOCH=???
> 
> * -ffile-prefix-map=???=???
> 
> * etc.
> 
> It seems there is no magic configuration option in
> 
> https://gcc.gnu.org/install/configure.html
> 
> to enable a reproducible build.

The Yocto Project builds and uses gcc cross compilers and we believe
our builds to be reproducible when configured to be.

We do use SOURCE_DATE_EPOCH and -ffile-prefix-map=.

We're in the final stages of putting together tests which actually test
and prove that in our CI setup, I'm looking forward to being able to
announce those here soon.

Cheers,

Richard





More information about the rb-general mailing list