[Buildroot] [git commit] package/glibc: disable Werror for gcc 10 build

Yann E. MORIN yann.morin.1998 at free.fr
Mon Jun 29 20:35:10 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=657704912814e83161e1886adf63a19e6c32b272
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Currently glibc 2.30 is build by default with Werror enabled but it
has only been tested with compiler version available at the time of
the release [1] (gcc 6.2 up to gcc 9.2.1). It's recommended to use
those version with glibc 2.30.

For the same reason why we remove Werror in packages's compiler
flags. Building with Werror is not bulletproof when we start
using a newer compiler that introduce new warnings.
This is the case here with gcc 10, as reported by Yegor Yefremov

Fixing compiler warnings would require backporting many patches [3]
not even backported by Glibc maintainers to the 2.30 stable
branch. Instead, disable Werror by using --disable-werror.
Most (if not all) gcc 10 warnings will be fixed with Glibc 2.31.

[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=INSTALL;h=62e78725f57080a1cb638cccd28ca3c2ffc5a22c#l466
[2] http://lists.busybox.net/pipermail/buildroot/2020-June/285715.html
[3] https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=cba932a5a9e91cffd7f4172d7e91f9b2efb1f84b

Signed-off-by: Romain Naour <romain.naour at gmail.com>
Cc: Yegor Yefremov <yegorslists at googlemail.com>
Tested-by: Yegor Yefremov <yegorslists at googlemail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
 package/glibc/glibc.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/glibc/glibc.mk b/package/glibc/glibc.mk
index 76fae1f9f7..1881cf0cdc 100644
--- a/package/glibc/glibc.mk
+++ b/package/glibc/glibc.mk
@@ -131,6 +131,7 @@ define GLIBC_CONFIGURE_CMDS
 		$(if $(BR2_x86_64),--enable-lock-elision) \
 		--with-pkgversion="Buildroot" \
 		--disable-profile \
+		--disable-werror \
 		--without-gd \
 		--enable-obsolete-rpc \
 		--enable-kernel=$(call qstrip,$(BR2_TOOLCHAIN_HEADERS_AT_LEAST)) \

More information about the buildroot mailing list