[Pkg-mpd-maintainers] Bug#862130: src:mpd: FTBFS with cppunit 0.14 ("cannot use typeid with -fno-rtti")
Rene Engelhard
rene at debian.org
Mon May 8 20:26:47 UTC 2017
Package: src:mpd
Version: 0.19.21-1
Severity: normal
Dear Maintainer,
[ cppunit 0.14 is not in Debian yet, see #861718. Thus normal for now ]
On a rebuild test using ratt I noticed your package doesn't build with
cppunit 0.14:
[...]
g++ -DHAVE_CONFIG_H -I. -DNDEBUG -I./src -pthread -I/usr/include/glib-2.0 -I/us
r/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include -DSYSTEM_CONFIG_FILE_LOCA
TION='"/etc/mpd.conf"' -DCPPUNIT_HAVE_RTTI=0 -Wdate-time -D_FORTIFY_SOURCE=2 -D
_GNU_SOURCE -pthread -Wno-error?precated-declarations -g -O2 -fdebug-prefix-ma
p=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -
fvisibility=hidden -fno-threadsafe-statics -fmerge-all-constants -fno-exceptions -fno-rtti -ffast-math -ftree-vectorize -ffunction-sections -fdata-sections -Wall -Wextra -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings -Wsign-compare -c -o test/test_test_pcm-test_pcm_dither.o `test -f 'test/test_pcm_dither.cxx' || echo './'`test/test_pcm_dither.cxx
In file included from /usr/include/cppunit/extensions/HelperMacros.h:14:0,
from test/test_rewind.cxx:15:
test/test_rewind.cxx: In static member function 'static const CppUnit::TestNamer& RewindTest::getTestNamer__()':
test/test_rewind.cxx:52:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(RewindTest);
^
Makefile:13036: recipe for target 'test/test_test_rewind-test_rewind.o' failed
make[3]: *** [test/test_test_rewind-test_rewind.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/cppunit/extensions/HelperMacros.h:14:0,
from test/test_mixramp.cxx:11:
test/test_mixramp.cxx: In static member function 'static const CppUnit::TestNamer& MixRampTest::getTestNamer__()':
test/test_mixramp.cxx:16:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(MixRampTest);
^
Makefile:12798: recipe for target 'test/test_test_mixramp-test_mixramp.o' failed
make[3]: *** [test/test_test_mixramp-test_mixramp.o] Error 1
In file included from /usr/include/cppunit/extensions/HelperMacros.h:14:0,
from test/test_pcm_all.hxx:24,
from test/test_pcm_dither.cxx:20:
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestName
r& PcmDitherTest::getTestNamer__()':
test/test_pcm_all.hxx:27:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmDitherTest);
^
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestName
r& PcmPackTest::getTestNamer__()':
test/test_pcm_all.hxx:38:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmPackTest);
^
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestName
r& PcmChannelsTest::getTestNamer__()':
test/test_pcm_all.hxx:49:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmChannelsTest);
^
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestName
r& PcmVolumeTest::getTestNamer__()':
test/test_pcm_all.hxx:60:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmVolumeTest);
^
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestName
r& PcmFormatTest::getTestNamer__()':
test/test_pcm_all.hxx:77:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmFormatTest);
^
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestName
r& PcmMixTest::getTestNamer__()':
test/test_pcm_all.hxx:92:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmMixTest);
^
test/test_pcm_all.hxx: In static member function 'static const CppUnit::TestNamer& PcmExportTest::getTestNamer__()':
test/test_pcm_all.hxx:107:2: error: cannot use typeid with -fno-rtti
CPPUNIT_TEST_SUITE(PcmExportTest);
^
Makefile:12826: recipe for target 'test/test_test_pcm-test_pcm_dither.o' failed
make[3]: *** [test/test_test_pcm-test_pcm_dither.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
Makefile:4331: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: make -j4 returned exit code 2
debian/rules:135: recipe for target 'override_dh_auto_build' failed
make[1]: *** [override_dh_auto_build] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules:119: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2[...]
Upstream says cppunit now requires c++11. I am not deep in the standard
but maybe this is the explanation for this, too?
I put my package for testing to
https://people.debian.org/~rene/libreoffice/5.4/cppunit/
Regards,
Rene
More information about the Pkg-mpd-maintainers
mailing list