From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19111: 25.0.50; 32 bits temacs.exe is linked with wrong image-base when built on 64 bit Windows host Date: Thu, 20 Nov 2014 23:03:45 +0200 Message-ID: <83egsx60um.fsf@gnu.org> References: <87fvdfrl4p.fsf@telefonica.net> <83k32q7wkl.fsf@gnu.org> <87bno2swxp.fsf@wanadoo.es> <83egsy7d2x.fsf@gnu.org> <87siheqzq9.fsf@wanadoo.es> <83389d7t89.fsf@gnu.org> <87a93lrgct.fsf@wanadoo.es> <83mw7l6bjc.fsf@gnu.org> <87389dragi.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: 8BIT X-Trace: ger.gmane.org 1416517465 8440 80.91.229.3 (20 Nov 2014 21:04:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 21:04:25 +0000 (UTC) Cc: 19111@debbugs.gnu.org To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 22:04:18 2014 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 1XrYtl-000751-QF for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 22:04:17 +0100 Original-Received: from localhost ([::1]:37339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYtk-0002pM-Uk for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 16:04:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57041) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYtc-0002pF-Kj for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:04:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrYtX-0006Vl-1B for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:04:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrYtW-0006Vh-Uj for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XrYtW-0000mx-JG for bug-gnu-emacs@gnu.org; Thu, 20 Nov 2014 16:04:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Nov 2014 21:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19111 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19111-submit@debbugs.gnu.org id=B19111.14165174303013 (code B ref 19111); Thu, 20 Nov 2014 21:04:02 +0000 Original-Received: (at 19111) by debbugs.gnu.org; 20 Nov 2014 21:03:50 +0000 Original-Received: from localhost ([127.0.0.1]:39913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrYtJ-0000mX-FK for submit@debbugs.gnu.org; Thu, 20 Nov 2014 16:03:49 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:40865) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrYtH-0000mN-6M for 19111@debbugs.gnu.org; Thu, 20 Nov 2014 16:03:48 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NFC00L00VOCJW00@a-mtaout20.012.net.il> for 19111@debbugs.gnu.org; Thu, 20 Nov 2014 23:03:45 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFC00LJ0VU8C330@a-mtaout20.012.net.il>; Thu, 20 Nov 2014 23:03:45 +0200 (IST) In-reply-to: <87389dragi.fsf@wanadoo.es> X-012-Sender: halo1@inter.net.il 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:96340 > From: Óscar Fuentes > Cc: 19111@debbugs.gnu.org > Date: Thu, 20 Nov 2014 19:30:37 +0100 > > > Sorry, it doesn't. You say that $MSYSTEM is set to either MINGW32 or > > MINGW64, depending on whether 32-bit or 64-bit toolset is used. But > > how does MSYS2 know which toolset you are going to use to compile a > > program? How do you communicate that to MSYS2? > > It is set automatically by the .bat file that starts the MSYS2 shell. > There is a .bat that sets $MSYSTEM, paths, etc for MINGW32, other for > MINGW64 and other for MSYS. Is that reliable enough? What if someone does these things by hand, without relying on batch files? > In the end, the user must ensure that $MSYSTEM matches the toolset he is > going to use. Why? We don't even use $MSYSTEM in the configure script (on master), and neither do other GNU packages. > > In any case, what I suggest to do is correct the triplet, > > automatically, after uname guesses it, if we find that it is wrong for > > "the toolset about to be used", whatever that means. > > How do we know that the triplet is wrong? One way is to run the compiler, I guess. > Another solution is to get the --host/--build triplet from `gcc -v' (use > the `--target=...' part. Yes, something like that. > I don't know how it is supposed to deal with the case of the user > setting those parameters explicitly, although I can't think of a > valid reason for setting --host/--build to something different from > the `gcc -v' --target, since Emacs does not support cross-compiling. If the user sets the triplet, it should be obeyed. If it's incorrect, that's the user's problem. > I understand your concern: `configure' can use the triplet anywhere and > hence it is important that it is correct. Yes, exactly. Could you propose a patch along these lines?