X-Recipient: archive-cygwin@delorie.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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; q=dns; s=
	default; b=q+DBFp0gXkJd2QKKBNiyA6bxRCGwNQTvgCgFtxVAEnhqO05d3RkZm
	zGfPxMccY4soeMKlO1bwyAHWczqj4wv47sNDBzGGNilO5BYFYfMjJqWz+0V5ofZ5
	cqPRusiK1addQ/Zriqo1B1GnjFZlN9jm+Ji2eNKeuKydp63KeM6BlY=
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:to:from:subject:date:message-id:references
	:mime-version:content-type:content-transfer-encoding; s=default;
	 bh=PE+9osEaPNQ17/Vshp/J/nMUwck=; b=WwVE3hH6ReWYw66C889TDITpgaM8
	ymBaWGul8Irc9qJyLZUMhyrhRVqgt8kq2ilKqyDwaIB6WcHfd3N7UkPOqpp+KrGH
	WwElbnmlQ8VkBJfgcFbC4YBmWgJnYiscMnw97lTzpF0R8euuXtuEn1upyzjiZkr/
	Zzyf6JBb9hWJ8SU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Konrad, east, sides, H*MI:sk:A45B176
X-HELO: plane.gmane.org
To: cygwin@cygwin.com
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
Subject: Re: clock skew detected in archive member
Date: Tue, 19 Jul 2016 21:01:26 +0000 (UTC)
Lines: 37
Message-ID: <loom.20160719T224152-858@post.gmane.org>
References: <A45B1767F1002449A37508C2CC6003D734BB5D@DEFTHW99EJ1MSX.ww902.siemens.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes

Schwarz, Konrad <konrad.schwarz <at> siemens.com> writes:
> I am building a project in Cygwin using a GCC/binutils cross-compiler
hosted on Windows.
> i.e., make and other utilities are from Cygwin;
> gcc, ld, ar, etc. are from the cross-compiler toolchain which was compiled
natively for Windows.
> I consistently see
> 	make[1]: Warning: File 'libmylib.a(myfile.o)' has modification time 3516
s in the future
> 	make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> (The exact time varies somewhat).
> The build is indeed incomplete.
> I am using the lib(member): form of rule in the Makefile, so make uses the
modification time of the member in the archive to see if it needs updating.
> As the time is close to an hour and since I am one hour east of GMT, this
might be related to a time-zone problem.
> If anyone has run across this problem and has some hints for me, I would
be most grateful.

Are you storing any of your build input or output on a network drive? 
There can be problems with server<->Windows<->Cygwin conversions of file
times from some network servers. 
Do builds with all files on a local drive for time stamp consistency. 

Are timezone updates and settings for your Windows and Cygwin environments
current and identical e.g. Europe/Berlin or equivalent? 

make -d will show you what files and times are being compared. 
Run ls -l and cmd dir, and Windows and Cygwin ar -tv on the inputs and
outputs to see what both sides see for file and member timestamps. 
 
make -B will force a complete rebuild as a workaround. 

You may have to find a Windows build of make that handles archive member
file times consistently with your Windows cross-ar, and perhaps also a shell
for use by make, if build scripts do any explicit time operations. 



--
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

