From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bootstrap failure with new configure.bat (was Re: Proposed change to nt/INSTALL) Date: Thu, 05 May 2011 06:34:27 -0400 Message-ID: References: <4DC230CF.8070803@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1304591680 7572 80.91.229.12 (5 May 2011 10:34:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 5 May 2011 10:34:40 +0000 (UTC) Cc: Emacs-devel@gnu.org, bkey76@gmail.com To: Christoph Scholtes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 05 12:34:32 2011 Return-path: Envelope-to: ged-emacs-devel@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 1QHvtA-0000Cm-7Q for ged-emacs-devel@m.gmane.org; Thu, 05 May 2011 12:34:32 +0200 Original-Received: from localhost ([::1]:45992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHvt9-0004Qw-PL for ged-emacs-devel@m.gmane.org; Thu, 05 May 2011 06:34:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:53911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHvt7-0004Qp-3H for Emacs-devel@gnu.org; Thu, 05 May 2011 06:34:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHvt6-0008C3-14 for Emacs-devel@gnu.org; Thu, 05 May 2011 06:34:29 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:59582) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHvt5-0008Bz-UZ for Emacs-devel@gnu.org; Thu, 05 May 2011 06:34:27 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1QHvt5-0003hn-E6; Thu, 05 May 2011 06:34:27 -0400 In-reply-to: <4DC230CF.8070803@gmail.com> (message from Christoph Scholtes on Wed, 04 May 2011 23:08:31 -0600) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139139 Archived-At: > Date: Wed, 04 May 2011 23:08:31 -0600 > From: Christoph Scholtes > CC: Emacs-devel@gnu.org, Eli Zaretskii > > gcc -I. -c -gdwarf-2 -g3 -mno-cygwin -mtune=pentium4 -O2 > -DENABLE_CHECKING -DXASSERTS -fno-crossjumping -IC:/Program -o > oo-spd/i386/emacs.o emacs.c > emacs.c:22:20: fatal error: config.h: No such file or directory > compilation terminated. > mingw32-make[2]: *** [oo-spd/i386/emacs.o] Error 1 > mingw32-make[2]: Leaving directory > `D:/devel/emacs/emacs-bzr/trunk_readonly/src' > mingw32-make[1]: *** [bootstrap-temacs] Error 2 > mingw32-make[1]: Leaving directory > `D:/devel/emacs/emacs-bzr/trunk_readonly/src' > mingw32-make: *** [bootstrap-gmake] Error 2 > > Obviously, the CFLAG `-IC:/Program' is the culprit here. The gcc command > is generated correctly if the directory name does not contain any spaces. > > Earlier in the bootstrap during compilation of temacs the command is > correctly generated, for example: > > gcc -I. -c -gdwarf-2 -g3 -mno-cygwin -mtune=pentium4 -O2 > -DENABLE_CHECKING -DXASSERTS -fno-crossjumping -I"C:/Program Files > (x86)/GnuWin32/include" -ID:/devel/emacs/libXpm-3.5.8/include > -ID:/devel/emacs/libXpm-3.5.8/src -ID:/devel/emacs/gnutls-2.8.6/include > -DHAVE_CONFIG_H=1 -I. -I../nt/inc -I../src -o oo-spd/i386/filemode.o > filemode.c > > Eli, > do you have any idea why the part after the first space gets stripped of > in some cases and in some cases it doesn't? Recursive Make invocations? Anyway, the answer to that is in the Makefiles (in nt/ and src/) and in config.h generated by configure.bat. If you cannot figure this out, post them here, perhaps with the full transcript of the bootstrap from the start till it fails, and someone will have the answer. Also, do you have some sh.exe on PATH? If so, try without it.