🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #732

Re: Help with g++ on a SUN386

#732
From: henry Balen
Date: Wed, 17 Jan 1990 09:35
52 lines
1890 bytes
I have managed to get g++ 1.36.2 up and running on the sun386. I had a lot of problems with 1.36.1 in that when I did get the compiler to work it produced code that crashed!
I have listed the changes that I found necessary for 1.36.2 below. I hope that these are of some help.

Henry Balen <balen%camscan.uucp@uk.ac.ukc>
Camscan, Saxon Way, Bar Hill, Cambridge CB3 0JE, United Kingdom.

--------------------------------------------------------------------------
In xm-sun386i.h at line 47

	#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic}"

to

	#define LINK_SPEC "%{!e*:}  -Bstatic "

--------------------------------------------------------------------------
In crt0.c

the
	__do_global_init()
and
	__do_global_cleanup()

needed to be removed (I put ifndef COFF round them).

--------------------------------------------------------------------------
In tm-sun386i.h at line 34

	#define STARTFILE_SPEC  \
	  "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}"

to

	#define STARTFILE_SPEC  \
	  "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0+.o%s}}"

--------------------------------------------------------------------------
In gcc.c at line 306

	ld %{o*} %g.R %g.O

to

	ld -Bstatic -e _start %{o*} %g.R %g.O -L/vol/local/lib.sun386\n\

and at line 310

	char *link_spec = "%{!c:%{!M*:%{!E:%{!S:ld -r -o %g.R %l\

to

	char *link_spec = "%{!c:%{!M*:%{!E:%{!S:ld -r -L/vol/local/lib.sun386 -o %g.R %l\
Technical Details
Message-ID: <9620.9001170935@apollo.camscan.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!balen%camscan.uucp

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!NSFNET-RELAY.AC.UK!balen%camscan.uucp
From: balen%camscan.uucp@NSFNET-RELAY.AC.UK (henry Balen)
Newsgroups: gnu.g++.bug
Subject: Re:  Help with g++ on a SUN386
Message-ID: <9620.9001170935@apollo.camscan.co.uk>
Date: 17 Jan 90 09:35:21 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 52