[gnu.gcc] gcc 1.31 on Sun 3/60

corbet@STOUT.UCAR.EDU (Jonathan Corbet) (11/23/88)

Has anybody successfully made gcc on a Sun-3 under SunOS 4.0?  I just tried
version 1.31, and got:

	stage1/gcc -g -O -Bstage1/  -o genflags genflags.o rtl.o obstack.o
	./genflags md > tmp-insn-flags.h
	sh: 1602 Memory fault - core dumped
	*** Error code 139
	make: Fatal error: Command failed for target `insn-flags.h'

on the "stage1" make.  Any ideas?

Jonathan Corbet
National Center for Atmospheric Research, Field Observing Facility
corbet@stout.ucar.edu

schmidt@orion.cf.uci.edu (Douglas C. Schmidt) (11/23/88)

In article <8811230038.AA23152@stout.UCAR.EDU> corbet@STOUT.UCAR.EDU (Jonathan Corbet) writes:
>>Has anybody successfully made gcc on a Sun-3 under SunOS 4.0?  I just tried
|version 1.31, and got:
|
|	stage1/gcc -g -O -Bstage1/  -o genflags genflags.o rtl.o obstack.o
|	./genflags md > tmp-insn-flags.h
|	sh: 1602 Memory fault - core dumped
|	*** Error code 139
|	make: Fatal error: Command failed for target `insn-flags.h'
|
|on the "stage1" make.  Any ideas?

Yes.  Be very careful you set up the argument to config.gcc correctly.
For example, I mistakenly used the ``sun4'' argument to config.gcc for
my sparc, and got exactly the same error described above.  Changing this
to sun4-os4 allowed the compile to complete without a problem.

Doug