delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/05/05/14:00:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=bQmA7T3OoaJeu/eR
F/56MLlu2TTk3WxU9JdaEG3sZeRfuLHVxYbXgs/WDW2JPU4DWyCYlx0Fgg5x6ROt
4YrvGotJL5Ej4hDsQJ53F1h/+ddf3VUvXz6Grvl0RVa8PVIMMOLPaLOPSbMNmTHd
TKZmxsRph+DvQkn5go12d4R2yCM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=0vvgrN32BPF0Z/sV2Hltdd
OFBIU=; b=dd0RGzWDrlmUfs9l83InFCupxJJ63mlQqT7oTzmpfZb6lj0FLZKLFt
7jdsEAbtoIKsTlzS2ut/8xLxy+CJY+4JoNHYTJPZ3L4FqrM8dLke8b2qfNhGr2uE
hDPbp3tcrMbRPXhl3bWtXK3iS5DRq54vLRkEkJ54YRT1CopLIPc4U=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:258af4b, H*f:sk:258af4b, H*MI:sk:258af4b, you!
X-HELO: limerock03.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: Deterministic builds
To: cygwin AT cygwin DOT com
References: <ff5f5b20-33e2-ef2d-012a-a9e02903ba21 AT cornell DOT edu> <CAFo71_4uBbNZ6JakbNE3mJ3HgvFRnFa-dK+GSrNdpmds1iXzow AT mail DOT gmail DOT com> <258af4b4-e1f0-171c-4b94-772603038fde AT cornell DOT edu>
From: Ken Brown <kbrown AT cornell DOT edu>
Message-ID: <c69da505-542a-0256-46d9-f35a379c3443@cornell.edu>
Date: Thu, 5 May 2016 13:59:42 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <258af4b4-e1f0-171c-4b94-772603038fde@cornell.edu>
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-IsSubscribed: yes

On 5/4/2016 1:39 PM, Ken Brown wrote:
> On 5/4/2016 1:21 PM, Ismail Donmez wrote:
>> You can easily disable this feature:
>>
>> latte ~ > gcc -Wl,--no-insert-timestamp hello.c
>> latte ~ > objdump -p a.exe | grep Time/Date
>> Time/Date               Thu Jan  1 03:31:53 1970
>> latte ~ > gcc -Wl,--no-insert-timestamp hello.c
>> latte ~ > objdump -p a.exe | grep Time/Date
>> Time/Date               Thu Jan  1 03:31:53 1970
>
> Thank you!  That's exactly what I was looking for.

Just for the record, in case anyone else finds this useful, Ismail's 
suggestion did indeed produce deterministic builds in my setup.  I built 
a large project with about 150 executables, changed a few source files, 
removed the build directory, rebuilt, and found that only the (expected) 
few executables changed.

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019