🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49561

Re: Error when building GCC2.5.7 on apollo DN4000 DomainOS 10.4

#49561
From: George Bukwa
Date: Thu, 06 Jan 1994 00:17
75 lines
3517 bytes
David A. Sinclair (sinclair@cs.brandeis.edu) wrote:

: Hello, all!

: I am trying to build gcc2.5.7 on an apollo DN4000 running DomainOS
: 10.4 in the BSD environment.  All was going well in the *initial* make
: phase (before "make stage1"), until I got this error:

: ------------(compiler output here)--------------------
: cc -g -A nansi -A cpu,3000 -A runtype,bsd4.3 -A systype,any
: -DSHORT_ENUM_BUG -c 
: -DIN_GCC   -g     -I. -I. -I./config bc-optab.c

:  (0070)   { -1, -1, -1, -1 },

:  ******** Line 70 of "bc-optab.c": [Error #079]  Illegal type of
: constant "1" fo
: r variable
: 	  "opcode".
: 	  ******** Line 70 of "bc-optab.c": [Error #079]  Illegal type
: of constant "1" 
: for variable
: 		   "result".
: ------------(end output excerpt)----------------------

: Here's an example of the offending code from bc-optab.c:

: /* Binary operator tables.  */
: struct binary_operator optab_plus_expr[] = {
:   { addSI, SIcode, SIcode, SIcode },
:     { addDI, DIcode, DIcode, DIcode },
:       { addSF, SFcode, SFcode, SFcode },
: 	{ addDF, DFcode, DFcode, DFcode },
: 	  { addXF, XFcode, XFcode, XFcode },
: 	    { addPSI, Pcode, Pcode, SIcode },
: 	      { -1, -1, -1, -1 },     <<------  this is line 70!!!
: 	      };

: ... then for the rest of the file (bc-optab.c) it complains in the
: same fashion about the constant -1 being used as one of those enumerated
: types, and dies at the end of the file.  Has anyone seen/fixed this?
: Is it safe to simply edit out that last line in each struct array
: (removing the lines w/ -1 in them)?  I don't think that's probably a
: good idea -- it looks like those are meant to be sentinel array
: members (?).

: Any suggestions or feedback on how I might proceed here are *most*
: welcome!!

: Thanks,
: David Sinclair
: sinclair@bbn.com
:   --  or  --
: sinclair@cs.brandeis.edu

: P.S. To everyone in comp.sys.apollo who asked:  YES, I will make this
: available for ftp once it is all built properly!  :-)
: --
: -----------------------------------------------------------------
: David A. Sinclair - "Chester"		      
: sinclair@cs.brandeis.edu		     


I changed the line(s) you are having trouble with to:

  { LAST_AND_UNUSED_OPCODE, LAST_AND_UNUSED_TYPECODE, LAST_AND_UNUSED_TYPECODE, LAST_AND_UNUSED_TYPECODE },

These are defined in the enums as unused.  I didn't get gcc completely
compiled because of problems with AS.  Maybe when you get further along
we can exchange ideas on how to fix other problems we run across.

I am trying to build on an HP 9000 series 400 at SR10.3.

Hope this helps
George Bukwa
Technical Details
Message-ID: <2gflai$ed9@hw_georgeb.agcs.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.intercon.com!udel!news.sprintlink.net!agphx.agcs.com!not-for-mail
References: <1994Jan5.025259.18702@news.cs.brandeis.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7823590fcfd52ba2
X-Google-Attributes: gid11318c,public
X-Google-Thread: 101626,7823590fcfd52ba2
X-Google-Attributes: gid101626,public
X-Google-ArrivalTime: 1994-01-05 16:26:39 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.intercon.com!udel!news.sprintlink.net!agphx.agcs.com!not-for-mail
From: bukwag@agcs.com (George Bukwa)
Newsgroups: gnu.gcc.help,comp.sys.apollo
Subject: Re: Error when building GCC2.5.7 on apollo DN4000 DomainOS 10.4
Followup-To: gnu.gcc.help,comp.sys.apollo
Date: 5 Jan 1994 17:17:22 -0700
Organization: AG Communication Systems, Phoenix, Arizona
Lines: 75
Message-ID: <2gflai$ed9@hw_georgeb.agcs.com>
References: <1994Jan5.025259.18702@news.cs.brandeis.edu>
NNTP-Posting-Host: hw_georgeb.agcs.com
X-Newsreader: TIN [version 1.2 PL2]