Reproducible gcc builds, gfortran, and -grecord-gcc-switches

Gerald Pfeifer
Thu Aug 16 07:38:00 GMT 2012

On Wed, 15 Aug 2012, Simon Baldwin wrote:
> This creates a problem for build and packaging systems that are
> fanatical about binary reproducibility and checksums.  Temporary file
> names differ on each compilation, so that two different builds of
> libgfortran.a, and by extension all of gcc, will not be bit-identical.
> Anyone else encountered this?  Bug or feature?  There are several
> possible and relatively easy fixes -- any thoughts or feedback on
> which fixes might be better, or worse?  Something for mainline or for
> only google-specific branches?

Based on what I am seeing with various build systems and hear some
users say, I'd love to see this addressed on mainline.


More information about the Gcc mailing list