Bug#667098: amsynth: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:07:40 UTC 2012


Package: amsynth
Version: 1.3.0-1
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

Config.cc:44:2: error: 'optind' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/amsynth_1.3.0-1_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
MidiController.cc: At global scope:
MidiController.cc:238:1: warning: unused parameter 'paramIdx' [-Wunused-parameter]
g++ -DHAVE_CONFIG_H -I. -I..  -Dwith_oss -Dwith_alsa -Dwith_jack -Dwith_sndfile -DENABLE_BINRELOC -DDEFAULT_PREFIX='"/usr"'    -Wall -W -O3 -ffast-math -fno-exceptions -fomit-frame-pointer -c -o amSynth-Parameter.o `test -f 'Parameter.cc' || echo './'`Parameter.cc
g++ -DHAVE_CONFIG_H -I. -I..  -Dwith_oss -Dwith_alsa -Dwith_jack -Dwith_sndfile -DENABLE_BINRELOC -DDEFAULT_PREFIX='"/usr"'    -Wall -W -O3 -ffast-math -fno-exceptions -fomit-frame-pointer -c -o amSynth-Preset.o `test -f 'Preset.cc' || echo './'`Preset.cc
g++ -DHAVE_CONFIG_H -I. -I..  -Dwith_oss -Dwith_alsa -Dwith_jack -Dwith_sndfile -DENABLE_BINRELOC -DDEFAULT_PREFIX='"/usr"'    -Wall -W -O3 -ffast-math -fno-exceptions -fomit-frame-pointer -c -o amSynth-PresetController.o `test -f 'PresetController.cc' || echo './'`PresetController.cc
g++ -DHAVE_CONFIG_H -I. -I..  -Dwith_oss -Dwith_alsa -Dwith_jack -Dwith_sndfile -DENABLE_BINRELOC -DDEFAULT_PREFIX='"/usr"'    -Wall -W -O3 -ffast-math -fno-exceptions -fomit-frame-pointer -c -o amSynth-VoiceAllocationUnit.o `test -f 'VoiceAllocationUnit.cc' || echo './'`VoiceAllocationUnit.cc
In file included from Effects/revmodel.hpp:10:0,
                 from VoiceAllocationUnit.cc:8:
Effects/comb.hpp: In member function 'float comb::process(float)':
Effects/comb.hpp:41:23: warning: statement has no effect [-Wunused-value]
In file included from Effects/revmodel.hpp:11:0,
                 from VoiceAllocationUnit.cc:8:
Effects/allpass.hpp: In member function 'float allpass::process(float)':
Effects/allpass.hpp:36:23: warning: statement has no effect [-Wunused-value]
g++ -DHAVE_CONFIG_H -I. -I..  -Dwith_oss -Dwith_alsa -Dwith_jack -Dwith_sndfile -DENABLE_BINRELOC -DDEFAULT_PREFIX='"/usr"'    -Wall -W -O3 -ffast-math -fno-exceptions -fomit-frame-pointer -c -o amSynth-Config.o `test -f 'Config.cc' || echo './'`Config.cc
Config.cc: In member function 'bool Config::ParseCOpts(int, char**)':
Config.cc:44:2: error: 'optind' was not declared in this scope
Config.cc:46:57: error: 'getopt' was not declared in this scope
Config.cc:49:19: error: 'optarg' was not declared in this scope
make[4]: *** [amSynth-Config.o] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/src'
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
dh_auto_build: make -j1 returned exit code 2
make[3]: Leaving directory `/«PKGBUILDDIR»/src'
make[2]: Leaving directory `/«PKGBUILDDIR»'
make[1]: Leaving directory `/«PKGBUILDDIR»'
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the pkg-multimedia-maintainers mailing list