From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes 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 05:10:06 +0100 Message-ID: <87siheqzq9.fsf@wanadoo.es> References: <87fvdfrl4p.fsf@telefonica.net> <83k32q7wkl.fsf@gnu.org> <87bno2swxp.fsf@wanadoo.es> <83egsy7d2x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1416456685 23365 80.91.229.3 (20 Nov 2014 04:11:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Nov 2014 04:11:25 +0000 (UTC) Cc: 19111@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 20 05:11:19 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 1XrJ5Q-00033c-DA for geb-bug-gnu-emacs@m.gmane.org; Thu, 20 Nov 2014 05:11:16 +0100 Original-Received: from localhost ([::1]:33457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrJ5P-0001WG-Tb for geb-bug-gnu-emacs@m.gmane.org; Wed, 19 Nov 2014 23:11:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41787) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrJ5H-0001W5-SX for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 23:11:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrJ5C-0004vt-G0 for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 23:11:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrJ5C-0004uz-Cu for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 23:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XrJ5B-0008Bl-Vh for bug-gnu-emacs@gnu.org; Wed, 19 Nov 2014 23:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Nov 2014 04:11:01 +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.141645661431416 (code B ref 19111); Thu, 20 Nov 2014 04:11:01 +0000 Original-Received: (at 19111) by debbugs.gnu.org; 20 Nov 2014 04:10:14 +0000 Original-Received: from localhost ([127.0.0.1]:38900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrJ4P-0008Ad-GB for submit@debbugs.gnu.org; Wed, 19 Nov 2014 23:10:13 -0500 Original-Received: from smtp11.acens.net ([86.109.99.135]:39102 helo=smtp.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XrJ4M-0008AT-0Y for 19111@debbugs.gnu.org; Wed, 19 Nov 2014 23:10:11 -0500 X-CTCH-RefID: str=0001.0A0B0209.546D69A0.0054, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-Spam: Unknown Original-Received: from qcore (79.158.48.132) by smtp.movistar.es (8.6.122.03) (authenticated as 981711563$telefonica.net) id 54615F2D004F5C4E; Thu, 20 Nov 2014 04:10:08 +0000 In-Reply-To: <83egsy7d2x.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 20 Nov 2014 05:41:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) 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:96303 Eli Zaretskii writes: >> From: =C3=93scar Fuentes >> Cc: 19111@debbugs.gnu.org >> Date: Wed, 19 Nov 2014 22:27:30 +0100 >>=20 >> The problem here is that, without explicitly setting --host/--build, >> uname is not the right thing for detecting the host/build environment, >> because uname is a MSYS2 thing, when we are building with a MinGW >> toolset. So either we stop using uname for MinGW builds (use $MSYSTEM), >> or document that --host/--build are required. > > When you use MinGW64 for building a 32-bit executable, you are in > effect cross-compiling. So I think telling users to use an explicit > "--host/--build" argument is TRT, especially since I don't envision > many people doing that, except for special-case testing. When we use the mingw toolset under MSYS{2} we are cross-compiling, as far as autoconf is concerned. But truth is that Emacs' `configure.ac' already special-cases MinGW by using $MSYSTEM and not requiring --host/--build, to hide the cross-compilation and make user's life simple. Such special handling of the MSYS/MinGW combo assumes that the target architecture of the MinGW toolset being used is the same as the MSYS architecture retrieved by `uname'. Once we have MSYS2 supporting both i686 and x86_64, and MinGW-w64 also supporting both architectures, the assumption is broken. I foresee similar problems when building for MINGW64 on a i686 MSYS2. > Patches for nt/INSTALL are welcome. Since we already special-case MinGW on the configure script, and fixing the problem there only changes how the special case is implemented without touching new areas, I'll very much prefer to apply the patch shown on my previous message and keep the nice and simple "configure && make" procedure working on all cases.