Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 556204 - media-sound/linuxsampler-2.0.0 lscp.y:1380:18: error: 'yyprhs' was not declared in this scope
Summary: media-sound/linuxsampler-2.0.0 lscp.y:1380:18: error: 'yyprhs' was not declar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-29 10:54 UTC by Kornel
Modified: 2016-01-01 20:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,23.94 KB, text/plain)
2015-07-29 10:56 UTC, Kornel
Details
media-sound/linuxsampler-2.0.0::gentoo failed (compile phase) build log (media-sound:linuxsampler-2.0.0:20150802-184937.log,23.37 KB, text/x-log)
2015-08-02 19:03 UTC, waynedpj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kornel 2015-07-29 10:54:53 UTC
MAKEOPTS="-j1" emerge -av1 linuxsampler
fails with errors lscp.y file (see build log)

Reproducible: Always

Steps to Reproduce:
1. MAKEOPTS="-j1" emerge -av1 =media-sound/linuxsampler-2.0.0

Actual Results:  
installation fails

Expected Results:  
installation succedes

~ # emerge -pqv '=media-sound/linuxsampler-2.0.0::gentoo'
[ebuild     U ] media-sound/linuxsampler-2.0.0 [1.0.0-r1] USE="jack sqlite -doc -static-libs"

~ # emerge --info '=media-sound/linuxsampler-2.0.0::gentoo'
Portage 2.2.20 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop/kde/systemd, gcc-4.8.4, glibc-2.20-r2, 4.1.3-gentookm x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.3-gentookm-x86_64-Intel-R-_Core-TM-_i7-4500U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:    16311184 total,   8594784 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 29 Jul 2015 09:15:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.uk.gentoo.org/gentoo-portage
    priority: -1000

luman
    location: /var/lib/layman/luman
    masters: gentoo
    priority: 0

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 1

bumblebee
    location: /var/lib/layman/bumblebee
    masters: gentoo
    priority: 2

