A forum for Spin users
You are not logged in.
Pages: 1
I am installing spin in ubuntu 10.04. while running "make" command following error display. Please any one fix this problem. I am pasting the error displayed to me.
ravi@ravi-laptop:/usr/local/Spin/Src6.1.0$ make
yacc -v -d spin.y
YYTABLESIZE: 5012
gcc -c y?tab.c
btyaccpa.ske:111: error: expected specifier-qualifier-list before ‘yyparsestate’
btyaccpa.ske:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
btyaccpa.ske:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
btyaccpa.ske:180: error: expected ‘)’ before ‘*’ token
btyaccpa.ske:181: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
btyaccpa.ske:182: error: expected ‘)’ before ‘*’ token
spin.y: In function ‘recursive’:
spin.y:862: error: ‘NEXT’ undeclared (first use in this function)
spin.y:862: error: (Each undeclared identifier is reported only once
spin.y:862: error: for each function it appears in.)
spin.y:865: error: ‘ALWAYS’ undeclared (first use in this function)
spin.y:868: error: ‘EVENTUALLY’ undeclared (first use in this function)
spin.y:874: error: ‘UNTIL’ undeclared (first use in this function)
spin.y:877: error: ‘WEAK_UNTIL’ undeclared (first use in this function)
spin.y:880: error: ‘RELEASE’ undeclared (first use in this function)
spin.y:883: error: ‘OR’ undeclared (first use in this function)
spin.y:886: error: ‘AND’ undeclared (first use in this function)
spin.y:889: error: ‘IMPLIES’ undeclared (first use in this function)
spin.y:892: error: ‘EQUIV’ undeclared (first use in this function)
btyaccpa.ske: In function ‘yyparse’:
btyaccpa.ske:193: error: ‘yyparsestate’ undeclared (first use in this function)
btyaccpa.ske:193: error: ‘yyerrctx’ undeclared (first use in this function)
btyaccpa.ske:206: error: ‘yyps’ undeclared (first use in this function)
btyaccpa.ske:257: error: ‘yypath’ undeclared (first use in this function)
btyaccpa.ske:265: error: ‘save’ undeclared (first use in this function)
btyaccpa.ske:309: error: ‘new’ undeclared (first use in this function)
btyaccpa.ske:309: error: expected ‘;’ before ‘Yshort’
btyaccpa.ske:310: error: expected ‘;’ before ‘Lexptr’
btyaccpa.ske:312: error: expected ‘;’ before ‘int’
btyaccpa.ske:479: error: ‘YYERRCODE’ undeclared (first use in this function)
spin.y:118: error: ‘PROCTYPE’ undeclared (first use in this function)
spin.y:153: error: ‘CONST’ undeclared (first use in this function)
spin.y:216: error: ‘NAME’ undeclared (first use in this function)
spin.y:298: error: ‘C_CODE’ undeclared (first use in this function)
spin.y:316: error: ‘C_EXPR’ undeclared (first use in this function)
spin.y:362: error: ‘MTYPE’ undeclared (first use in this function)
spin.y:382: error: ‘XU’ undeclared (first use in this function)
spin.y:386: error: ‘TYPE’ undeclared (first use in this function)
spin.y:512: error: ‘IF’ undeclared (first use in this function)
spin.y:517: error: ‘DO’ undeclared (first use in this function)
spin.y:521: error: ‘GOTO’ undeclared (first use in this function)
spin.y:526: error: ‘LABEL’ undeclared (first use in this function)
spin.y:542: error: ‘ASGN’ undeclared (first use in this function)
spin.y:564: error: ‘PRINT’ undeclared (first use in this function)
spin.y:565: error: ‘PRINTM’ undeclared (first use in this function)
spin.y:567: error: ‘ASSERT’ undeclared (first use in this function)
spin.y:595: error: ‘ELSE’ undeclared (first use in this function)
spin.y:598: error: ‘ATOMIC’ undeclared (first use in this function)
spin.y:605: error: ‘D_STEP’ undeclared (first use in this function)
spin.y:611: error: ‘NON_ATOMIC’ undeclared (first use in this function)
spin.y:649: error: ‘GT’ undeclared (first use in this function)
spin.y:650: error: ‘LT’ undeclared (first use in this function)
spin.y:651: error: ‘GE’ undeclared (first use in this function)
spin.y:652: error: ‘LE’ undeclared (first use in this function)
spin.y:653: error: ‘EQ’ undeclared (first use in this function)
spin.y:654: error: ‘NE’ undeclared (first use in this function)
spin.y:655: error: ‘AND’ undeclared (first use in this function)
spin.y:656: error: ‘OR’ undeclared (first use in this function)
spin.y:657: error: ‘LSHIFT’ undeclared (first use in this function)
spin.y:658: error: ‘RSHIFT’ undeclared (first use in this function)
spin.y:660: error: ‘UMIN’ undeclared (first use in this function)
spin.y:675: error: ‘RUN’ undeclared (first use in this function)
spin.y:679: error: ‘LEN’ undeclared (first use in this function)
spin.y:680: error: ‘ENABLED’ undeclared (first use in this function)
spin.y:698: error: ‘TIMEOUT’ undeclared (first use in this function)
spin.y:699: error: ‘NONPROGRESS’ undeclared (first use in this function)
spin.y:702: error: ‘PC_VAL’ undeclared (first use in this function)
spin.y:722: error: ‘UNTIL’ undeclared (first use in this function)
spin.y:723: error: ‘RELEASE’ undeclared (first use in this function)
spin.y:724: error: ‘ALWAYS’ undeclared (first use in this function)
spin.y:731: error: ‘EQUIV’ undeclared (first use in this function)
spin.y:732: error: ‘NEXT’ undeclared (first use in this function)
spin.y:734: error: ‘EVENTUALLY’ undeclared (first use in this function)
spin.y:748: error: ‘FULL’ undeclared (first use in this function)
spin.y:749: error: ‘NFULL’ undeclared (first use in this function)
spin.y:750: error: ‘EMPTY’ undeclared (first use in this function)
spin.y:751: error: ‘NEMPTY’ undeclared (first use in this function)
spin.y:813: error: ‘EVAL’ undeclared (first use in this function)
btyaccpa.ske: In function ‘YYLex1’:
btyaccpa.ske:739: error: ‘yyps’ undeclared (first use in this function)
btyaccpa.ske: In function ‘yyexpand’:
btyaccpa.ske:762: error: ‘new’ undeclared (first use in this function)
btyaccpa.ske:762: error: expected ‘;’ before ‘Lexptr’
btyaccpa.ske:763: error: expected ‘;’ before ‘int’
btyaccpa.ske:764: error: expected ‘;’ before ‘Yshort’
btyaccpa.ske:768: error: ‘delete’ undeclared (first use in this function)
btyaccpa.ske:768: error: expected expression before ‘]’ token
btyaccpa.ske:769: error: expected expression before ‘]’ token
btyaccpa.ske:770: error: expected expression before ‘]’ token
btyaccpa.ske: At top level:
btyaccpa.ske:794: error: expected ‘)’ before ‘*’ token
btyaccpa.ske:814: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
btyaccpa.ske:825: error: expected ‘)’ before ‘*’ token
make: *** [spin.o] Error 1
Offline
you may want to install a different version of yacc
i think the one that comes with ubuntu by default isn't compatible with earlier versions
-- at least that's what it looks like
all errors are caused by yacc not properly parsing the spin.y file
Offline
Pages: 1