Page 1 of 1

Build error lscp.y:1380:18: error: 'yyprhs' was not declared

Posted: Mon Dec 12, 2016 2:14 am
by ddwmusic
I'm having problems building linuxsampler, Ubuntu 14.04.

Current main problem: building linuxsampler itself, I get:

Code: Select all

make[3]: Entering directory `/home/dlm/share/linuxsampler/src/network'
depbase=`echo lscpparser.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
	/bin/bash ../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../..   -I/usr/local/include/libgig     -Wreturn-type -ffast-math  -g -O2 -pthread -MT lscpparser.lo -MD -MP -MF $depbase.Tpo -c -o lscpparser.lo lscpparser.cpp &&\
	mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../.. -I/usr/local/include/libgig -Wreturn-type -ffast-math -g -O2 -pthread -MT lscpparser.lo -MD -MP -MF .deps/lscpparser.Tpo -c lscpparser.cpp  -fPIC -DPIC -o .libs/lscpparser.o
lscp.y: In function 'bool _isRuleTerminalSymbol(int)':
lscp.y:1380:18: error: 'yyprhs' was not declared in this scope
     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
                  ^
lscp.y:1380:32: error: 'yyrhs' was not declared in this scope
     for (int i = yyprhs[rule]; yyrhs[i] != -1; ++i)
                                ^
How I got to this point:

I downloaded libgig.tar.bz2, compiled, no problem.

I tried to download the liblscp source package link from the download page, but the link is broken. It might simply be a typo (should be 0.5.6?).

http://download.linuxsampler.org/packag ... .7.tar.bz2

So then I did:

svn co https://svn.linuxsampler.org/svn/liblscp/trunk liblscp
cd liblscp
./configure

And... there is no "configure" in the SVN repository. So, for this component, we're at two strikes.

So then I found, the Ubuntu package repositories have liblscp 0.5.6. I installed that through synaptic, and continued to build linuxsampler, but got the error above.

I need to get this working pretty quickly. Thanks in advance for assistance.

James

Re: Build error lscp.y:1380:18: error: 'yyprhs' was not decl

Posted: Mon Dec 12, 2016 5:41 am
by ddwmusic
I did eventually get past this. I needed to copy the path, remove "liblscp-0.5.7.tar.bz2" from it to see if I could access the packages/ directory -- which I could, and there I found that liblscp is actually .tar.gz -- so, somebody needs to fix the Downloads page.

Using the http://download.linuxsampler.org/packag ... 5.8.tar.gz source package, I could build successfully, and then linuxsampler built fine as well.

Now I'm having another problem, which should go into another thread (but I think it won't let me post right away). A lot of free sample libraries use .wav, but I get messages in the console saying that it couldn't load the samples because they are not RIFF files. ?? That's... inconvenient.

In any case, this thread may be closed.

James

Re: Build error lscp.y:1380:18: error: 'yyprhs' was not decl

Posted: Mon Dec 12, 2016 4:12 pm
by cuse
ddwmusic wrote:I did eventually get past this. I needed to copy the path, remove "liblscp-0.5.7.tar.bz2" from it to see if I could access the packages/ directory -- which I could, and there I found that liblscp is actually .tar.gz -- so, somebody needs to fix the Downloads page.
Fixed. Thanks!
ddwmusic wrote: Now I'm having another problem, which should go into another thread (but I think it won't let me post right away). A lot of free sample libraries use .wav, but I get messages in the console saying that it couldn't load the samples because they are not RIFF files. ?? That's... inconvenient.

In any case, this thread may be closed.

James
Which format? SFZ? SF2? Giga?

Re: Build error lscp.y:1380:18: error: 'yyprhs' was not declared

Posted: Sun Nov 21, 2021 9:59 pm
by delvento
I don't think the problem is the version of the package(s) as this thread leads one to believe. In fact I reproduced the very same problem with the packages that were reportedly working for the OP in this thread.

As I described in viewtopic.php?t=19966 the problem is that LinuxSampler needs that yyprhs array, which is defined in bison (not in the other parts of the LinuxSampler libraries such as lscp).

I think for the OP the issue got "accidentally" fixed by a bison install (perhaps for other reasons) in between the attempts from one version to the other, and therefore it appeared that the switch of version fixed the problem.