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: Problem building emacs from CVS under MSWindow due to CR/LF and addsection Date: Fri, 10 Oct 2008 09:58:01 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1223625507 30433 80.91.229.12 (10 Oct 2008 07:58:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Oct 2008 07:58:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Vincent Belaiche Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 10 09:59:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KoCu8-000248-OG for ged-emacs-devel@m.gmane.org; Fri, 10 Oct 2008 09:59:21 +0200 Original-Received: from localhost ([127.0.0.1]:48195 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoCt4-0000Dl-KS for ged-emacs-devel@m.gmane.org; Fri, 10 Oct 2008 03:58:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoCt1-0000DV-E9 for emacs-devel@gnu.org; Fri, 10 Oct 2008 03:58:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoCt1-0000DH-2G for emacs-devel@gnu.org; Fri, 10 Oct 2008 03:58:11 -0400 Original-Received: from [199.232.76.173] (port=43426 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoCt0-0000DA-TX for emacs-devel@gnu.org; Fri, 10 Oct 2008 03:58:10 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:17252) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KoCt1-0001Bw-Bb for emacs-devel@gnu.org; Fri, 10 Oct 2008 03:58:11 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoCsy-0001sW-16 for emacs-devel@gnu.org; Fri, 10 Oct 2008 03:58:08 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.3.182]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K8I00D36JIUPDA0@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Fri, 10 Oct 2008 09:59:19 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-kernel: by mx20.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104452 Archived-At: > Date: Fri, 10 Oct 2008 07:48:49 +0200 > From: Vincent Belaiche > > Sorry if this problem has been already submitted (actually I could not find > the bug search for emacs under savannah to check this). > > I have tried to build the latest CVS version of Emacs, this morning under MSW. > > After configuring with configure.bat under cmd.exe, I launched `make > bootstrap' from the MSYS bash shell. > > I got the following problem > > --------------- > /c/Programme/GNU/emacs-install/emacs/nt>make bootstrap > [Please ignore a syntax error on the next line - it is intentional] > /bin/sh.exe: -c: line 1: unexpected EOF while looking for matching `"' > /bin/sh.exe: -c: line 2: syntax error: unexpected end of file > ', needed by `addsection'. Stop. > --------------- > > > I edited the makefile under emacs, and I realized that there where plenty of > ^M charaters which I all removed. > > Thene the make could go a bit further. So I can imagine that the 1st problem I > met was due to addsection not understanding the CR characters. No, the problem is because the port of Make you were using does not grok well the makefile with mixed NL and CR/LF line endings. I understand that you were using the MSYS shell and Make ports for building Emacs. The file nt/INSTALL does not list those as supported build environments, and about MSYS it says this: In addition, using 4NT as your shell is known to fail the build process, at least for 4NT version 3.01. Use CMD.EXE, the default Windows shell, instead. MSYS sh.exe also appears to cause various problems. If you have MSYS installed, try "make SHELL=cmd.exe" to force the use of cmd.exe instead of sh.exe. In general, a native Windows port of Make (available from the MinGW site), not the MSYS Make, and stock Windows shell cmd.exe is all you should need for a successful build.