Re: [Gems-users] ruby problems


Date: Tue, 29 Jan 2008 08:36:38 -0600
From: Dan Gibson <degibson@xxxxxxxx>
Subject: Re: [Gems-users] ruby problems
Which versions of yacc and bison specifically did you run it manually on? And what was the specific error?

Were there any 'file not found' errors from the snipped errors below, relating to #include directives?

Regards,
Dan

Allan Noriel Estrella wrote:
I ran yacc and bison on parser.y and it said:
conflicts: 56 shift/reduce


On 28/01/2008, Dan Gibson <degibson@xxxxxxxx> wrote:
Usually those errors clear up from using bison 2.0. Try running yacc/bison manually on parser.y.


Allan Noriel Estrella wrote:
Ubuntu has 1.2 in its repository, but I also tried using bison 2.0

On 27/01/2008, Dan Gibson <degibson@xxxxxxxx> wrote:
What version of bison are you using?

Allan Noriel Estrella wrote:
When I run  "make PROTOCOL=MOSI_SMP_bcast DESTINATION=MOSI_SMP_bcast" from the QuickStart Guide after setting up Simics 3.0.30 and GEMS 2.0 on my Ubuntu 7.10 Intel Pentium Machine, I got these error messages


snipped-----------

fore '&' token
In file included from ast/ASTs.h:82,
                 from parser/parser.y:65:
ast/ObjDeclAST.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ObjDeclAST'
ast/ObjDeclAST.h:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
ast/ObjDeclAST.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from ast/ASTs.h:83,
                 from parser/parser.y:65:
ast/FuncDeclAST.h:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'FuncDeclAST'
ast/FuncDeclAST.h:103: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
ast/FuncDeclAST.h:109: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from ast/ASTs.h:86,
                 from parser/parser.y:65:
ast/TypeFieldMethodAST.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TypeFieldMethodAST'
ast/TypeFieldMethodAST.h:100: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
ast/TypeFieldMethodAST.h:106: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from ast/ASTs.h:87,
                 from parser/parser.y:65:
ast/TypeFieldMemberAST.h:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TypeFieldMemberAST'
ast/TypeFieldMemberAST.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
ast/TypeFieldMemberAST.h:110: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from ast/ASTs.h:88,
                 from parser/parser.y:65:
ast/TypeFieldEnumAST.h:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'TypeFieldEnumAST'
ast/TypeFieldEnumAST.h:99: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
ast/TypeFieldEnumAST.h:105: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from ast/ASTs.h:95,
                 from parser/parser.y:65:
ast/EnumExprAST.h:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'EnumExprAST'
ast/EnumExprAST.h:98: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
ast/EnumExprAST.h:104: error: expected '=', ',', ';', 'asm' or '__attribute__' before '&' token
In file included from ast/ASTs.h:96,

snipped-----------------

parser/parser.y:345: error: 'YYSTYPE' has no member named 'expr_ptr'
parser/parser.y:345: error: expected ';' before 'LiteralExprAST'
parser/parser.y:346: error: 'YYSTYPE' has no member named 'expr_ptr'
parser/parser.y:346: error: expected ';' before 'LiteralExprAST'
parser/parser.y:347: error: 'YYSTYPE' has no member named 'expr_ptr'
parser/parser.y:347: error: expected ';' before 'LiteralExprAST'
parser/parser.y:350: error: 'YYSTYPE' has no member named 'expr_ptr'
parser/parser.y:350: error: expected ';' before 'EnumExprAST'
parser/parser.y:353: error: 'YYSTYPE' has no member named 'var_expr_ptr'
parser/parser.y:353: error: expected ';' before 'VarExprAST'
parser/parser.y:356: error: 'YYSTYPE' has no member named 'str_ptr'
parser/parser.y:356: error: 'YYSTYPE' has no member named 'str_ptr'
generated/parser.c:2410: warning: implicit declaration of function 'yyerror'
parser/parser.y: At top level:
parser/parser.y:363: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
parser/parser.y:379: error: expected identifier or '(' before string constant
make[2]: *** [x86-linux/obj/parser.o] Error 1
make[2]: Leaving directory `/home/allan/gems/gems-2.0/slicc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/allan/gems/gems-2.0/slicc'
make: *** [all] Error 2


_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

-- 
http://www.cs.wisc.edu/~gibson [esc]:wq!
    

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.




_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

-- 
http://www.cs.wisc.edu/~gibson [esc]:wq!
    

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.




_______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search.

-- 
http://www.cs.wisc.edu/~gibson [esc]:wq!
[← Prev in Thread] Current Thread [Next in Thread→]