Article View: gnu.emacs.bug
Article #99656Re: Gcc compiled temacs (epoch 3.1) dies in alloc.c -- help
From: Vick Khera
Date: Sat, 23 Jun 1990 03:25
Date: Sat, 23 Jun 1990 03:25
44 lines
2429 bytes
2429 bytes
+---------
| From: meissner@osf.org
| Subject: Gcc compiled temacs (epoch 3.1) dies in alloc.c -- help
| Newsgroups: gnu.emacs.bug
| Date: 20 Jun 90 19:48:00 GMT
|
| Manavendra K. Thakur (thakur@ZERKALO.HARVARD.EDU) writes:
| | I can't get a gcc-compiled temacs to work properly. Here is the error
| | I get during the make:
| |
| | ./temacs -batch -l inc-vers
| | *** Bus error
| | make: Fatal error: Command failed for target `epoch'
i had the exact same error when compiling emacs with gcc 1.36.93 using gcc
-traditional -O, but plain gcc -O worked fine (albeit with a bunch of warning
messages)
| I believe I've seen this reported before. Anyway GCC is not aligning
| staticvec1 to a word boundary, and evidently the Sun C compiler is.
| Since it is a char array, GCC is within it's rights not to align this.
| To change this, you might try and change the declaration to:
| #define NSTATICS 200
| Lisp_Object *staticvec[NSTATICS] = {0};
| and then GCC should align the array with no problem. It also allows
| slightly better debugging if you are debugging the pure_copy stuff in
| building xemacs from temacs (kids don't try this at home :-).
this patch makes emacs work just fine when compiled with gcc -O
-traditional. now i just have to see how well it works using gcc 1.37.1 on
SunOS 4.1 ...
| Michael Meissner email: meissner@osf.org phone: 617-621-8861
| Open Software Foundation, 11 Cambridge Center, Cambridge, MA
+---------
v.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vick Khera (919) 660-6528 Department of Computer Science
ARPA: khera@cs.duke.edu Duke University
UUCP: ..!{mcnc,decvax}!duke!khera Durham, NC 27706
Technical Details
Message-ID:
<9006230325.AA02097@juliet.cs.duke.edu>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!CS.DUKE.EDU!kheraReferences:
<9006201948.AA00998@curley.osf.org>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,a281dcd450968584 X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1990-06-23 00:41:49 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bu.edu!snorkelwacker!tut.cis.ohio-state.edu!CS.DUKE.EDU!khera From: khera@CS.DUKE.EDU (Vick Khera) Newsgroups: gnu.emacs.bug Subject: Re: Gcc compiled temacs (epoch 3.1) dies in alloc.c -- help Message-ID: <9006230325.AA02097@juliet.cs.duke.edu> Date: 23 Jun 90 03:25:29 GMT References: <9006201948.AA00998@curley.osf.org> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 44 Posted: Sat Jun 23 04:25:29 1990