From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25547 invoked by alias); 5 May 2016 17:59:49 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24540 invoked by uid 89); 5 May 2016 17:59:48 -0000 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 Received: from limerock03.mail.cornell.edu (HELO limerock03.mail.cornell.edu) (128.84.13.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 May 2016 17:59:39 +0000 X-CornellRouted: This message has been Routed already. Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock03.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id u45HxbEn024166 for ; Thu, 5 May 2016 13:59:38 -0400 Received: from [192.168.1.5] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id u45Hxa1j013901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Thu, 5 May 2016 13:59:37 -0400 Subject: Re: Deterministic builds To: cygwin@cygwin.com References: <258af4b4-e1f0-171c-4b94-772603038fde@cornell.edu> From: Ken Brown Message-ID: Date: Thu, 05 May 2016 17:59:00 -0000 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> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Cornell-Gauge: Gauge=XXXXX X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00061.txt.bz2 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