Message-ID: <20011012130500.56153.qmail@web9105.mail.yahoo.com> Date: Fri, 12 Oct 2001 06:05:00 -0700 (PDT) From: ROLAND Subject: Re: Another cross-compiler problem! To: djgpp AT delorie DOT com In-Reply-To: <9q6hd0$f21$1@nets3.rz.RWTH-Aachen.DE> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --- Hans-Bernhard Broeker wrote: > ROLAND wrote: > > I still have problems. I get 'type clashes'??? > What can I do about > > this. > > We don't know --- you provided far too less > information for any > sensible advice to be given. We'ld at the very > least need the exact > compiler error messages, and a meaningful code > snipped that triggered > them. > > > Also my compiler is falling on the next piece of > code: > > typedef struct outfileset { > > char *filename; > > u_long loadstart, > > loadend, > > carrstart; > > struct outfileset *nextfile; > > } OUTFLSET > > > It tells me that it has a parse error before > u_long. > > Impossible to diagnose, too --- you don't show > enough context, nor the > exact error message from your compiler. Most > importantly, there is no > definition of u_long in sight, so it's impossible > for anybody but you > to check what might be wrong with it. > > > -- > Hans-Bernhard Broeker > (broeker AT physik DOT rwth-aachen DOT de) > Even if all the snow were burnt, ashes would remain. These are the errors I get from BISON: asml2901a.y:331: type clash (`' `label') on default action This is line 330-336 from asml2901a.y: iunit : label | instr | NOP { instrcounter++; } ; In my other files I get similar things: asml2901b.y:402: type clash (`' `label') on default action asml2901b.y:403: type clash (`' `label') on default action asml2901b.y:404: type clash (`' `address') on default action asml2901b.y:405: type clash (`' `label') on default action link2901a.y:67: type clash (`' `labaddress') on default action link2901a.y:101: type clash (`' `label') on default action link2901a.y:102: type clash (`' `label') on default action link2901a.y:103: type clash (`' `label') on default action link2901a.y:104: type clash (`' `label') on default action link2901a.y:105: type clash (`' `constant') on default action This is a part of the errorlist from GCC equalize.y:77: parse error before "u_long" equalize.y:77: warning: no semicolon at end of struct or union equalize.y:81: parse error before '}' token equalize.y:81: warning: data definition has no type or storage class equalize.y:87: parse error before "u_long" equalize.y:87: warning: no semicolon at end of struct or union equalize.y:88: warning: data definition has no type or storage class equalize.y:91: parse error before '}' token equalize.y:91: warning: data definition has no type or storage class This is a part of the code from where the errors are coming: typedef unsigned long u_long; /* unsigned long type definition */ typedef struct outfileset { char *filename; /* output loadfile name */ u_long loadstart, /* loadfile start address */ loadend, /* loadfile end address */ carrstart; /* carrier start address */ struct outfileset *nextfile; /* next output loadfile */ } OUTFLSET; /* outfile set data definition */ typedef struct carrierset { int numofcarr; /* number of carriers */ short logcdatsz, /* logical data size */ physdatsz; /* physical data size */ u_long physadrsz; /* physical address size */ OUTFLSET outfile; /* set of output loadfiles */ boolean optional; /* optional records in use */ struct carrierset *nextset; /* next set of carriers */ } CARRSET; /* carrier set data definition */ Roland __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com