From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Puneet Goel Newsgroups: gmane.emacs.devel Subject: Re: Anyone built Emacs with gcc-3.3? Date: Wed, 09 Jul 2003 07:31:05 -0500 Organization: TranSwitch Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1057774510 26208 80.91.224.249 (9 Jul 2003 18:15:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 9 Jul 2003 18:15:10 +0000 (UTC) Cc: 'Emacs Pretesters' , "Marshall, Simon" , 'Emacs Developers' , puneet Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jul 09 20:15:06 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19aJSy-0006nY-00 for ; Wed, 09 Jul 2003 20:14:56 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19aJdu-0003L6-00 for ; Wed, 09 Jul 2003 20:26:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19aELZ-0002FY-W8 for emacs-devel@quimby.gnus.org; Wed, 09 Jul 2003 08:46:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19aELN-0002EC-Mm for emacs-devel@gnu.org; Wed, 09 Jul 2003 08:46:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19aEKq-0001zx-0O for emacs-devel@gnu.org; Wed, 09 Jul 2003 08:46:43 -0400 Original-Received: from [203.190.131.45] (helo=IndiaFire.idc.txc.com) by monty-python.gnu.org with smtp (Exim 4.20) id 19aECU-0000Gp-Fy for emacs-devel@gnu.org; Wed, 09 Jul 2003 08:37:35 -0400 Original-Received: (qmail 13362 invoked by uid 505); 9 Jul 2003 18:20:14 -0000 Original-Received: from pgoel@txc.stpn.soft.net by IndiaFire.idc.txc.com with qmail-scanner- http://www.astaro.com (Version 3.0build 135|Known records: 70165. . Clean.); 09/07/2003 18:20:12 Original-Received: from unknown (HELO cheetah.txc.stpn.soft.net) (192.168.200.43) by indiafire.idc.txc.com with SMTP; 9 Jul 2003 18:20:09 -0000 X-Mailer: emacs 21.3.50.1 (via feedmail 8 I) Original-To: Dave Love Original-From: Puneet Goel In-Reply-To: (Dave Love's message of "Tue, 08 Jul 2003 23:41:45 +0100") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (usg-unix-v) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15519 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15519 >>>>> "Dave" == Dave Love writes: Dave> puneet writes: >> I have compiled emacs in gcc 3.3. Actually I configured gcc for >> sparcv9 arch. And hence my emacs is 64-bit. Dave> That doesn't follow. -mcpu=v9 is orthogonal to -m64. Sorry, I did not know that. For record, I am not a software engineer. I am a hardware professional. And I needed 64-bit emacs to read big files. I do use gcc -m64 for building my emacs. I try building 64-bit emacs from emacs CVS almost once a week. Never faced a problem. I think I first successfully built 64-bit emacs some three months back. That was the time when our sys-admin upgraded my sparc machine to solaris 2.8. Our sys-admin is on leave, and I do not know a way to get patch information on my system. I believe he installed just the recommended patches from Sun. So I have been compiling and running 64-bit emacs versions 21.X and 21.3.50 on my solaris 2.8 for the past three months now without any issue. The only issue I face is when I set my display to a linux system, and launch 64-bit emacs on that display, emacs dumps core. 32-bit solaris emacs compiles work fine. I am sure that my emacs is 64-bit because .... 1. I use gcc -m64 to compile that. 2. I am able to open BIG files (200MB and more) with this emacs. 32-bit emacs gives "Maximum buffer size exceeded" for the same files. 3. I had to compile 64-bit versions of all the required libraries. And my emacs is linked to 64-bit versions of sun libraries. here is the ldd output .... $ ldd /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/bin/emacs libXaw3d.so.5 => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libXaw3d.so.5 libXmu.so.4 => /usr/lib/64/libXmu.so.4 libXt.so.4 => /usr/lib/64/libXt.so.4 libSM.so.6 => /usr/lib/64/libSM.so.6 libICE.so.6 => /usr/lib/64/libICE.so.6 libXext.so.0 => /usr/lib/64/libXext.so.0 libtiff.so => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libtiff.so libjpeg.so.62 => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libjpeg.so.62 libpng.so.3 => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libpng.so.3 libz.so => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libz.so libm.so.1 => /usr/lib/64/libm.so.1 libungif.so.4 => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libungif.so.4 libXpm.so.4.11 => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/libXpm.so.4.11 libX11.so.4 => /usr/lib/64/libX11.so.4 libsocket.so.1 => /usr/lib/64/libsocket.so.1 libnsl.so.1 => /usr/lib/64/libnsl.so.1 libkstat.so.1 => /usr/lib/64/libkstat.so.1 libcurses.so.1 => /usr/lib/64/libcurses.so.1 libc.so.1 => /usr/lib/64/libc.so.1 libICE.so.6 (SUNWprivate) => (version not found) libICE.so.6 (SUNWprivate) => (version not found) libdl.so.1 => /usr/lib/64/libdl.so.1 libdga.so.1 => /usr/openwin/lib/sparcv9/libdga.so.1 libgcc_s.so.1 => /home/pgoel/local/gnu/arch/sparcv9-sun-solaris2.8/lib/sparcv9/libgcc_s.so.1 libmp.so.2 => /usr/lib/64/libmp.so.2 /usr/platform/SUNW,Ultra-60/lib/sparcv9/libc_psr.so.1 Dave> Dave> `file' will tell you whether the binary is 64-bit, but as Dave> far as I remember, you won't get 64-bit Emacs words with gcc Dave> anyhow since gcc doesn't define _LP64. (gcc -m64 wasn't Dave> useful when I last touched 64-bit sparc configuration.) Well file does say that it is 64-bit version. Dave> Dave> Somewhere I have some changes to somewhat sanitize 64-bit Dave> configuration, but as far as I know there are still some Dave> basic problems with 64-bit systems, especially big-endian Dave> ones, and I'm surprised they work at all... I am not competent to comment on these. The first time I compiled 64-bit emacs was sometimes in oct 2002. RMS had put a request on the emacs-pretesters list for testing on 64 bit machines. At that time, I could compile emacs. I could even run it with "emacs -nw". X11 emacs used to dump core. It seemed to be some openwin internal error. I had reported all this on the emacs-pretesters list. Now I work for a different organization. And 64-bit emacs compiles have been running fine since last 3 months. I use 64-bit emacs for almost everything (including gnus etc.) Dave> If it behaves differently on different Solaris systems with Dave> the same OS version then you should probably look at all the Dave> installed patches, versions of development tools (I assume Dave> you use the Sun ld) and what you pick up from the system Dave> libraries -- the version of malloc in particular. I do use sun ld. I do not know how to check for which malloc I am using. Should I send you the config.log file?? Dave> -- Regards - p -- Puneet Goel TranSwitch India -- LEAD me in the centre of thy silence to fill my heart with songs. - Stray Birds, Rabindernath Tagore --