From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Another cross-compiler problem! Date: 12 Oct 2001 14:02:58 GMT Organization: Aachen University of Technology (RWTH) Lines: 42 Message-ID: <9q6t6i$o91$1@nets3.rz.RWTH-Aachen.DE> References: <20011012130500 DOT 56153 DOT qmail AT web9105 DOT mail DOT yahoo DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1002895378 24865 137.226.32.75 (12 Oct 2001 14:02:58 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 12 Oct 2001 14:02:58 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com [A side note: could you please avoid dumbly copying the whole answered posting verbatim if it's not strictly necessary? Just quote those parts you actually refer to.] ROLAND wrote: [...] > 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 This means that the types assigned to the two tokens, 'iunit' and 'label' are incompatible. According to an old post on comp.compilers, it's a bug in Yacc that it didn't detect this error in your .y file. To avoid that, you should supply an action for this rule, so Bison doesn't have to insert a "default action" for you: iunit: label {} It took not much more than a Google lookup to find this information --- please try to do such quick searches yourself, next time, before turning here with your questions. > This is a part of the errorlist from GCC > equalize.y:77: parse error before "u_long" See how it says 'before'? Well --- then *look* at your equalize.y file, at and before line 77. You only posted line 77 and following, AFAICS. That's useless for remote-debugging. It may be something like a #define overriding 'unsigned' or 'long' that gets in the way, so be sure to check preprocessed sources, too. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.