Compile error from lscpserver.cpp

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
count_fuzzball
User
Posts: 67
Joined: Mon Sep 01, 2008 8:53 am

Compile error from lscpserver.cpp

Post by count_fuzzball » Thu Oct 30, 2008 12:10 pm

I went back to recompile the linux-sampler backend, to increase the voices/polyphony count, but when I do I get this during make:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -Wreturn-type -ffast-math -march=i686 -g -O2 -pthread -msse -MT lscpserver.lo -MD -MP -MF .deps/lscpserver.Tpo -c lscpserver.cpp -fPIC -DPIC -o .libs/lscpserver.o
lscpserver.cpp: In member function 'String LSCPServer::GetFileInstrumentInfo(String, uint)':
lscpserver.cpp:2515: error: no matching function for call to 'find(__gnu_cxx::__normal_iterator<LinuxSampler::InstrumentManager::instrument_id_t*, std::vector<LinuxSampler::InstrumentManager::instrument_id_t, std::allocator<LinuxSampler::InstrumentManager::instrument_id_t> > >, __gnu_cxx::__normal_iterator<LinuxSampler::InstrumentManager::instrument_id_t*, std::vector<LinuxSampler::InstrumentManager::instrument_id_t, std::allocator<LinuxSampler::InstrumentManager::instrument_id_t> > >, LinuxSampler::InstrumentManager::instrument_id_t&)'
make[3]: *** [lscpserver.lo] Error 1
make[3]: Leaving directory `/tmp/linuxsampler-0.5.1/src/network'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/linuxsampler-0.5.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/linuxsampler-0.5.1'
make: *** [all] Error 2
This is what ./configure -enable-max-streams=154 -enable-max-voices=128 outputted:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether byte ordering is bigendian... no
checking target system type... i686-pc-linux-gnu
checking whether x86 architecture... yes
checking mmsystem.h usability... no
checking mmsystem.h presence... no
checking for mmsystem.h... no
checking whether UNIX98 compatible... yes
checking features.h usability... yes
checking features.h presence... yes
checking for features.h... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for NPTL bug... no
checking alsa/asoundlib.h usability... yes
checking alsa/asoundlib.h presence... yes
checking for alsa/asoundlib.h... yes
checking for main in -lasound... yes
checking Alsa version... 1.0.16
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for JACK... yes
checking for jack_client_name_size in -ljack... yes
checking for artsc-config... no
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.
checking for ASIO headerfile: ./ASIOSDK2/common/asio.h ....no
checking MidiShare.h usability... no
checking MidiShare.h presence... no
checking for MidiShare.h... no
checking CoreMIDI/CoreMIDI.h usability... no
checking CoreMIDI/CoreMIDI.h presence... no
checking for CoreMIDI/CoreMIDI.h... no
checking for mmsystem.h... (cached) no
checking for GIG... yes
yes, found libgig 3.2.1
checking for SQLITE3... no
*** Required sqlite version not found!
*** You need to have sqlite version 3.3 or higher
*** for instruments database support to be enabled.
*** Support for instruments DB will be disabled!
benchmarking for the best (signed) triangular oscillator algorithm... integer math using abs()
benchmarking for the best (unsigned) triangular oscillator algorithm... integer math using abs()
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for stdlib.h... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating man/Makefile
config.status: creating man/linuxsampler.1
config.status: creating src/Makefile
config.status: creating src/db/Makefile
config.status: creating src/network/Makefile
config.status: creating src/engines/Makefile
config.status: creating src/engines/gig/Makefile
config.status: creating src/engines/common/Makefile
config.status: creating src/common/Makefile
config.status: creating src/testcases/Makefile
config.status: creating src/drivers/Makefile
config.status: creating src/drivers/audio/Makefile
config.status: creating src/drivers/midi/Makefile
config.status: creating src/plugins/Makefile
config.status: creating linuxsampler.spec
config.status: creating debian/Makefile
config.status: creating Artwork/Makefile
config.status: creating scripts/Makefile
config.status: creating osx/Makefile
config.status: creating osx/linuxsampler.xcodeproj/Makefile
config.status: creating Documentation/Makefile
config.status: creating Documentation/Engines/Makefile
config.status: creating Documentation/Engines/gig/Makefile
config.status: creating linuxsampler.pc
config.status: creating Doxyfile
config.status: creating config.h
config.status: executing depfiles commands

#####################################################################
# LinuxSampler Configuration #
#-------------------------------------------------------------------#
# Assembly Optimizations: yes
# Development Mode: no
# Debug Level: 1
# Use Exceptions in RT Context: no
# Preload Samples: 32768
# Maximum Pitch: 4 (octaves)
# Maximum Events: 1024
# Envelope Bottom Level: 0.001 (linear)
# Envelope Minimum Release Time: 0.0025 s
# Streams to be refilled per Disk Thread Cycle: 4
# Minimum Stream Refill Size: 1024
# Maximum Stream Refill Size: 65536
# Stream Size: 262144
# Maximum Disk Streams: 154
# Maximum Voices: 128
# Default Subfragment Size: 32
# Default Global Volume Attenuation: 0.35
# Voice Stealing Algorithm: oldestvoiceonkey
# Signed Triangular Oscillator Algorithm: intmathabs
# Unsigned Triangular Oscillator Algorithm: intmathabs
# SysEx Buffer Size: 2048 Byte
# Min. Portamento Time: 0.1 s
# Max. Portamento Time: 32 s
# Default Portamento Time: 1 s
# Force Filter Usage: no
# Filter Cutoff Minimum: 100.0 Hz
# Filter Cutoff Maximum: 10000.0 Hz
# Override Filter Cutoff Controller: no
# Override Filter Resonance Controller: no
# Override Filter Type: no
# Assert GS SysEx Checksum: no
# Process Muted Channels: no
# Process All-Notes-Off MIDI message: yes
# Interpolate Volume: yes
# Instruments database support: no
# Plugin Path: /usr/local/lib/linuxsampler/plugins
#-------------------------------------------------------------------#
# Read './configure --help' or file 'configure.in' for details. #
#####################################################################

Good. Now type 'make' to compile, followed by 'make install' as root.

count_fuzzball
User
Posts: 67
Joined: Mon Sep 01, 2008 8:53 am

Re: Compile error from lscpserver.cpp

Post by count_fuzzball » Sun Nov 09, 2008 6:35 pm

*bump*

EDIT: Yeah, I'm running GCC 4.1.3 (Debian 4.3.1-2).

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

Re: Compile error from lscpserver.cpp

Post by cuse » Tue Dec 02, 2008 2:55 pm

Uhm..... GCC 4.1.3 or 4.3.1 ?

count_fuzzball
User
Posts: 67
Joined: Mon Sep 01, 2008 8:53 am

Re: Compile error from lscpserver.cpp

Post by count_fuzzball » Mon Dec 08, 2008 6:32 am

my bad

GCC 4.3.1

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

Re: Compile error from lscpserver.cpp

Post by cuse » Wed Dec 10, 2008 8:49 am

And you updated GCC since the last time you recompiled LS?

count_fuzzball
User
Posts: 67
Joined: Mon Sep 01, 2008 8:53 am

Re: Compile error from lscpserver.cpp

Post by count_fuzzball » Thu Dec 11, 2008 11:40 pm

Yeah, do I need to recompile everything from scratch or is it a problem with my compiler?

Andreas
Developer
Posts: 214
Joined: Sun Feb 03, 2008 8:33 am

Re: Compile error from lscpserver.cpp

Post by Andreas » Fri Dec 12, 2008 8:28 am

count_fuzzball wrote: lscpserver.cpp:2515: error: no matching function for call to 'find
This looks like you're building the 0.5.1 release. The gcc 4.3 compile error was fixed later, 2008-03-06, so you need to build from CVS to get rid of the error.

Post Reply