From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: add etc/PROBLEMS entry for building 32-bit exe on 64-bit system Date: Fri, 19 Jan 2007 17:36:03 +0200 Message-ID: <20070119153603.GB30252@kobe.laptop> References: <20070115062154.GC2855@kobe.laptop> <20070115233355.GA5125@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1169221032 24084 80.91.229.12 (19 Jan 2007 15:37:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 Jan 2007 15:37:12 +0000 (UTC) Cc: rgm@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 19 16:37:10 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 1H7vnh-0003UH-2u for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2007 16:37:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7vng-0008TK-LZ for ged-emacs-devel@m.gmane.org; Fri, 19 Jan 2007 10:37:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H7vnV-0008R2-83 for emacs-devel@gnu.org; Fri, 19 Jan 2007 10:36:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H7vnS-0008Oc-Pk for emacs-devel@gnu.org; Fri, 19 Jan 2007 10:36:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H7vnS-0008ON-Gq for emacs-devel@gnu.org; Fri, 19 Jan 2007 10:36:54 -0500 Original-Received: from [62.1.205.36] (helo=igloo.linux.gr) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1H7vnP-00027L-Rd; Fri, 19 Jan 2007 10:36:52 -0500 Original-Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l0JFaPiG006140 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 19 Jan 2007 17:36:32 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id l0JFa3Vc030477; Fri, 19 Jan 2007 17:36:16 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id l0JFa3ah030476; Fri, 19 Jan 2007 17:36:03 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Original-To: Richard Stallman Content-Disposition: inline In-Reply-To: <20070115233355.GA5125@kobe.laptop> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.482, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.72, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr 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:65303 Archived-At: On 2007-01-16 01:33, Giorgos Keramidas wrote: > On 2007-01-15 18:28, Richard Stallman wrote: > > I don't really think the text below is correct. > > > > I have been building 32-bit versions of Emacs 22 on Solaris amd64 > > systems for several months now, and the build works fine. This means > > that, at least the following part of the text below is false: > > > > Can you write text that is more correct? > > Yes. > > Please note that I haven't been able to build a 64-only version of Emacs > on Solaris amd64; Emacs 22.X crashes during the autoload stage of the > bootstrap process, when I try to build a 64-bit binary on Solaris. > > Nevertheless, I can definitely help with writing the text for 32-bit > builds for Solaris and FreeBSD. For other systems, I may need some help > from people who are more experienced in their use, and have more current > installations than me. Hi all, I posted the following to rms@gnu.org, but forgot to Cc: the list, so here it is, in case anyone else has time to review the text too: %% diff -r 1f853b6e3574 -r 59b73f6c6f46 ChangeLog --- a/ChangeLog Fri Jan 19 07:10:51 2007 +0200 +++ b/ChangeLog Fri Jan 19 17:04:43 2007 +0200 @@ -1,3 +1,8 @@ 2007-01-18 Bruno Haible (tiny change) + + * etc/MACHINES: Describe how 32-bit and 64-bit versions of Emacs + can be compiled on Solaris systems. + 2007-01-18 Bruno Haible (tiny change) * INSTALL: Info files moved to share/info. diff -r 1f853b6e3574 -r 59b73f6c6f46 etc/MACHINES --- a/etc/MACHINES Fri Jan 19 07:10:51 2007 +0200 +++ b/etc/MACHINES Fri Jan 19 17:04:43 2007 +0200 @@ -1021,11 +1021,27 @@ Sun 3, Sun 4 (sparc), Sun 386 (m68k-sun- sparc-sun-sunos4.1.3noshr, sparc-sun-solaris2.*, i386-sun-solaris2.*, sparc*-*-linux-gnu) + To build a 32-bit Emacs (i.e. if you are having any sort of problem + bootstrapping a 64-bit version), you can use the Sun Studio compiler + and configure Emacs with: + + env CC="cc -xarch=v7" CFLAGS='' ./configure # on SPARC systems + env CC="cc -xarch=386" CFLAGS='' ./configure # on x86 systems + + On Solaris 2.10, it is also possible to use /usr/sfw/bin/gcc to build + a 32-bit version of Emacs. Just make sure you point ./configure to + the right compiler: + + env CC='/usr/sfw/bin/gcc -m32' ./configure + To build a 64-bit Emacs (with larger maximum buffer size and including large file support) on a Solaris system which supports 64-bit executables, use the Sun compiler, configuring something like this (see the cc documentation for information on 64-bit - compilation): env CC="cc -xarch=v9" ./configure + compilation): + + env CC="cc -xarch=v9" CFLAGS='' ./configure # on SPARC systems + env CC="cc -xarch=amd64" CFLAGS='' ./configure # on x86 systems As of version 2.95, GCC doesn't support the 64-bit ABI properly, but later releases may. %% There is a buglet in the version I posted to Richard. The last command, which can be used to build a 64-bit Emacs on Solaris uses -xarch=386, which should be replaced with the version shown above (-xarch=amd64). Regards, Giorgos