🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54405

gcc-1.37.1 fixes for ULTRIX 4.0

#54405
From: Piet Tutelaers
Date: Thu, 22 Nov 1990 09:55
119 lines
4524 bytes
Here are the changes that I needed to bring up gcc-1.37.1 on our DECstation
3100 with ULTRIX 4.0.

The problems I encountered were:

stage0 (bringing up stage1/gcc):
stage1 (bringing up stage2/gcc):

1) symout.c (both stages) uses default ./stddef.h which is incompatible
   with ULTRIX 4.0, use in stead /usr/include/stddef.h by changing the
   INCLUDES in the Makefile (see second patch in Makefile)

2) va-mips.h (stage1) contains a workaround for compilers which does not
   handle varargs correctly (ULTRIX 3.1). Because 4.0 has a ANSII cc this
   workaround can be forgotten (see patch in va-mips.h).

3) I got an error in stage1
   ./gcc Program cc1 got fatal signal 11
   I could solve this by using the compile time option -D_XOPEN_SOURCE in
   the Makefile (patch 1), whatever this means.

4) Because the INCLUDES are changed in the Makefile, bison could not find
   config.h. So I cxhanged that into "./config.h" which seems to work. I don't
   know sure if this is really necessary.

Some advices and warnings:
5) If you already have gcc-1.36 then put away /usr/local/lib/gcc-includes.

6) Don't execute the `make includes', as I did! It spoils your
   /usr/local/lib directory!! Even don't execute fixincludes, because the
   ULTRIX 4.0 compiler has already ANSII header files (hiep hoi).


The real reason I installed gcc-1.37 (we had gcc-1.36 which worked nice)
was to get g++ and gdb. I think some of the problems with gcc are also
explicable to the installation of g++. But I still have no g++ ......

Succes with your gcc/g++ hacking,

Piet Tutelaers
rcpt@urc.tue.nl

-----------------------the list of patches-----------------------
diff -c gcc-1.37.1.orig/Makefile gcc-1.37.1/Makefile
*** gcc-1.37.1.orig/Makefile	Wed Jan 10 23:09:57 1990
--- gcc-1.37.1/Makefile	Wed Nov 21 21:18:20 1990
***************
*** 68,73 ****
--- 68,76 ----
  
  # Variables you should change for certain systems.
  
+ # These are what you would need on ULTRIX 4.0:
+ CFLAGS=-g -D_XOPEN_SOURCE
+ 
  # These are what you would need on HPUX:
  # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300
  # If you are using the GNU assembler and linker on HPUX,
***************
*** 123,129 ****
  # Both . and srcdir are used, in that order,
  # so that tm.h and config.h will be found in the compilation
  # subdirectory rather than in the source directory.
! INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
  SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config
  
  # Always use -I$(srcdir)/config when compiling.
--- 126,133 ----
  # Both . and srcdir are used, in that order,
  # so that tm.h and config.h will be found in the compilation
  # subdirectory rather than in the source directory.
! #INCLUDES = -I. -I$(srcdir) -I$(srcdir)/config
! INCLUDES = -I$(srcdir)/config
  SUBDIR_INCLUDES = -I.. -I../$(srcdir) -I../$(srcdir)/config
  
  # Always use -I$(srcdir)/config when compiling.
*** gcc-1.37.1.orig/cexp.y	Tue Jan 16 01:23:56 1990
--- gcc-1.37.1/cexp.y	Wed Nov 21 19:33:31 1990
***************
*** 24,30 ****
  /* Parse a C expression from text in a string  */
     
  %{
! #include "config.h"
  #include <setjmp.h>
  /* #define YYDEBUG 1 */
  
--- 24,30 ----
  /* Parse a C expression from text in a string  */
     
  %{
! #include "./config.h"        /* cann't find this file (rcpt) */
  #include <setjmp.h>
  /* #define YYDEBUG 1 */
  
diff -c gcc-1.37.1.orig/gvarargs.h gcc-1.37.1/gvarargs.h
*** gcc-1.37.1.orig/gvarargs.h	Thu Sep 21 07:06:11 1989
--- gcc-1.37.1/gvarargs.h	Wed Nov 21 11:39:36 1990
***************
*** 6,12 ****
  #include "va-spur.h"
  #else
  #ifdef __mips__
! #include "va-mips.h"
  #else
  #ifdef __i860__
  #include "va-i860.h"
--- 6,15 ----
  #include "va-spur.h"
  #else
  #ifdef __mips__
! #include "varargs.h"
! /*
!  include "va-mips.h" ULTRIX 4.0 standard? (rcpt)
! */
  #else
  #ifdef __i860__
  #include "va-i860.h"
Technical Details
Message-ID: <240@rc6.urc.tue.nl>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!hp4nl!tuegate.tue.nl!rc6.urc.tue.nl!rw7.urc.tue.nl!rcpt

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,4235591507f7f6f6,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1990-11-22 01:55:30 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!hp4nl!tuegate.tue.nl!rc6.urc.tue.nl!rw7.urc.tue.nl!rcpt
From: rcpt@rw7.urc.tue.nl (Piet Tutelaers)
Newsgroups: gnu.gcc.help
Subject: gcc-1.37.1 fixes for ULTRIX 4.0
Message-ID: <240@rc6.urc.tue.nl>
Date: 22 Nov 90 09:55:30 GMT
Sender: News Administration <news@urc.tue.nl>
Reply-To: rcpt@urc.tue.nl
Lines: 119
Posted: Thu Nov 22 10:55:30 1990