[lug] Reproducing a build

Swavek Skret swavek.skret at gmail.com
Wed Jun 17 22:11:10 MDT 2009


Hello,
Since the last build was done with -g flag, I found that each *.o file had
an embedded a path to the source file file in it (for the debugger, I
think). When I did a build in the same location most of the object files
were identical. I still have quite a few though that do not match completely
but not by much and I suspect that this is caused by different versions of
the libraries, *.h files, macros, etc.

Thanks,
Swavek

On Wed, Jun 17, 2009 at 9:13 PM, David L. Anselmi <anselmi at anselmi.us>wrote:

> Davide Del Vento wrote:
> >> executables do not match identically to these from the old final build
> >
> > What do you mean, exactly? Are you diffing the executables? If so,
> > think it's pretty impossible to have precisely identical executables,
> > because of some things that get embedded, such as creation date and
> > time (it's for sure on AIX, I think the same is for linux too).
>
> Compile date would be my guess too, strings might be all you need to see
> that (worth diffing the strings output I'd guess).
>
> Such things are not unavoidable on Linux.  I have a program that
> compiles the same way every time (even when built as 32 bit on 32 or 64
> bit Linux).
>
> Dave
>
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#hackingsociety
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20090617/93ac4e38/attachment.html>


More information about the LUG mailing list