From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dani Moncayo 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: Sat, 29 Nov 2014 20:23:31 +0100 Message-ID: References: <87fvdfrl4p.fsf@telefonica.net> <83egsx60um.fsf@gnu.org> <87y4r5pgae.fsf@wanadoo.es> <87ioi8pg84.fsf@wanadoo.es> <87egswpf9p.fsf@wanadoo.es> <87a93kp3lb.fsf@wanadoo.es> <9hwq6o11ud.fsf@fencepost.gnu.org> <87389cox4u.fsf@wanadoo.es> <87mw7gngw8.fsf@wanadoo.es> <87egsrnguj.fsf@wanadoo.es> <873896onl2.fsf@wanadoo.es> <87y4qyn840.fsf@wanadoo.es> <83zjbeoc40.fsf@gnu.org> <87mw7am0ub.fsf@wanadoo.es> <83tx1halll.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1417289067 6074 80.91.229.3 (29 Nov 2014 19:24:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2014 19:24:27 +0000 (UTC) Cc: =?UTF-8?Q?=C3=93scar?= Fuentes , 19111@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 20:24:20 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 1Xuncw-0000qR-FX for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 20:24:18 +0100 Original-Received: from localhost ([::1]:48578 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuncv-0005hG-Tu for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2014 14:24:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuncn-0005h0-1N for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 14:24:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xuncg-000238-SF for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 14:24:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xuncg-000232-OZ for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 14:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xuncg-0001lL-HB for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2014 14:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dani Moncayo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Nov 2014 19:24: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.14172890146732 (code B ref 19111); Sat, 29 Nov 2014 19:24:02 +0000 Original-Received: (at 19111) by debbugs.gnu.org; 29 Nov 2014 19:23:34 +0000 Original-Received: from localhost ([127.0.0.1]:49380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XuncE-0001kW-3R for submit@debbugs.gnu.org; Sat, 29 Nov 2014 14:23:34 -0500 Original-Received: from mail-oi0-f52.google.com ([209.85.218.52]:55801) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XuncC-0001kO-Gq for 19111@debbugs.gnu.org; Sat, 29 Nov 2014 14:23:32 -0500 Original-Received: by mail-oi0-f52.google.com with SMTP id h136so5881003oig.11 for <19111@debbugs.gnu.org>; Sat, 29 Nov 2014 11:23:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=kMRDsgCUC+ekkV0PWfzXDtuq3x4uuZM3yQfCAZJAwV0=; b=MieFgJiTe4O4ktg6nFrVYtKiMIXcOzGjjk+gNlSyGXqUg2FPnZvNX2oebLtZjljEOW nHBaWHYP7KSFJaoqkXUZpaUjsbpDF/Rhb8u0Knt9YtsUfGJ/m/A6Hpl3QSMNuY6GBMPh N28KjSJb/ylf+qT9uprYhnRXOKlFnS9XgXy0aJhA0IueeDJNCbRF0REyVUFUn8ZoQ+vZ 1HT3Nh5j78ZGnzzZ2Q20ibgb0niPIubqGu+W+mg7+HAPZo09s0wTTTSFA+/2CdfvXl0H aOI6bIBZQgI8empx3Dn3DBVIFDhW9GhFrRRRNfdC6gYyx33SSFzeVSwxBTyffJg65x73 juWg== X-Received: by 10.60.118.170 with SMTP id kn10mr30556528oeb.47.1417289011942; Sat, 29 Nov 2014 11:23:31 -0800 (PST) Original-Received: by 10.60.47.84 with HTTP; Sat, 29 Nov 2014 11:23:31 -0800 (PST) In-Reply-To: <83tx1halll.fsf@gnu.org> 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:96739 Archived-At: >> If MSYS2 provides both 32 and 64 bit build environments, each >> environment should be configured so that 'uname -m' produced the >> intended CPU architecture. > > You are asking the impossible: how can 'uname' know which code will be > produced by a compiler that will be invoked by 'make'? I may be misundertanding things; I'll try to explain what's on my head. As I see it, MSYS2 (either its 32 or 64-bit version) comes with two ways of invoking bash: mingw32_shell.bat and mingw64_shell.bat. IIUC, this gives the user two _build_ environments: one tuned for building 32-bit MinGW programs and other for 64-bit. So, if I enter the 32-bit _build_ environment and I build Emacs with a plain 'configure && make', I'd expect it to work out of the box. But as we've seen, it doesn't. Why? -> Because the canonical host platform (picked up by default) has a wrong CPU. And why? -> Because the canonical _build_ platform picked (up by default) has a wrong CPU. And why? -> because 'uname -m' gives 'x86_64' in a build environment that pretends to be tuned for 32 bits. -- Dani Moncayo