[gnu.gcc.bug] gcc.1.3.1 on Sun 3/50?

roxanne@hoptoad.uucp (Roxanne Kumari) (12/16/88)

Has anyone successfully compiled the gcc 1.3.1 on a 3/50?
I followed the installation instructions for a Sun 3 without floating hardware,
and the first two compiles worked
(Sun CC compiling gcc, make stage 1, stage 1 compile of gcc, make stage 2)
but the stage 2 compile of gcc failed:

stage2/gcc -g -O -Bstage2/ -c -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" gcc.c
stage2/gcc: Program cc1 got fatal signal 7.
*** Error code 1

Stop.

Anyone have any clues or seen this before or have any suggestions on this?

			Roxanne
-- 
roxanne@astral.uucp (Roxanne Kumari)
{amdahl,lll-crg,nsc,pacbell,pyramid,sun,ucsfcgl,uunet,well}
							!hoptoad!astral!roxanne

meissner@xyzzy.UUCP (Michael Meissner) (12/31/88)

In article <6066@hoptoad.uucp> roxanne@hoptoad.UUCP (Roxanne Kumari) writes:
| Has anyone successfully compiled the gcc 1.3.1 on a 3/50?
| I followed the installation instructions for a Sun 3 without floating hardware,
| and the first two compiles worked
| (Sun CC compiling gcc, make stage 1, stage 1 compile of gcc, make stage 2)
| but the stage 2 compile of gcc failed:
| 
| stage2/gcc -g -O -Bstage2/ -c -DSTANDARD_EXEC_PREFIX=\"/usr/local/lib/gcc-\" gcc.c
| stage2/gcc: Program cc1 got fatal signal 7.
| *** Error code 1

The problem is that gcc in stage 2 is linked by GNU, and by defualt,
gcc believes that you have a floating point unit.  If you change the
macro TARGET_DEFAULT in tm-sun3.h, you should be able to build.

5c5
< #define TARGET_DEFAULT 7
---
> #define TARGET_DEFAULT 5	/* 68020, bitfields, neither FPA or 68881 */

Revisions previous to 1.31, you had to also modify the spec files
which specify which /lib/?crt[10].o gets linked in as well, but that
was fixed in 1.31.
-- 
Michael Meissner, Data General.

Uucp:	...!mcnc!rti!xyzzy!meissner
Arpa:	meissner@dg-rtp.DG.COM   (or) meissner%dg-rtp.DG.COM@relay.cs.net