XBR2D96D@DDATHD21.BITNET (Knobi der Rechnerschrat) (10/26/90)
Hallo, in order to to build GNU g++-1.37.1 on a 70/GT running IRIX 3.3.1 I've first tried to install GNU gcc-1.37.1. After changing one file (stddef.h) in the gcc distribution I was able to compile the compiler using SGI's own cc. The real problems start when I use the result of this step to compile gcc using itself. After changing two more files (gvarargs.h and config/tm-iris.h) to get over the first 30 or more files, gcc finally failed building gnulib. The last error message is: /gcc Program cc got fatal signal 11 Has anybody successfully installed gcc (with selfcompilation) under 3.3(.x) ? What are the changes to the standard gnu distribution (which seems to be ok for 3.2)? What do I have to expect for g++ ? At the end I will include my changes and expalnations why I had to made them. Regards Martin Knoblauch TH-Darmstadt Physical Chemistry 1 Petersenstrasse 20 D-6100 Darmstadt, FRG BITNET: <XBR2D96D@DDATHD21> ------------------- stddef.h diffs ------------------------------------ 10,11c10,11 < #ifndef _SIZE_T_ /* in case <sys/types.h> has defined it. */ < #define _SIZE_T_ /* trailing _ for IRIX 3.3.1 */ --- > #ifndef _SIZE_T /* in case <sys/types.h> has defined it. */ > #define _SIZE_T The trailing underscores seem to be new in 3.3.x ------------------- gvarargs.h diffs --------------------------------- 9,10c9 < /*#include "va-mips.h"*/ < #include <varargs.h> /* MK */ --- > #include "va-mips.h" In 3.3.1 va_list is defined in <stdio.h>. This definition is very incompatible with that in va-mips.h. I have used the systems standard file instead. Maybe here I made a very bad move. ------------------- config/tm-iris.h diffs -------------------------- 8,9c8 < #define CPP_SPEC "-Dsgi -DSVR3 -Dhost_mips -DMIPSEB -DSYSTYPE_SYSV\ < -D_LANGUAGE_C -DLANGUAGE_C" --- > #define CPP_SPEC "-Dsgi -DSVR3 -Dhost_mips -DMIPSEB -DSYSTYPE_SYSV\ > -DLANGUAGE_C" I included the _LANGUAGE_C symbol, as it is used in many standard include files under 3.3(.x). Most possible, more stuff has to be included here.