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: Two strange messages while building Emacs on MS-Windows Date: Sat, 08 Dec 2012 15:38:59 +0200 Message-ID: <83k3ssll3g.fsf@gnu.org> References: <83mwxpmtp6.fsf@gnu.org> <83d2ylm0em.fsf@gnu.org> <87y5h8ydy0.fsf@wanadoo.es> <87pq2kyc7e.fsf@wanadoo.es> <83lid8lnlj.fsf@gnu.org> <87hanwy8vs.fsf@wanadoo.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1354973963 16042 80.91.229.3 (8 Dec 2012 13:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2012 13:39:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 08 14:39:37 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ThKcy-0000vS-IR for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2012 14:39:36 +0100 Original-Received: from localhost ([::1]:34390 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThKcm-00042w-6J for ged-emacs-devel@m.gmane.org; Sat, 08 Dec 2012 08:39:24 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThKch-00042j-TL for emacs-devel@gnu.org; Sat, 08 Dec 2012 08:39:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ThKcf-0000fK-To for emacs-devel@gnu.org; Sat, 08 Dec 2012 08:39:19 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:44821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ThKcf-0000ex-Ld for emacs-devel@gnu.org; Sat, 08 Dec 2012 08:39:17 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MEP00M00SHETS00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 08 Dec 2012 15:39:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MEP00M1JSLE79E0@a-mtaout22.012.net.il>; Sat, 08 Dec 2012 15:39:16 +0200 (IST) In-reply-to: <87hanwy8vs.fsf@wanadoo.es> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:155376 Archived-At: > From: =D3scar Fuentes > Date: Sat, 08 Dec 2012 14:24:23 +0100 >=20 > So Wine is neglecting cmd.exe. Using one from a Windows XP install > allows the script to complete. Then, buildobj.h causes a failure be= cause > it contains too much " and '. Apparently make-buildobj-SH: is used > instead of make-buildobj-CMD. Maybe the Windows makefiles assume something that is false in Wine. The test for the shell type is in nt/gmake.defs: # Determine whether make is using sh or cmd/command as shell; cmd.e= xe # will output "ECHO is on" when echo is given by itself, while sh w= ill # not produce any output. sh_output :=3D $(shell echo) ifeq "$(findstring ECHO, $(sh_output))" "ECHO" THE_SHELL =3D $(COMSPEC)$(ComSpec) SHELLTYPE=3DCMD SWITCHCHAR=3D/ else USING_SH =3D 1 THE_SHELL =3D $(SHELL) SHELLTYPE=3DSH Which part(s) of this do(es)n't work in Wine? > mingw32-make[1]: Entering directory `D:/exp/emacs/emacs/lib-src' > mmingw32-make[1]: Leaving directory `D:/exp/emacs/emacs/lib-src' > ingw32-make[1]: *** No rule to make target `../lisp/abbrev.elc', ne= eded by `DOC'. Stop. > mingw32-make: *** [all-other-dirs-gmake] Error 2 You need to say "make bootstrap" explicitly, the Windows build script= s cannot automatically intuit that a bootstrap is needed. > Then I blindly remove the DOC target from here and there and the bu= ild > reaches the point where temacs.bin is created: >=20 > gcc -o oo-spd/i386/temacs.bin -gdwarf-2 -g3 -Ld:/exp/emacs/gnuwi= n32/lib -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x= 01000000 -Wl,-subsystem,console -Wl,-entry,__start -Wl,-Map,oo-spd/i3= 86/temacs.map oo-spd/i386/firstfile.o oo-spd/i386/emacs.res oo-spd/i3= 86/temacs0.a oo-spd/i386/temacs1.a oo-spd/i386/temacs2.a oo-spd/i386/= lastfile.a ../lib/oo-spd/i386/libgnu.a -lwinmm -ladvapi32 -lgdi32 -lc= omdlg32 -luser32 -lmpr -lshell32 -lwinspool -lole32 -lcomctl32 -lusp1= 0 =20 > "./../nt/oo-spd/i386/addsection" "oo-spd/i386/temacs.bin" "oo-spd/i= 386/temacs.exe" EMHEAP 27 > Dumping from oo-spd/i386/temacs.bin > to oo-spd/i386/temacs.exe > "./oo-spd/i386/temacs.exe" -batch -l loadup dump > mingw32-make[1]: *** [oo-spd/i386/emacs.exe] Error -1 This means the above dump command failed. So something is wrong with the resulting binary. Thanks.