trash
    location: /var/lib/layman/trash
    masters: gentoo
    priority: 3

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 4

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA NVIDIA-CUDA google-chrome skype-4.0.0.7-copyright Google-TOS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="${CONFIG_PROTECT} /etc /etc/idea/conf /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.gg3.net/ http://ftp.daum.net/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://tux.rainside.sk/gentoo/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
USE="3ds R X a2ps a52 aac aacplus aacs aalib accessibility acl acpi addressbook aec aes aesicm aff afp aften aim aio airdrop-ng airgraph-ng akonadi alert alevt all_sfx alsa amavis amd64 amr amrenc amrnb android animgif annotations ap apng applet appletalk archive armadillo asf asm aspell asyncns attica audacious audio audio-sdl audioeffects audiofile audioscrobbler aura auth-dns autofs autoipd automount autoreplace autotools autotrace avahi avatars avcodec avformat avg avs avx avx2 awt bash-completion bazaar bearer berkdb binary-drivers bittorrent blas blender bluetooth bluray boost branding bs2b btrfs bzip2 cairo calendar canusb caps captcha cb cdda cddb cdinstall cdio cdr cdrom celt cg charmap clang cli cmake collada colord colordiff colorio colorpicker compress compressed-lumas connection-sharing connectivity conntrack contactnotes contacts context contrast contrib corefonts cover cpufreq cpufreq_bench cpuload cracklib crypt cryptsetup cscope css cuda cue cups curl curlwrappers cursors cvs cxx cycles dane darcs data dbi dbus declarative demosaic designer designer-plugin desktop-notify desktopglobe desktopswitch detex developer devhelp devil dga dhcp-tools dia diff digital dirac djvu dnotify dnstap docbook doctool dos dot dpi dri dts dv dvb dvd dvdnav dvdr dvi dvi2tty dvipdfm ebook eclipse egl eglfs eigen elbeem elfutils embedded emboss emovix enchant encode epspdf epub equalizer evdev exif expat expoblending extensible-exceptions-in-base extensions extra extra-algorithms extra-ciphers extras f2fs faac faad facebook facedetect fakevim fam farstream fast-bignum fast-libs fastcgi fasteap fasttrack fasttree fat fbcon feedback ffmpeg fftw firefox firefox-bookmarks firewalld fits flac flash flickr fltk fluidsynth font-styles fontconfig fontforge fonts foomatic foomaticdb fortran fpx frei0r fuse g726 g729 gadu gallery games gbm gcdmaster gcj gcrypt gd gda gdbm geo geoip geoloc geolocation geos gflags gfxnvidia ggz gif gimp git github glamor gles gles2 glew glfw gltf glut gmath gmcp gme gmp gnome-keyring gnome-online-accounts gnome-shell gnumeric gnuplot gnutls go gocr goffice gold google googledrive gost gpac gpg gphoto2 gpl gpm gps gpsbabel gpssync gptfdisk gpu gpx-extensions grammar graphics graphicsmagick graphite graphviz groupwise gsf gsl gsm gstreamer gtalk gtk gtk3 gtkhotkey gtkhtml gtkstyle gtp gts gucharmap gui gzip h224 h281 h323 hbci hdf5 hdri hidpi highlight hipe hscolour html http humanities hunspell hyphenation i18n ibus iconv icq icu id3tag ide idn ilbc ilbc-webrtc image image-cache imagemagick imaging imap imlib importfilter infinality inkjar inotify int-quality int64 ios ipfilter iplayer ipod iptc ipv6 irrlicht iso ivr jabber jabbersearch jack jadetex java javascript jbig jce jingle jit jpeg jpeg2k json kate kdcraw kde kdecards kdenlive kdepim kdm kexiv2 keyboard kipi konqueror kontact kpathsea kpoll kross ladspa lame lapack laptop lash lasi lastfm latex latexmk lcms ldap ldns lensfun libass libburn libcaca libextractor libffi libgda libgig libguess libkms libmpv libnotify libproxy libsamplerate libsecret libsoxr libtar libtiger libvisual listen-queue live llvm llvm-shared-libs lm_sensors localstorage location lqr lto lua luatex lv2 lz4 lzma lzo mad madde map marble math mathml matplotlib matroska mdnsresponder-compat meanwhile mediaplayer mediawiki melt mercurial messaging metapost metis metric midi migrator mikmod mikrokopter mjpeg mktemp mms mms-agent mmx mmxext mng mobi mod modemmanager modplug modules mono monolithic-build mouse mozdom mp3 mp3rtp mp3tunes mp4 mpd mpeg mpi-threads mplayer mtp mudflap multilib multimedia musepack music nas ncap2 ncat ncurses ndiff netbeans network networking networkmanager networkmonitor new-clx new-login nis nls nmap nmap-update nntp nokia nping npm npp nptl nsplugin ntfs ntfsdecrypt nut nvidia oauth objc objc++ objc-gc ocaml ocamlopt ocr ocrad octave odbc ofa offensive office offscreen ofx ogg okteta okular omega omxil openal opencl openclipart openclipartcards openconnect opencv openexr opengl opengtl openimageio openmp openssl opensslcrypt openstreetmap openvg optimization opus orc organizer oscar osmesa otr ots p2p pam pango panorama pari parse-clocks passwdqc passwordsave pasteafter patented pch pci pcre pcre-jit pcre16 pcre32 pdf pdf-writer pdfannotextractor pdftk perl pgf pgo pgp phonon pipelight pkcs11 plasma player playlist plotutils plugins plymouth png policykit portmidi positioning postproc postscript povray ppds printsupport prison profiler projectm pronounce psd psf pstricks publishers publishsubscribe pulseaudio pvr pyqt4 python qalculate qimageblitz qml qos qrcode qrupdate qscintilla qt-dbus qt-faststart qt3support qt4 qt5 qthelp quicklaunch quicktime quotes quvi qwt r600-llvm-compiler rar raw rcs rdp readline realtime redeyes reiser4 reiserfs remote reports resize-optimization reviewboard rfc2307 rplay rss rtaudio rtc rtf rtmp rtsp samba sasl sbsms scanfolder scanner schroedinger schur science scipy screen screensaver script scripting scripts scripttools scsi sctp sdl sdl-image sdlgfx secure secure-messaging secure-updates security semantic-desktop sensord sensors serialport servicediscovery serviceframework session shapefile sharedclient shout showdesktop sift sigsegv silk sip sipe sipim skins skype smi smp sms sndfile sniffer snmp soap socks soundtouch sox spatialite speech speechd speex spell spice sqlite srt srtp sse sse2 sse2_4way sse3 sse4_1 sse4_2 ssh ssh-agent ssh-askpass ssl ssse3 staging startup-notification steam strong-optimization subtitles subversion supernodal svg swap-remote swig swipl switcher system-binutils system-boost system-cairo system-cxx-headers system-icu system-jpeg system-libCg system-libs system-libvpx system-libyaml system-mpmath system-mupdf system-qemu system-renpy system-sqlite systemd systeminfo systemlib systray sysv-utils szip t1lib taglib tbb tcl tcpd teamd telepathy tellico templates terminal tesseract testlib tex tex4ht texi2html texmacs tga themedesigner theora thesaurus thin-splines threads threadsafe thumbnail thumbnails thunderbird tiff tilepath timezone timidity tk tls toolame toolbar tools truetype tslib tta tts tty-helpers twolame type3 udev udis86 udisks umfpack unicode upnp upnp-av upower usb utilities utils uudeview uuencode uuid uvm uxa v4l v4l2 vaapi vamp vangog vc vcd vcdx vdpau vdr versit vf-dlopen video videoslideshow vim-pager vimeo virtfs virtualbox vlc vlm vnc vorbis vpx vxml wallpapers wav waveform wavelet wavpack wayland wayland-compositor weather web-services webcam webgl webkit webp webphoto webpresence webrtc-aec websockets webstart widevine widgets wifi wiimote windeco winpopup wireshark wireshark-plugins wma wmf word-perfect wps wxwidgets x11 x11extras x11vnc x264 x265 xa xanim xattr xbase xcap xcb xcomposite xetex xface xfig xforward xhtml xindy xine xinerama xml xmlpatterns xmlreader xmlrpc xmltv xmlwriter xmp xmpp xpm xps xrandr xrender xscreensaver xv xvid xvmc xwayland xz yahoo yaz yuv4mpeg zenmap zephyr zeroconf zip zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev keyboard mouse mutouch synaptics wacom elographics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-minimizer scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="pl pl_PL en en_GB en_US" NETBEANS_MODULES="apisupport java javafx profiler websvccommon cnd ergonomics mobility php webcommon extide" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nouveau i915 radeon modesetting i965 nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Kornel 2015-07-29 10:56:58 UTC
Created attachment 407878 [details]
build log
Comment 2 Kornel 2015-07-29 11:07:04 UTC
According to

