🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52853

Re: gcc2.1 and emacs 18.58

#52853
From: Michael Salmon
Date: Fri, 15 May 1992 06:43
50 lines
2306 bytes
In article <1992May14.154937.8545@iplmail.orl.mmc.com>, chucks@iplmail.orl.mmc.com (Chuck Strickland) writes:
|>  I am unable to get emacs to run with gcc2.1 on a sun running 4.1.1.
|> 
|>  the compile goes fine and temacs runs to dump emacs out. But when
|>  I try to run emacs it seg faults in _start.
|>  
|>  I changed the config.h to use gcc and
|>  s-sunos4-1.h to specify gcc for the compiler and linker.
|>  I also changed 
|>  #define LD_SWITCH_SYSTEM -e __start -static
|> 
|>  to use -static instead of -Bstatic.
|> 
|>  what else must I do to compile emacs under gcc-2.1.

I think that the problem that you have is that you are picking up the gcc startup
instead of the emacs startup because you are specifying gcc as the linker. I used
ld but changed the declaration of libgcc, here is a part of my ymakefile:

/* Fix linking if compiled with GCC.  */
#ifdef __GNUC__
#if __GNUC__ > 1
#ifndef LIB_GCC
#define LIB_GCC -L/usr/gnu/lib/gcc-lib/$(ARCH)/2.1 -lgcc
#endif
GNULIB_VAR = LIB_GCC
#else /* __GNUC__ <= 1 */
#ifndef LIB_GCC
#define LIB_GCC /usr/local/lib/gcc-gnulib
#endif
GNULIB_VAR = `if [ -f LIB_GCC ] ; then echo LIB_GCC; else echo; fi`
#endif /* __GNUC__ <= 1 */
#else
GNULIB_VAR = 
#endif

The ARCH environment variable is set to the output of arch so the one file works
for both sun3 and sun4. The same fix is required in epoch along with a re-ordering
of the libraries. We have been running 18.58 with no problems for about a month now.

-- 

Michael Salmon

#include	<standard.disclaimer>
#include	<witty.saying>
#include	<fancy.pseudo.graphics>

Ericsson Telecom AB
Stockholm
Technical Details
Message-ID: <1992May15.064349.3236@ericsson.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic2!ericom!eos.ericsson.se!etxmesa
References: <1992May14.154937.8545@iplmail.orl.mmc.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7fb11c9d01bf0d79
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-05-15 12:44:23 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic2!ericom!eos.ericsson.se!etxmesa
From: etxmesa@eos.ericsson.se (Michael Salmon)
Subject: Re: gcc2.1 and emacs 18.58
Message-ID: <1992May15.064349.3236@ericsson.se>
Sender: news@ericsson.se
Nntp-Posting-Host: eos6c02.ericsson.se
Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
Organization: Ericsson Telecom AB
References:  <1992May14.154937.8545@iplmail.orl.mmc.com>
Date: Fri, 15 May 1992 06:43:49 GMT
Lines: 50