Completely reproducible Haskell builds

Greg Steuck greg at
Fri May 27 19:08:42 CEST 2011

On Fri, May 27, 2011 at 9:59 AM, Matthias Kilian <kili at> wrote:
> An alternative could be to just strip the single `symbol' off the
> object file (using something like strip -N ...). I didn't yet test
> this for real.

This has to go with -optl=-Wl,build-id=none. Otherwise ld produces  a ELF section. In words of my wiser colleague:

  The reason build-ids differ is that build-id is a checksum of
"important ELF bits" (at link time), and symbol table counts.

I suppose one could strip off the as well, but
avoiding differences in the first places is a better strategy.

-- is Gmail hosted, use PGP for anything private. Key:
Fingerprint: 5E2B 2D0E 1E03 2046 BEC3  4D50 0B15 42BD 8DF5 A1B0

More information about the Glasgow-haskell-users mailing list