I've a small patch that makes the package build, which has been forwarded upstream, but ggcov then fails almost all its tests as the output format for coverage files from gcc has changed. Working on a solution with upstream.
regards Alastair On 20/01/2016 02:58, Martin Michlmayr wrote: > Package: ggcov > Version: 0.9-10 > Severity: important > User: debian-...@lists.debian.org > Usertags: ftbfs-gcc-6 gcc-6-narrowing > > This package fails to build with GCC 6. GCC 6 has not been released > yet, but it's expected that GCC 6 will become the default compiler for > stretch. > > Note that only the first error is reported; there might be more. You > can find a snapshot of GCC 6 in experimental. To build with GCC 6, > you can set CC=gcc-6 CXX=g++-6 explicitly. > > You may be able to find out more about this issue at > https://gcc.gnu.org/gcc-6/changes.html > >> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux > ... >> g++ -DHAVE_CONFIG_H -I. -I.. -D_REENTRANT -DORBIT2=1 -pthread >> -I/usr/include/libglade-2.0 -I/usr/include/libgnomeui-2.0 >> -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 >> -I/usr/include/libxml2 -I/usr/include/libgnome-2.0 >> -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 >> -I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0 >> -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gtk-2.0 >> -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ >> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 >> -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 >> -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 >> -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 >> -I/usr/include/libpng12 -I/usr/include/gnome-vfs-2.0 >> -I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2 >> -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include >> -I/usr/include/glib-2.0 >> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include >> -DPKGDATADIR="\"/usr/share/ggcov\"" -DPREFIX="\"/usr\"" >> -DDATADIR="\"/usr/share\"" -DLIBDIR="\"/usr/lib/x86_64-linux-gnu\"" >> -DSYSCONFDIR="\"/etc\"" -DDEBUG=0 -DUI_DEBUG=0 -DCOV_AMD64 -DCOV_I386 >> -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/libiberty -g -O2 >> -fstack-protector-strong -Wformat -Werror=format-security -Wall >> -Wchar-subscripts -Wsign-compare -pedantic -Wno-long-long -fno-rtti >> -fno-exceptions -fno-implement-inlines -c -o common.o common.c >> common.c:180:1: error: narrowing conversion of '-2' from 'int' to 'unsigned >> int' inside { } [-Wnarrowing] >> }; >> ^ >> >> Makefile:895: recipe for target 'common.o' failed >> make[4]: *** [common.o] Error 1 -- Alastair McKinstry, <alast...@sceal.ie>, <mckins...@debian.org>, https://diaspora.sceal.ie/u/amckinstry Misentropy: doubting that the Universe is becoming more disordered.
Author: Alastair McKinstry <mckins...@debian.org> Description: Fix for gcc-6 build issue. Origin-Bug: https://bugs.debian.org/811766 Forwarded: no Last-Updated: 2016-01-21 Index: ggcov-0.9/src/common.c =================================================================== --- ggcov-0.9.orig/src/common.c +++ ggcov-0.9/src/common.c @@ -172,7 +172,7 @@ static struct {"cov", R(D_FILES,D_DUMP)}, {"ui", R(D_UICORE,D_DIAGWIN)}, {"none", 0}, -{"all", ~1 /*"all" doesn't get you "verbose"*/}, +{"all", ~( (unsigned int) 1) /*"all" doesn't get you "verbose"*/}, {0, 0} #undef R #undef U Index: ggcov-0.9/src/cov_file.C =================================================================== --- ggcov-0.9.orig/src/cov_file.C +++ ggcov-0.9/src/cov_file.C @@ -963,6 +963,8 @@ cov_file_t::read_gcc3_bbg_file(covio_t * if (expect_version != BBG_VERSION_GCC33) bbg_failed1("unexpected version=0x%08x", format_version_); break; + case _NEW_VERSION(6,0,'e'): /* 6.0(e) experimental at Debian */ + case _NEW_VERSION(6,0,'*'): case _NEW_VERSION(5,3,'*'): case _NEW_VERSION(5,2,'*'): case _NEW_VERSION(5,1,'*'):