From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.bugs Subject: bug#19989: 25.0.50; Build instructions on Windows Date: Fri, 6 Mar 2015 17:35:02 -0800 Message-ID: <20150307013502.GA18273@math.berkeley.edu> References: <20150303163453.GA25244@math.berkeley.edu> <834mq2qana.fsf@gnu.org> <83385mq9og.fsf@gnu.org> <20150303203037.GA26426@math.berkeley.edu> <83pp8ppgvw.fsf@gnu.org> <20150305211821.GA2915@math.berkeley.edu> <83lhjao7fr.fsf@gnu.org> <83h9tyo2v3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1425692184 29872 80.91.229.3 (7 Mar 2015 01:36:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 7 Mar 2015 01:36:24 +0000 (UTC) Cc: 19989@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 07 02:36:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1YU3f0-0002Tm-An for geb-bug-gnu-emacs@m.gmane.org; Sat, 07 Mar 2015 02:36:10 +0100 Original-Received: from localhost ([::1]:32945 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YU3ez-0005Uz-HJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Mar 2015 20:36:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YU3ew-0005Rm-3P for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 20:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YU3es-0006ui-Sr for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 20:36:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YU3es-0006uc-PM for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 20:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YU3es-00030Y-F1 for bug-gnu-emacs@gnu.org; Fri, 06 Mar 2015 20:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ilya Zakharevich Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Mar 2015 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19989 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19989-submit@debbugs.gnu.org id=B19989.142569211411495 (code B ref 19989); Sat, 07 Mar 2015 01:36:02 +0000 Original-Received: (at 19989) by debbugs.gnu.org; 7 Mar 2015 01:35:14 +0000 Original-Received: from localhost ([127.0.0.1]:37990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YU3e5-0002zJ-1z for submit@debbugs.gnu.org; Fri, 06 Mar 2015 20:35:13 -0500 Original-Received: from nm30-vm1.bullet.mail.gq1.yahoo.com ([98.136.216.192]:47706) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YU3e3-0002z7-As for 19989@debbugs.gnu.org; Fri, 06 Mar 2015 20:35:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425692105; bh=CI/APSDTVjRgGLC3g5p5JBVVtkJe9QJ/7lpt8w85nVg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject; b=qPnLdOkER+itXqteuT8zXNcqasbq111PYYoBwaZem3tOKp4TFz39tuiKb5YfznZjRBFxHM46Vbex6e5oEqG8S5M46Soi3Mhw4bjnxUoihHfeZspnI2Q3tAUr/MyWf2URHZdrvej2Bgll5OYybcLxQxNcBulNg20eLx/DTGCw8OSEXCAtdyfmrMkaVfa8Uox5T5uRugPD61wORzvfnXwrzQ4nKABz1byzkWvGRMcGrX91aPLKv6G4RhdENCXWt+gMRuFutaNAFqvS3tZgfQ70Y2m9Fp4kuTgNKp/661u30ji//3WAy3AFPrj2N5j5l5ttkNsHp0TM/i6xecCtXoBIfw== Original-Received: from [98.137.12.57] by nm30.bullet.mail.gq1.yahoo.com with NNFMP; 07 Mar 2015 01:35:05 -0000 Original-Received: from [208.71.42.195] by tm2.bullet.mail.gq1.yahoo.com with NNFMP; 07 Mar 2015 01:35:05 -0000 Original-Received: from [127.0.0.1] by smtp206.mail.gq1.yahoo.com with NNFMP; 07 Mar 2015 01:35:05 -0000 X-Yahoo-Newman-Id: 524909.94520.bm@smtp206.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 51kHEuAVM1mCU4jlWnqdVQvJ3UfAYfJdOsJ7TZ48g_A.2Xp .iWBvqXMSioujMWwvvpddjNtm7aUPvS9fJtFXBPZ4TjaXlw_5hVnIfFPBPoi 8EeYskJD0f0mZQ48o_naaVGpb2ldl71TwawIicbmAER6Xm3W9A96plBh_OmN gh24kB.sd5DJDLk5MC734Eax108xFXcjew_vV.WeQEqztidyr_BHtyIyMNMO 6w3hS4DfU0XMUTehpjKoxtqQCYlcu98RBmMvSZUwjEyVr84KNlmEE_uu__HQ mBOhilu2sbZqn.oWSh41_bkJegwm_B2YGPK6Y2PhTOg6Hd85RFm8uRYtyNv2 KU9kuvMemACIUv4RPoxEfDFw21oph08FzjpCvzGnrSkbrbO9OSEA9GelQ2P1 PNZQU02knY57RBw5r61.hN3CcgAcySmXH5Es2DkMQZnXlVCuS4IvI2CF2GDA eqWSEpEMDPHMfYx3wbXLP2tKMq0Uirh0ionWlQCbUYDG7CXv9lALuDIrbexZ mbrzcsotVH0wOekqpyCknUK1nZsmQeagQkrw_txLD3u_kwYHxYg-- X-Yahoo-SMTP: oLSY3dWswBBqoBVzCkLl_RIsw6heKMxu8wpEbARv1SU- Content-Disposition: inline In-Reply-To: <83h9tyo2v3.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:100209 Archived-At: On Fri, Mar 06, 2015 at 12:08:00PM +0200, Eli Zaretskii wrote: > > So that's the problem: you installed the MSYS GCC (and probably the > > whole MSYS development environment), something one shouldn't do for > > building MinGW programs. > > Or maybe I again misunderstood, and the GCC found first on PATH was > the Cygwin GCC? Then that'd be the "don't mix Cygwin with MinGW in > the same session" part of my advice again. Yes, you again misunderstood. But the last paragraph of yours is irrelevant. The issue of another gcc on PATH is not important. What IS important is the fact that the PATH of bash --login won’t find the INSTALLED mingw. Let me repeat the same stuff again: • mingw-get installs mingw into FOO/bin (here FOO is the install path set in mingw-get) • /etc/profile’s PATH contains /mingw/bin /bin (among others) — but /mingw/bin is actually resolved (AFAICS) to FOO/msys/1.0/mingw/bin (and /bin to FOO/msys/1.0/bin). • Therefore, /mingw/bin is on PATH, but it is a non-existing directory (even after mangling). • Now there are two cases of the PATH at start of `bash --login´: ∘ If PATH contains some other gcc, then the other gcc will be used by ./configure — with hard-to-explain failures; ∘ If PATH does not contain gcc, then ./configure will quickly fail, reporting not finding gcc. (After discovering this — which stole a couple of hours of my time) I needed to fix this. Because the way of MSYS mangling of paths is not easily found, (and one cannot easily find MSYS’s /etc/profile), instead of editing PATH, I just modified the filesystem, linking FOO/msys/1.0/mingw to FOO/mingw (experiments show that this must be a Windows’ style link — made with sysinternal’s mklink, as reported). Ilya