Le 6 févr. 2014 à 22:37, Christian Schoenebeck a écrit :

> On Thursday 06 February 2014 23:23:29 raf wrote:
>> after updating the svn repos (libgig-svn just in case and
>> linuxsampler-svn), it fails compiling on lscp.y any idea ? strangely i
>> found the very same function in lscpparser.cpp
>> 
> [snip]
>> lscpparser.cpp  -fPIC -DPIC -o .libs/lscpparser.o lscp.y: In function
>> 'bool _isRuleTerminalSymbol(int)':
>> lscp.y:1319:18: error: 'yyprhs' was not declared in this scope
>>     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
>>                  ^
>> lscp.y:1319:32: error: 'yyrhs' was not declared in this scope
>>     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
>>                                ^
>> Makefile:427: recipe for target 'lscpparser.lo' failed
>> make[3]: *** [lscpparser.lo] Error 1
> 
> Maybe a Bison version issue. Which Bison version are you using?
> 
> The C arrays yyprhs[] and yyrhs[] are automatically generated by Bison 
> according to the current grammar definition in src/network/lscp.y. However 
> there is something special about them: those two arrays are not required for 
> Bison's basic parser work, they are rather intended to be used for debugging 
> purposes, human readable syntax errors, custom parser code and stuff like 
> that. That's why those two arrays are embedded into C preprocessor macros in 
> the auto generated lscpparser.cpp file by Bison. In my Bison version I just 
> had to add
> 
>       #define YYDEBUG 1
> 
> to make those arrays available (I added this define in lscpparser.h). Does 
> your Bison version need another macro maybe?

i don't know anything about bison... i wouldn't be of any help to track down 
the problem.

my version was 3.0.1, I updated to 
[seijitsu@astrux linuxsampler-svn]$ bison -V
bison (GNU Bison) 3.0.2
Written by Robert Corbett and Richard Stallman.

but still got the same error.

looking more into the configure output I can see this message with some 
warnings related to bison :

Searching for a parser generator...OK (/usr/bin/bison -y)
Generating LSCP parser...
lscp.y: warning: 1801 shift/reduce conflicts [-Wconflicts-sr]
lscp.y: warning: 1045 reduce/reduce conflicts [-Wconflicts-rr]
lscp.y: warning: 1801 shift/reduce conflicts [-Wconflicts-sr]
lscp.y: warning: 1045 reduce/reduce conflicts [-Wconflicts-rr]
Done

then later on, not blocking :
checking for ARTS artsc - version >= 0.9.5... no
*** The artsc-config script installed by ARTS could not be found
*** If ARTS was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the ARTS_CONFIG environment variable to the
*** full path to artsc-config.


what bison version do you have ? can a 64bits system make a difference ?

Raphaël
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
_______________________________________________
Linuxsampler-devel mailing list
Linuxsampler-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel

Reply via email to