From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo Newsgroups: gmane.emacs.devel Subject: Re: MS-Windows build using Posix configury Date: Sat, 20 Apr 2013 09:35:13 +0200 Message-ID: References: <83d2tu49lu.fsf@gnu.org> <8338un359j.fsf@gnu.org> <831ua72fml.fsf@gnu.org> <83ehe51zi4.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1366443321 7680 80.91.229.3 (20 Apr 2013 07:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Apr 2013 07:35:21 +0000 (UTC) Cc: Emacs development discussions To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 20 09:35:22 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 1UTSKP-0005Zi-J1 for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2013 09:35:21 +0200 Original-Received: from localhost ([::1]:46903 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTSKP-0007Xn-7G for ged-emacs-devel@m.gmane.org; Sat, 20 Apr 2013 03:35:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTSKM-0007Xi-1o for emacs-devel@gnu.org; Sat, 20 Apr 2013 03:35:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UTSKL-0008IS-0T for emacs-devel@gnu.org; Sat, 20 Apr 2013 03:35:17 -0400 Original-Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:58504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UTSKJ-0008I5-AU; Sat, 20 Apr 2013 03:35:15 -0400 Original-Received: by mail-la0-f43.google.com with SMTP id ea20so669933lab.2 for ; Sat, 20 Apr 2013 00:35:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=zGsBA1LDV+QoFMGDNVN8tESuKjlhe9EQp6xaMrpSqxg=; b=SZd9pFGB0WjLRlHNEQbX+iQ20AAuOdnjbepA7C27RlDVjwRgnqY/hsYKJntVM65e/B Vqh6PFUlcUX3/BdjIk4OuUc6JP1oGxyaBSBv4b1O/CD8/4HS4rR6u2cb5sC1ImkKOMdV 1L0EqPYBtdz0/1+aNls7wRIGr2kVU3GKu5rPcYl3m7CBAPBD4vCuns0NijTr/kqyKGEM FLbqJK0cAFPfD2IYOTIlZm1biB/sL8S/Oyq22pZuIHoZ9Tuqj3hejGgW4DhDz5cHwcXE VG4zGxTR49oCRAXV+UGVHpDNC518Mzy9NaBTilYjuRbc1YIAtgZv7q9U7qIThsaxObLO Tu9Q== X-Received: by 10.112.168.5 with SMTP id zs5mr9357859lbb.66.1366443314063; Sat, 20 Apr 2013 00:35:14 -0700 (PDT) Original-Received: by 10.114.18.82 with HTTP; Sat, 20 Apr 2013 00:35:13 -0700 (PDT) In-Reply-To: <83ehe51zi4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b 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:159032 Archived-At: >> 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. By "packages installed by default", I mean the packages that get installed if you install MinGW (with the "mingw-get-inst-20120426.exe" installer) and accept the default options in the wizard. Sorry, I've not found a way to get the list of installed packages (AFAICT, the package manager currently lacks such a feature). >> 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? Yes, I have image libraries, but I wanted to try first a simple build, to make sure that a botched library setup is not the culprit of any build failure. >> 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. Ok, I've done the above change, and now a plain "make" ends up failing here: [...] creating src/epaths.h make[1]: Entering directory `/c/emacs/build' make[1]: Leaving directory `/c/emacs/build' config.status: executing gdbinit commands [ -r "/c/emacs/mybranch/src/config.in" ] || ( cd /c/emacs/mybranch && autoheader ) cd nt && make all \ CC='gcc -std=gnu99' CFLAGS='-O0 -g3' CPPFLAGS='-mtune=pentium4 -DGLY PH_DEBUG=1 -DUSE_CRT_DLL=1 -I /c/emacs/mybranch/nt/inc' \ LDFLAGS='' MAKE='make' make[1]: Entering directory `/c/emacs/build/nt' windres -O coff -o emacs.res /c/emacs/mybranch/nt/emacs.rc gcc -std=gnu99 -mtune=pentium4 -I. -I/c/emacs/mybranch/nt -mtune=pentium4 -DGLYPH_DEBUG=1 -DUSE_CRT_DLL=1 -I /c/emacs/mybranch/nt/inc -O0 -g3 /c/emacs/my branch/nt/runemacs.c emacs.res \ -o runemacs.exe make[1]: *** No rule to make target `/c/emacs/mybranch/nt/../src/epaths.h', need ed by `addpm.exe'. Stop. make[1]: Leaving directory `/c/emacs/build/nt' make: *** [nt] Error 2 -- Dani Moncayo