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: MS-Windows build using Posix configury Date: Sat, 20 Apr 2013 09:34:43 +0300 Message-ID: <83ehe51zi4.fsf@gnu.org> References: <83d2tu49lu.fsf@gnu.org> <8338un359j.fsf@gnu.org> <831ua72fml.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1366439699 11176 80.91.229.3 (20 Apr 2013 06:34:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2013 06:34:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dani Moncayo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 20 08:35:03 2013 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 1UTRO1-0000zn-Gg for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2013 08:35:01 +0200 Original-Received: from localhost ([::1]:34863 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTRO1-0005qB-5W for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2013 02:35:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTRNx-0005q2-Mp for emacs-devel@gnu.org; Sat, 20 Apr 2013 02:34:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTRNw-0006jc-Kj for emacs-devel@gnu.org; Sat, 20 Apr 2013 02:34:57 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:41402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTRNw-0006jJ-Co for emacs-devel@gnu.org; Sat, 20 Apr 2013 02:34:56 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MLJ00400JJ0X100@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Sat, 20 Apr 2013 09:34:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MLJ00431JM6RID0@a-mtaout23.012.net.il>; Sat, 20 Apr 2013 09:34:54 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:159028 Archived-At: > Date: Fri, 19 Apr 2013 22:17:40 +0200 > From: Dani Moncayo > Cc: Emacs development discussions > > The packages I've installed (with "mingw-get install "), in > addition to the ones installed by default, are: > * msys-base > * mingw-developer-toolkit > * msys-automake What do you mean by "installed by default"? If we want the instructions to be comprehensive, we need to spell out _all_ of the packages, including those installed by default. > The configuration command is successful too: > $ CPPFLAGS='-DGLYPH_DEBUG=1' CFLAGS='-O0 -g3' > ../mybranch/nt/msysconfig.sh --prefix=c:/usr --enable-checking > --without-all Why --without-all? You do have the image libraries, right? > make[2]: Entering directory `/c/emacs/build/nt' > windres -O coff -o emacs.res emacs.rc > gcc: error: emacs.rc: No such file or directory > gcc: warning: '-x c' after last input file has no effect > gcc: fatal error: no input files > compilation terminated. > c:\MinGW\bin\windres.exe: preprocessing failed. > make[2]: *** [emacs.res] Error 1 > make[2]: Leaving directory `/c/emacs/build/nt' > make[1]: *** [nt] Error 2 > make[1]: Leaving directory `/c/emacs/build' > make: *** [bootstrap] Error 2 > > > What might the problem be? It's a bug (I didn't yet try to build outside of the source tree, so I didn't hit it). Change this line in nt/Makefile.in: ${WINDRES} -O coff -o emacs.res emacs.rc to say this instead: ${WINDRES} -O coff -o emacs.res ${srcdir}/emacs.rc Btw, you don't need to say "make bootstrap" with this setup, unless you want to force a bootstrap. Just "make" will do whatever it takes to build Emacs, and will bootstrap if needed.