Re: notes on building 3.20



On 23/03/16 18:00, Bastien Nocera wrote:
On Wed, 2016-03-23 at 12:44 -0400, Matthias Clasen wrote:
Hey, some quick observations from building the 3.20.0 moduleset with
gcc 6 on Fedora 24:

gcc got a lot better. That means it has a lot more warnings. The ones
that affect multiple modules are -Werror=format-nonliteral and
-Werror=format-y2k. Both of cause build failures all over the place.

Please make an effort to fix these in your code. At least the
format-nonliteral warning often indicates actual, exploitable
security
holes.

If you still have gcc 5, you can make this error show up by using those
CFLAGS:
-Werror=format=2 -Wformat=2

Make sure that -Wformat=2 isn't overwritten later in the CFLAGS list.
And for those on Fedora 23, you can easily install GCC 6 to enjoy the
build breakage yourselves by running:
dnf update --releasever=24 gcc binutils

In Debian, gcc-6 is available from experimental.

Emilio


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]