Latest linuxsampler svn failed to build (debian)

You're new to the LinuxSampler world? You don't know where to start and nothing works? Here's the place to ask for help.
Post Reply
rooz
Newbie
Posts: 23
Joined: Sun Aug 24, 2008 6:42 pm

Latest linuxsampler svn failed to build (debian)

Post by rooz » Sun May 17, 2020 9:24 pm

Code: Select all

                 from lscp.y:34:
../drivers/midi/MidiInstrumentMapper.h:146:120: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  146 |             static void AddOrReplaceEntry(int Map, midi_prog_index_t Index, entry_t Entry, bool bInBackground = false) throw (Exception);
      |                                                                                                                        ^~~~~
../drivers/midi/MidiInstrumentMapper.h:179:73: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  179 |             static std::map<midi_prog_index_t,entry_t> Entries(int Map) throw (Exception);
      |                                                                         ^~~~~
../drivers/midi/MidiInstrumentMapper.h:195:52: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  195 |             static int AddMap(String MapName = "") throw (Exception) ;
      |                                                    ^~~~~
../drivers/midi/MidiInstrumentMapper.h:203:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  203 |             static String MapName(int Map) throw (Exception);
      |                                            ^~~~~
../drivers/midi/MidiInstrumentMapper.h:213:60: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  213 |             static void RenameMap(int Map, String NewName) throw (Exception);
      |                                                            ^~~~~
lscp.y: In function ‘void walkAndFillExpectedSymbols(std::vector<short int>&, std::map<std::__cxx11::basic_string<char>, BisonSymbolInfo>&, String&, YYStackHistory&, int)’:
lscp.y:1605:22: error: ‘YYTERROR’ was not declared in this scope; did you mean ‘YYERROR’?
 1605 |         if (token <= YYTERROR) continue;
      |                      ^~~~~~~~
      |                      YYERROR
make[4]: *** [Makefile:459: lscpparser.lo] Error 1
make[4]: Leaving directory '/home/debian/develop/linuxsampler/linuxsampler/src/network'
make[3]: *** [Makefile:699: all-recursive] Error 1
make[3]: Leaving directory '/home/debian/develop/linuxsampler/linuxsampler/src'
make[2]: *** [Makefile:511: all-recursive] Error 1
make[2]: Leaving directory '/home/debian/develop/linuxsampler/linuxsampler'
make[1]: *** [Makefile:416: all] Error 2
make[1]: Leaving directory '/home/debian/develop/linuxsampler/linuxsampler'
make: *** [debian/rules:37: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Debian testing

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Latest linuxsampler svn failed to build (debian)

Post by cuse » Fri Jun 05, 2020 3:09 pm

Make sure both Bison and Flex are installed, then recompile.

rooz
Newbie
Posts: 23
Joined: Sun Aug 24, 2008 6:42 pm

Re: Latest linuxsampler svn failed to build (debian)

Post by rooz » Sun Jun 07, 2020 9:22 am

linuxsampler still fails:

Code: Select all


./drivers/midi/MidiInstrumentMapper.h:213:60: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
  213 |             static void RenameMap(int Map, String NewName) throw (Exception);
      |                                                            ^~~~~
lscp.y: In function ‘void walkAndFillExpectedSymbols(std::vector<short int>&, std::map<std::__cxx11::basic_string<char>, BisonSymbolInfo>&, String&, YYStackHistory&, int)’:
lscp.y:1605:22: error: ‘YYTERROR’ was not declared in this scope; did you mean ‘YYERROR’?
 1605 |         if (token <= YYTERROR) continue;
      |                      ^~~~~~~~
      |                      YYERROR
make[4]: *** [Makefile:459: lscpparser.lo] Error 1
make[4]: Leaving directory '/home/debian/myhome/develop/linuxsampler/linuxsampler/src/network'
make[3]: *** [Makefile:699: all-recursive] Error 1
make[3]: Leaving directory '/home/debian/myhome/develop/linuxsampler/linuxsampler/src'
make[2]: *** [Makefile:511: all-recursive] Error 1
make[2]: Leaving directory '/home/debian/myhome/develop/linuxsampler/linuxsampler'
make[1]: *** [Makefile:416: all] Error 2
make[1]: Leaving directory '/home/debian/myhome/develop/linuxsampler/linuxsampler'
make: *** [debian/rules:37: build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


i flex - fast lexical analyzer generator

i bison - YACC-compatible parser generator
p bison++ - Generate a parser in c or c++ from BNF notation
p bison-doc - Documentation for the Bison parser generator
i bisonc++ - Bison-style parser generator for C++
p bisonc++-doc - Bison-style parser generator for C++ documentation
i libbison-dev - YACC-compatible parser generator - development library

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Latest linuxsampler svn failed to build (debian)

Post by cuse » Sun Jun 07, 2020 4:59 pm

:/ From https://fossies.org/linux/bison/ChangeLog :
2020-04-01 Akim Demaille <akim.demaille@gmail.com>

glr.c: use yysymbol_type_t, YYSYMBOL_YYEOF etc.
Apply the same changes as in yacc.c. Now yySymbol and yysymbol_type_t
are aliases. We will remove the former later, to avoid cluttering
this commit.

* data/skeletons/glr.c: Use b4_declare_symbol_enum.
Use YYSYMBOL_YYEOF etc. where appropriate.
(YYUNDEFTOK, YYTERROR): Remove.
(YYTRANSLATE, yySymbol, yyexpected_tokens, yysyntax_error_arguments):
Adjust.
(yy_accessing_symbol): New.
Use it where appropriate.
Downgrade your Bison version for now, as there is no quick fix for this. You may also just compile and run an older version of Bison from a temporary directory for LS compilation without installing that older Bison version.

rooz
Newbie
Posts: 23
Joined: Sun Aug 24, 2008 6:42 pm

Re: Latest linuxsampler svn failed to build (debian)

Post by rooz » Sun Jun 07, 2020 6:33 pm

For now I use the released version of LS. Not the latest svn.
Thanks

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Latest linuxsampler svn failed to build (debian)

Post by cuse » Sun Jun 07, 2020 8:00 pm

I guess you mean a precompiled LS binary. The compilation error has nothing to do with the precise LS version, since YYTERROR is used in the LS source code for more than 6 years.

User avatar
cuse
Developer
Posts: 366
Joined: Wed Jan 23, 2008 10:07 pm
Location: Germany

Re: Latest linuxsampler svn failed to build (debian)

Post by cuse » Mon Jun 08, 2020 1:00 pm

Compilation error should be fixed in latest SVN:
https://svn.linuxsampler.org/cgi-bin/vi ... ision=3787

rooz
Newbie
Posts: 23
Joined: Sun Aug 24, 2008 6:42 pm

Re: Latest linuxsampler svn failed to build (debian)

Post by rooz » Tue Jun 09, 2020 9:32 am

cuse wrote:
Mon Jun 08, 2020 1:00 pm
Compilation error should be fixed in latest SVN:
https://svn.linuxsampler.org/cgi-bin/vi ... ision=3787
Works, thanks!

Post Reply