Re: Vis installation problems on Solaris

From: Aditya Kesiraju (Aditya.Kesiraju_at_Sun.COM)
Date: Tue Jun 06 2006 - 09:38:00 MDT


Hi Zhaoyang,

Thanks for that tip. I also had to change the 'yytext' to 'CtlspYytext'
in ./src/ctlsp/ctlsp.y and to 'IoYytext' in ./src/io/io.y

After that I had no problems compiling and installing vis.

While installing vl2mv, I got an error saying that yylineno was defined
twice but I got around this by changing yylineno to Yylineno (I don't
remember which file it was exactly that I changed but I think its verilog.l)

Best regards,
Aditya

Zhaoyang wrote On 06/05/06 20:01,:
> Hello,
>
> I think I may find the reason. The interface between Yacc and Lex is
> often "yytext" as default, to transfer the string readed from the input
> file. But in the makefile it's redefined as "CtlpYytext" using
> "-pCtlpYy" argument in bison and "-PCtlpYy" in flex. But in the ctlp.y,
> it still uses "yytext".
>
> So my solution is modifying the "yytext" into "CtlpYytext". I'm not quit
> sure the prefix is the same in the different platform. So you'd better
> check in the makefile to see the prefix used. Just see the "-p" argument
> in bison and "-P" argument in flex.
>
> The solution seems a little silly. I think this is a bug in the code.
> Whether it can be configured automatically, it's my question.
>

-- 
Aditya Kesiraju
Sun Microsystems, CA
x48185
Tel: 1-408-774-8185
E-mail: Aditya.Kesiraju_at_Sun.COM


This archive was generated by hypermail 2.1.7 : Tue Jun 06 2006 - 10:22:45 MDT