From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.bugs Subject: bug#8564: 24.0.50; bootstrap on windows 7: `gl-stamp' target failed Date: Thu, 28 Apr 2011 10:24:26 +0800 Organization: the Church of Emacs Message-ID: <21gld3k7nmed.fsf@gmail.com> References: <21gl7hagz2we.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1303958219 4790 80.91.229.12 (28 Apr 2011 02:36:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2011 02:36:59 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 04:36:55 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QFH67-0002Cv-3O for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2011 04:36:55 +0200 Original-Received: from localhost ([::1]:36462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFH66-0008Oh-MJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2011 22:36:54 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFH63-0008OR-Cq for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2011 22:36:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFH62-0002Fs-6M for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2011 22:36:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFH62-0002Fm-3c for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2011 22:36:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QFGwX-0000bU-U9; Wed, 27 Apr 2011 22:27:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <21gl7hagz2we.fsf@gmail.com> Resent-From: William Xu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2011 02:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8564 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.13039575712260 (code B ref -1); Thu, 28 Apr 2011 02:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2011 02:26:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QFGvj-0000aP-Em for submit@debbugs.gnu.org; Wed, 27 Apr 2011 22:26:11 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QFGvh-0000aD-3M for submit@debbugs.gnu.org; Wed, 27 Apr 2011 22:26:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFGva-0000l2-Qy for submit@debbugs.gnu.org; Wed, 27 Apr 2011 22:26:03 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:33075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFGva-0000kw-Nw for submit@debbugs.gnu.org; Wed, 27 Apr 2011 22:26:02 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFGvZ-0007rx-Dx for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2011 22:26:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFGvY-0000kP-BW for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2011 22:26:01 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:51517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFGvX-0000k9-Tq for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2011 22:26:00 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QFGvU-0006XN-9E for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2011 04:25:56 +0200 Original-Received: from esprx01x.nokia.com ([192.100.124.218]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2011 04:25:56 +0200 Original-Received: from william.xwl by esprx01x.nokia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2011 04:25:56 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 64 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: esprx01x.nokia.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) Cancel-Lock: sha1:wQnyA84iaJA2leMXrPrn6ukbQLE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 27 Apr 2011 22:27:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46047 Archived-At: Eli Zaretskii writes: Is this something new? Did you ever bootstrap on that machine, or on Windows 7 in general? This is the first time i tried to compile emacs on Windows 7. After you bootstrap, does the same command work for a normal (i.e., non-bootstrap) build, or does it fail in the same way? Yes, if i revert my change. I modified some c files, and run following command: ,----[ make gl-stamp ] | cmd /c "fc /b gl-tmp globals.h >nul 2>&1 || cp -f gl-tmp globals.h" | Microsoft Windows [Version 6.1.7600] | Copyright (c) 2009 Microsoft Corporation. All rights reserved. | | L:\bin\emacs\src>mingw32-make: *** [gl-stamp] Error 66048 `---- Finally, what version of Make did you use for that bootstrap? What does "make --version" display? Also, did you use any kind of Unixy shell (Make announces at the very beginning of the build process whioch shell it uses)? ,----[ mingw32-make --version ] | GNU Make 3.82 | Built for i386-pc-mingw32 | Copyright (C) 2010 Free Software Foundation, Inc. | License GPLv3+: GNU GPL version 3 or later | This is free software: you are free to change and redistribute it. | There is NO WARRANTY, to the extent permitted by law. `---- I was compiling in on cmd.exe(i have some unix tools on %path%, though) The beginning: ,---- | L:\bin\emacs\src>mingw32-make gl-stamp | [Please ignore a syntax error on the next line - it is intentional] | /bin/sh: -c: line 0: unexpected EOF while looking for matching `"' | /bin/sh: -c: line 1: syntax error: unexpected end of file | rm gl-tmp `---- > cp -f gl-tmp globals.h # Wouldn't this be simpler & good enough? No, it's not good enough. `cp' updates the time stamp of globals.h each time you build, and therefore all the C files will be recompiled, because they all include globals.h, even though the contents of globals.h rarely changes. That kinda makes Make redundant, since its main goal is to avoid unnecessary compilations... The command that invokes `fc' only updates globals.h if the new version has different contents. IOW, this is the Windows way of saying move-if-change. How about using `diff' here? (considering commands like `cp' is already dependent? ) diff gl-tmp globals.h >nul 2>&1 || $(CP) gl-tmp globals.h -- William http://xwl.appspot.com