From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: add etc/PROBLEMS entry for building 32-bit exe on 64-bit system Date: Wed, 10 Jan 2007 18:28:13 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168666913 30399 80.91.229.12 (13 Jan 2007 05:41:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 Jan 2007 05:41:53 +0000 (UTC) Cc: rgm@gnu.org, emacs-devel@gnu.org, rms@gnu.org, schwab@suse.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 13 06:41:46 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H5beA-0003my-VW for ged-emacs-devel@m.gmane.org; Sat, 13 Jan 2007 06:41:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5beA-0005s2-Tc for ged-emacs-devel@m.gmane.org; Sat, 13 Jan 2007 00:41:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H5bdU-0005cB-Dc for emacs-devel@gnu.org; Sat, 13 Jan 2007 00:41:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H5bdS-0005bU-RC for emacs-devel@gnu.org; Sat, 13 Jan 2007 00:41:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H5bdS-0005bR-Oh for emacs-devel@gnu.org; Sat, 13 Jan 2007 00:40:58 -0500 Original-Received: from [209.226.175.4] (helo=tomts16-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H5bdP-0004ns-Oi; Sat, 13 Jan 2007 00:40:55 -0500 Original-Received: from alfajor.home ([70.55.83.78]) by tomts16-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070113054054.PACW12977.tomts16-srv.bellnexxia.net@alfajor.home>; Sat, 13 Jan 2007 00:40:54 -0500 Original-Received: by alfajor.home (Postfix, from userid 20848) id 26A361C211; Wed, 10 Jan 2007 18:28:13 -0500 (EST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Wed\, 10 Jan 2007 22\:36\:41 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65172 Archived-At: >> I for one have compiled Emacs in 32bit-mode on an amd64 machine in two >> difference circumstances: > How about sharing the experience: how did you configure and build to > get a 32bit binaries? On my work machine it was a while back and I can't remember doing much: it seemed to just work. But I probably had to muck around with something, I just can't remember it, probably because it was fairly obvious. On my home machine I reported my problems here at the time and basically fixed them for this one time by adding #ifndef _LP64 /* It's actually running in x86 compatibility mode. */ #include "m/intel386.h" #else to src/m/amdx86-64.h and a few other quick&dirt hacks. Luckily my system is pure 32bit (other than the kernel) so I didn't have to deal with issues such as /usr/lib64/crtn.o. Stefan PS: IMHO we shouldn't need to specify --build=i386-linux-gnu. Instead, passing CC="gcc -m32" should be sufficient.