[Pkg-xen-devel] Bug#853710: Bug#853710: xen: ftbfs with GCC-7

Hans van Kranenburg hans at knorrie.org
Thu Jan 11 21:42:43 UTC 2018


Hey,

On 11/01/2018 18:59, peter green wrote:
>> I think the compiler is simply wrong to complain about this.
> If you are going to build with options like "-Wall -Werror" then you
> have to expect the compiler to be bitchy. You should be able to make
> this particular warning non-fatal by adding -Wno-error=int-in-bool-context

Thanks for the help.

First thing that's going to happen to Xen in Debian unstable is moving
to Xen 4.10, which compiles fine with gcc-7.

If I point my pbuilder (debian unstable) at the current package that's
in the archive, it indeed explodes halfway:

xenlockprof.c: In function 'main':
xenlockprof.c:100:53: error: '%s' directive writing up to 39 bytes into
a region of size between 17 and 37 [-Werror=format-overflow=]
             sprintf(name, "unknown type(%d) %d lock %s", data[j].type,
                                                     ^~
xenlockprof.c:100:13: note: 'sprintf' output between 24 and 83 bytes
into a destination of size 60
             sprintf(name, "unknown type(%d) %d lock %s", data[j].type,
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                     data[j].idx, data[j].name);
                     ~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

So, FWIW, I think we can close this case, since buster will definitely
not ship with Xen 4.8 but newer.

Thanks,
Hans



More information about the Pkg-xen-devel mailing list