🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1515

gcc 2.3.3 bootstrap on IBM RT

#1515
From: Karl Berry
Date: Thu, 31 Dec 1992 15:03
71 lines
3143 bytes
gcc 2.3.3 does not bootstrap properly on an IBM RT running bsd 4.3.
I did:
	configure romp-aos
        make LANGUAGES=c

and got the same error as with 2.3.2 compiling obstack.c:

    hc -Hnocpp -c  -DIN_GCC     -I. -I. -I./config obstack.c
    E "obstack.h",L134/C1:	Can't open "stddef.h": No such file or directory

The problem is that the hc compiler defines __STDC__, yet does not
provide <stddef.h>.  It works to include gstddef.h, though, so I changed
obstack.h to use gstddef.h if STDDEF_H_MISSING is defined, and defined
it in config/x-romp.  Perhaps there is a better fix altogether.

I also added -w to x-romp.  hc's warnings are not useful.

karl@cs.umb.edu

Tue Dec 29 07:28:32 1992  Karl Berry  (karl@red.cs.umb.edu)

	* x-romp (CC): Include -w.

	* x-romp (CC): Include -DSTDDEF_H_MISSING.
        * obstack.h [STDDEF_H_MISSSING && IN_GCC]: Include gstddef.h
          instead of <stddef.h>.

*** ./ORIG/obstack.h	Sat Dec 26 01:55:47 1992
--- ./obstack.h	Tue Dec 29 06:04:53 1992
***************
*** 120,126 ****
     don't already have ptrdiff_t get it.  */
  
  #if defined (__STDC__) && ! defined (offsetof)
! #if defined (__GNUC__) && defined (IN_GCC)
  /* On Next machine, the system's stddef.h screws up if included
     after we have defined just ptrdiff_t, so include all of gstddef.h.
     Otherwise, define just ptrdiff_t, which is all we need.  */
--- 120,126 ----
     don't already have ptrdiff_t get it.  */
  
  #if defined (__STDC__) && ! defined (offsetof)
! #if (defined (__GNUC__) || defined (STDDEF_H_MISSING)) && defined (IN_GCC)
  /* On Next machine, the system's stddef.h screws up if included
     after we have defined just ptrdiff_t, so include all of gstddef.h.
     Otherwise, define just ptrdiff_t, which is all we need.  */
*** ./ORIG/x-romp	Mon Jul 27 20:00:31 1992
--- ./x-romp	Tue Dec 29 06:10:54 1992
***************
*** 2,8 ****
  # being used.  -Hnocpp makes hc use its builtin preprocessor instead of
  # /lib/cpp.  gcc doesn't use <sys/ioctl.h>, so it doesn't matter whether
  # fixincludes has been run.
! CC=hc -Hnocpp
  
  # The default `make' on the RT doesn't define MAKE, so do it here.
  MAKE=make
--- 2,14 ----
  # being used.  -Hnocpp makes hc use its builtin preprocessor instead of
  # /lib/cpp.  gcc doesn't use <sys/ioctl.h>, so it doesn't matter whether
  # fixincludes has been run.
! # 
! # hc's warnings do nothing but obscure the output, hence the -w.
! # 
! # hc defines __STDC__, yet <stddef.h> is missing, so we tell obstack.h
! # to use gstddef.h instead.
! # 
! CC=hc -Hnocpp -w -DSTDDEF_H_MISSING
  
  # The default `make' on the RT doesn't define MAKE, so do it here.
  MAKE=make
Technical Details
Message-ID: <199301010103.AA07903@claude.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!claude.cs.umb.edu!karl

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!claude.cs.umb.edu!karl
From: karl@claude.cs.umb.edu (Karl Berry)
Subject: gcc 2.3.3 bootstrap on IBM RT
Message-ID: <199301010103.AA07903@claude.cs.umb.edu>
Sender: gnulists@ai.mit.edu
Reply-To: karl@cs.umb.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 31 Dec 1992 15:03:28 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 72