https://blog.torproject.org/blog/deterministic-builds-part-o...
Synopsis:
"deterministic builds" -- packages which are byte-for-byte identical no matter who actually builds them, or what hardware they use.
They produce builds with hashes of the source and all dependencies and tools used, or so I believe after skimming their manuals.
I'd have thought that deterministic builds are really simple unless your toolkit ecosystem is FUBAR. After all, a compiler is a simple function from input to output (unless the FUBAR ecosystem syndrome arises, as I said).
http://stackoverflow.com/questions/1180852/deterministic-bui...
In short, if you ignore certain things when comparing binaries and make sure you build things on absolute path of the same length(!), you can tell binaries are functionally equivalent.