Path: utzoo!utgpu!watserv1!watmath!att!rutgers!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!uflorida!haven!mimsy!mojo!mojo!djm From: djm@eng.umd.edu (David J. MacKenzie) Newsgroups: comp.emacs Subject: Re: 18.55 on Sparcstation 1+ and SunOS 4.10 Message-ID: Date: 16 Jul 90 02:46:30 GMT References: <1990Jun19.155152.16582@unmvax.cs.unm.edu> <23760@uflorida.cis.ufl.EDU> <442@riscsm.scripps.edu> Sender: news@eng.umd.edu (The News System) Organization: Free Software Foundation Lines: 40 In-Reply-To: bashford@scripps.edu's message of 10 Jul 90 18:27:05 GMT >>A related question: Has anyone successfuly built emacs >>18.55 on SS1 SunOS 4.1 with gcc 1.37.1? When I did >>my temacs dumped core mighty quick. The problem is due to emacs using a char array as ints, and sparc alignment doesn't allow that, but Sun cc aligns the array on an int boundary anyway so it's ok unless you use gcc. The fix is: Article 2206 of gnu.gcc.bug: Path: mojo!mimsy!haven!purdue!tut.cis.ohio-state.edu!AI.MIT.EDU!rms From: rms@AI.MIT.EDU Newsgroups: gnu.gcc.bug Subject: gcc 1.36 fails to make emacs Message-ID: <8911082240.AA04259@sugar-bombs.ai.mit.edu> Date: 8 Nov 89 22:40:51 GMT References: <8911081740.AA09001@orchestra.ecn.purdue.edu> Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 13 The bug is in Emacs. Please try the following change in alloc.c in Emacs: int staticidx = 0; #ifdef __GNUC__ Lisp_Object *staticvec[NSTATICS] = {0}; #else char staticvec1[NSTATICS * sizeof (Lisp_Object *)] = {0}; #define staticvec ((Lisp_Object **) staticvec1) #endif /* Put an entry in staticvec, pointing at the variable whose address is given */ -- David J. MacKenzie