http://blog.gmane.org/gmane.comp.audio.linuxsampler.devel/month=20140201

similar errors might be related to the bison version. I'm using sys-devel/bison-2.4.3.
Comment 3 waynedpj 2015-08-02 19:03:33 UTC
Created attachment 408156 [details]
media-sound/linuxsampler-2.0.0::gentoo failed (compile phase) build log

same error as OP when compiling in lscp.y


$ emerge --info '=media-sound/linuxsampler-2.0.0::gentoo'
Portage 2.2.20 (python 3.4.1-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.4, glibc-2.20-r2, 3.16.5-gentoo-gnu x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.5-gentoo-gnu-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8700_@_2.53GHz-with-gentoo-2.2
KiB Mem:     4012484 total,    442012 free
KiB Swap:    6289404 total,   5679336 free
Timestamp of repository gentoo: Sun, 02 Aug 2015 13:15:01 +0000
sh bash 4.3_p33-r2
ld ld di GNU (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.9 [enabled]
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/ccache:          3.1.9-r4::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo

hnaparst
    location: /var/lib/layman/hnaparst
    sync-type: laymansync
    sync-uri: https://github.com/hnaparst/overlay.git
    masters: gentoo
    priority: 20

enlightenment
    location: /var/lib/layman/enlightenment
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/enlightenment.git
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/proaudio
    sync-type: laymansync
    sync-uri: svn://svn.tuxfamily.org/svnroot/proaudio/proaudio/trunk/overlays/proaudio
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE CCPL-Sampling-Plus-1.0 X11 Mini-XML as-is CC-BY-NC-SA-3.0"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color=y --fail-clean=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache clean-logs config-protect-if-modified distlocks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.lug.udel.edu/pub/gentoo/ http://mirrors.rit.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.osuosl.org http://gentoo.mirrors.easynews.com/linux/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acoustid acpi afp aim alsa amd64 archive audio audiofile avahi bash-completion berkdb bluetooth btrfs bzip2 cairo caps cdda cddb cdparanoia cdr celt cli clutter consolekit cracklib crypt css cups cxx dbus deblob dirac directfb dri dssi dts dv dvd dvdr egl emacs emboss encode exif fam fbcon fdk fftw firefox flac fontconfig ftp gallium gdbm gif gimp glamor gles gles1 gles2 gmp gnutls gpg gphoto2 gpm gsm gstreamer gtk gtk3 hddtemp iconv icu idn ieee1394 imap imlib ipod iptc ipv6 jabber jack jackmidi jbig jpeg jpeg2k ladspa lame lcms libav libcanberra libnotify libsamplerate libsecret lm_sensors lock lv2 lzo mad matroska midi mime mmap mmx mmxext mng modemmanager modules mp3 mp4 mpeg mtp multilib musicbrainz ncurses networkmanager nls normalize nptl nsplugin offensive ogg opengl openmp openssl openvg opus osc oscar pam pango pch pcre pcsc-lite pdf playlist png policykit ppds pulseaudio quicktime raw readline rss samba scanner schroedinger session skey smartcard smp sndfile sound speex spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification suil svg taglib tcpd theora threads thunar tiff truetype udev udisks unicode upnp upnp-av upower usb v4l v4l2 vaapi vcd vdpau vhosts vnc vorbis vpx wav wavpack webm webp wifi wmf x264 xattr xcb xcomposite xdg xface xft xinerama xml xmp xpm xps xrandr xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 ssse3" CURL_SSL="nss" ELIBC="glibc" ENLIGHTENMENT_MODULES="backlight battery clock comp conf-applications conf-dialogs conf-display conf-edgebindings conf-interaction conf-intl conf-keybindings conf-menus conf-paths conf-performance conf-randr conf-shelves conf-theme conf-window-manipulation conf-window-remembers cpufreq dropshadow everything fileman fileman-opinfo gadman ibar ibox illume2 mixer msgbus notification pager quickaccess start syscon systray tasks temperature tiling winlist wizard xkbswitch shot contact music-control wl-screenshot wl-desktop-shell conf-wallpaper2 bluez4 access appmenu conf-comp teamwork" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64 qemu" INPUT_DEVICES="keyboard mouse synpatics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer wiki-publisher" LINGUAS="en en_US it fr es es_ES" LIRC_DEVICES="devinput" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5 php5-4" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="hp canon" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="battery brightness clock multiload-nandhp power trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 4 Ben de Groot (RETIRED) gentoo-dev 2015-08-03 04:00:16 UTC
(In reply to Kornel from comment #2)
> According to
> 
> http://blog.gmane.org/gmane.comp.audio.linuxsampler.devel/month=20140201
> 
> similar errors might be related to the bison version. I'm using
> sys-devel/bison-2.4.3.

Does the patch in that thread solve things for you?

I had no problem here, using bison-3.0.4-r1, but that thread suggests it may be system dependant...
Comment 5 Kornel 2015-08-03 11:26:08 UTC
(In reply to Ben de Groot from comment #4)
> (In reply to Kornel from comment #2)
> > According to
> > 
> > http://blog.gmane.org/gmane.comp.audio.linuxsampler.devel/month=20140201
> > 
> > similar errors might be related to the bison version. I'm using
> > sys-devel/bison-2.4.3.
> 
> Does the patch in that thread solve things for you?
> 
> I had no problem here, using bison-3.0.4-r1, but that thread suggests it may
> be system dependant...

TL;DR: At a preliminary look, the patch seems to have been already applied.

I've created new linuxsampler-2.0.0-r1.ebuild with added

src_prepare() {
    epatch_user
}

and also a patch

$ cat /etc/portage/patches/media-sound/linuxsampler-2.0.0-r1/lscp.patch   
--- src/shell/lscp.cpp  (revision 2516)
+++ src/shell/lscp.cpp  (working copy)
@@ -27,8 +27,8 @@
 using namespace std;
 using namespace LinuxSampler;
 
-static LSCPClient g_client;
-static KeyboardReader g_keyboardReader;
+static LSCPClient* g_client = NULL;
+static KeyboardReader* g_keyboardReader = NULL;
 static Condition g_todo;
 static String g_goodPortion;
 static String g_badPortion;
@@ -66,7 +66,7 @@
     // now add the suggested, correct characters
     s += g_suggestedPortion;
     g_suggestedPortion.clear();
-    g_client.send(s);
+    g_client->send(s);
 }
 
 int main(int argc, char *argv[]) {
@@ -103,12 +103,13 @@
 
     // try to connect to the sampler's LSCP server and start a thread for
     // receiving incoming network data from the sampler's LSCP server
-    g_client.setCallback(onLSCPClientNewInputAvailable);
-    if (!g_client.connect(host, port)) return -1;
-    String sResponse = g_client.sendCommandSync(
+    g_client = new LSCPClient;
+    g_client->setCallback(onLSCPClientNewInputAvailable);
+    if (!g_client->connect(host, port)) return -1;
+    String sResponse = g_client->sendCommandSync(
         (autoCorrect) ? "SET SHELL AUTO_CORRECT 1" : "SET SHELL AUTO_CORRECT 0"
     );
-    sResponse = g_client.sendCommandSync("SET SHELL INTERACT 1");
+    sResponse = g_client->sendCommandSync("SET SHELL INTERACT 1");
     if (sResponse.substr(0, 2) != "OK") {
         cerr << "Error: sampler too old, it does not support shell instructions\n";
         return -1;
@@ -117,8 +118,9 @@
     // start a thread for reading from the local text input keyboard
     // (keyboard echo will be disabled as well to have a clean control on what
     // is appearing on the screen)
-    g_keyboardReader.setCallback(onNewKeyboardInputAvailable);
-    g_keyboardReader.startReading();
+    g_keyboardReader = new KeyboardReader;
+    g_keyboardReader->setCallback(onNewKeyboardInputAvailable);
+    g_keyboardReader->startReading();
     
     // main thread's loop
     while (true) {
@@ -129,8 +131,8 @@
         g_todo.Unlock();
 
         // did network data arrive?
-        while (g_client.messageComplete()) {
-            String line = *g_client.popLine();
+        while (g_client->messageComplete()) {
+            String line = *g_client->popLine();
             //printf("line '%s'\n", line.c_str());
             if (line.substr(0,4) == "SHU:") {
                 int code = 0, n = 0;
@@ -211,13 +213,13 @@
                 cout << line.substr(0,3) << flush;
                 cfmt.reset();
                 cout << line.substr(3) << endl << flush;
-            } else if (g_client.multiLine()) { // multi-line response expected ...
+            } else if (g_client->multiLine()) { // multi-line response expected ...
                 cout << endl << flush;
                 while (true) {                   
                    cout << line << endl << flush;
                    if (line.substr(0, 1) == ".") break;
-                   if (!g_client.lineAvailable()) break;
-                   line = *g_client.popLine();
+                   if (!g_client->lineAvailable()) break;
+                   line = *g_client->popLine();
                 }
             } else {
                 cout << endl << line << endl << flush;
@@ -225,8 +227,8 @@
         }
 
         // did keyboard input arrive?
-        while (g_keyboardReader.charAvailable()) {
-            char c = g_keyboardReader.popChar();
+        while (g_keyboardReader->charAvailable()) {
+            char c = g_keyboardReader->popChar();
 
             CFmt cfmt;
             cfmt.white();
@@ -241,7 +243,7 @@
                 cout << c << flush;
             }
 
-            g_client.send(c);
+            g_client->send(c);
         }
     }


it fails with messages like

checking file src/shell/lscp.cpp
Hunk #1 FAILED at 27.
Hunk #2 FAILED at 66.
Hunk #3 FAILED at 103.
Hunk #4 FAILED at 117.
Hunk #5 FAILED at 129.
Hunk #6 FAILED at 211.
Hunk #7 FAILED at 225.
Hunk #8 FAILED at 241.
8 out of 8 hunks FAILED

After quickly looking through lscp.cpp, it seems that the source code has already been patched.

The other patch from the thread seems only to introduce some locking. I haven't tried it.
Comment 6 Kornel 2015-08-17 14:09:49 UTC
(In reply to Ben de Groot from comment #4)
> (In reply to Kornel from comment #2)
> > According to
> > 
> > http://blog.gmane.org/gmane.comp.audio.linuxsampler.devel/month=20140201
> > 
> > similar errors might be related to the bison version. I'm using
> > sys-devel/bison-2.4.3.
> 
> Does the patch in that thread solve things for you?
> 
> I had no problem here, using bison-3.0.4-r1, but that thread suggests it may
> be system dependant...

sys-devel/bison-3.0.4-r1 work for me as well.
Comment 7 ze 2015-11-02 23:15:08 UTC
According to http://linux-audio-user.linuxaudio.narkive.com/aUXOYHuj/lau-trying-to-build-linuxsampler
this results from a mis-match between the bison version that generated linuxsampler-2.0.0/src/network/lscpparser.cpp and the version on the system attempting to build it.
The quick fix is to remove that file so it gets regenerated.
Adding
    rm src/network/lscpparser.cpp
to the start of the src_configure block of the ebuild fixed the issue for me.
Comment 8 Porcupine of the Moon 2015-12-06 19:26:37 UTC
(In reply to ze from comment #7)

> Adding
>     rm src/network/lscpparser.cpp
> to the start of the src_configure block of the ebuild fixed the issue for me.

I can confirm that adding this line also works for the stable version bison-2.4.3.
Comment 9 Pacho Ramos gentoo-dev 2016-01-01 20:39:52 UTC
[master c366c67] media-sound/linuxsampler: Let this build with older bison versions, bug #556204
 1 file changed, 7 insertions(+), 2 deletions(-)