🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #49555

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

#49555
From: Dinesh Somashekar
Date: Wed, 05 Jan 1994 14:26
85 lines
4104 bytes
In article <1994Jan5.025259.18702@news.cs.brandeis.edu>, sinclair@cs.brandeis.edu (David A. Sinclair) writes:
|> 
|> 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!!!
|> 	      };
|> 

That particular struct contains some enums.  I am not very sure about
what the type declarations are.  (wiped out my source no disk space
:-( ) .   However check up in the header file bc_optab.h or something
I think all you do is to alter line 70 to something like 
    
    { (enum opcode_type ) -1, (sometype) -1 , .... }

You need to do that in many more lines all the way upt to a struct
unary_operator.  


|> ... 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 (?).
|> 

Frankly getting rid of the line itself doesnot appeal to me at all.
Incidentally same OSversion 10.4 cc 6.8

|> 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		     

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dinesh Somasekhar                 Texas Instruments India,
dinesh@india.ti.com               71 Miller Road,
                                  Bangalore 560052,
                                  INDIA.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <2geilq$5v6@barracuda.dadd.ti.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!barracuda.dadd.ti.com!dinesh@india.ti.com
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 06:43:07 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!barracuda.dadd.ti.com!dinesh@india.ti.com
From: dinesh@node_4db1b.NoSubdomain.NoDomain (Dinesh Somashekar)
Newsgroups: gnu.gcc.help,comp.sys.apollo
Subject: Re: Error when building GCC2.5.7 on apollo DN4000 DomainOS 10.4
Date: 5 Jan 1994 14:26:02 GMT
Organization: Texas Instruments
Lines: 85
Sender: dinesh@node_4db1b (Dinesh Somashekar)
Distribution: world
Message-ID: <2geilq$5v6@barracuda.dadd.ti.com>
References: <1994Jan5.025259.18702@news.cs.brandeis.edu>
NNTP-Posting-Host: node_4db1b.india.ti.com