From: SourceForge.net <no...@so...> - 2003-08-22 05:00:28
|
Bugs item #791926, was opened at 2003-08-20 07:07 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=791926&group_id=4664 Category: C lexer/parser Group: None Status: Closed Resolution: Duplicate Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Hans-Bernhard Broeker (broeker) Summary: Bison terminates with error while compiling cscope Initial Comment: Hello I'm trying to install cscope under cygwin on Windows 2000. After I run configure, I run make. Make exits with the following errors. make all-recursive make[1]: Entering directory `/cygdrive/c/cscope-15.3' Making all in doc make[2]: Entering directory `/cygdrive/c/cscope- 15.3/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/cygdrive/c/cscope- 15.3/doc' Making all in src make[2]: Entering directory `/cygdrive/c/cscope- 15.3/src' bison -y egrep.y && mv y.tab.c egrep.c egrep.y:116.17: syntax error, unexpected "=" egrep.y:121.17: syntax error, unexpected "=" egrep.y:123.39-40: invalid $ value egrep.y:125.39-40: invalid $ value egrep.y:130.17: syntax error, unexpected "=" egrep.y:134.17: syntax error, unexpected "=" egrep.y:144.17: syntax error, unexpected "=" make[2]: *** [egrep.c] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive-am] Error 2 make[2]: Leaving directory `/cygdrive/c/cscope- 15.3/src' make[1]: Leaving directory `/cygdrive/c/cscope-15.3' Can you tell me what is wrong? The gcc version I have is 3.2 and bison is 1.87b under cygwin Thanks S ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-08-20 10:49 Message: Logged In: NO Thanks. It worked. Much obliged ---------------------------------------------------------------------- Comment By: Hans-Bernhard Broeker (broeker) Date: 2003-08-20 09:43 Message: Logged In: YES user_id=27517 Open egrep.y in an editor and replace every "={" you find by just "{". ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-08-20 08:28 Message: Logged In: NO I'm afraid I'm a bit new to this. I thought CVS was a sort of repository for the sources. Can you tell me what I need to do exactly? My email is swa...@lu... so you can mail instructions directly. S ---------------------------------------------------------------------- Comment By: Hans-Bernhard Broeker (broeker) Date: 2003-08-20 08:04 Message: Logged In: YES user_id=27517 You need CVS _cscope_, not CVS bison. Available right on these web pages... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-08-20 07:51 Message: Logged In: NO Right I had tried 15.4 earlier and landed with the same error which is why I used 15.3. Where can I get CVS bison? S ---------------------------------------------------------------------- Comment By: Hans-Bernhard Broeker (broeker) Date: 2003-08-20 07:11 Message: Logged In: YES user_id=27517 1) You shouldn't be trying to compile version 15.3 any more. 15.4 has been released about a year ago! 2) Unfortunately, 15.4 is still not quite new enough. The problem you found has been reported several times, and is caused by modern bison rejecting very ancient deprecated syntax in cscope's src/egrep.y source files. Get the CVS version and all should be fine. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=104664&aid=791926&group_id=4664 |