🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49554

Error when building GCC2.5.7 on apollo DN4000 DomainOS 10.4

#49554
From: David A. Sinclair
Date: Wed, 05 Jan 1994 02:52
60 lines
2835 bytes
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		     
Technical Details
Message-ID: <1994Jan5.025259.18702@news.cs.brandeis.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!transfer.stratus.com!noc.near.net!news.cs.brandeis.edu!sinclair

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7823590fcfd52ba2,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 101626,7823590fcfd52ba2,start
X-Google-Attributes: gid101626,public
X-Google-ArrivalTime: 1994-01-04 19:27:56 PST
Newsgroups: gnu.gcc.help,comp.sys.apollo
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!transfer.stratus.com!noc.near.net!news.cs.brandeis.edu!sinclair
From: sinclair@cs.brandeis.edu (David A. Sinclair)
Subject: Error when building GCC2.5.7 on apollo DN4000 DomainOS 10.4
Message-ID: <1994Jan5.025259.18702@news.cs.brandeis.edu>
Sender: news@news.cs.brandeis.edu (USENET News System)
Organization: Brandeis University - Computer Science Dept.
Date: Wed, 5 Jan 1994 02:52:59 GMT
Lines: 60