https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sys-kernel/gentoo-kernel-5.10.16 uses -Werror for build. Discovered on: amd64 (internal ref: tinderbox) -Werror is not recommended for releases and should always be disabled when encountered in build-logs, because there are numerous cases where this breaks without purpose. See also: https://devmanual.gentoo.org/ebuild-writing/common-mistakes/index.html NOTE: If you want to change the summary, to avoid auto-filed duplicates, please at least keep the word '-Werror'
*** Bug 771219 has been marked as a duplicate of this bug. ***
*** Bug 776853 has been marked as a duplicate of this bug. ***
kernel uses -Werror for some subsystems. Sometimes there's even a kernel option (disabled by default) to skip -Werror but we actually want the code to fail on warnings. can I ask to add sys-kernel/vanilla-kernel and sys-kernel/gentoo-kernel to some kind of -Werror exclude list on CI? this is one of the rare cases where we'll keep -Werror.
on ppc it's: zcat /proc/config.gz | grep -i werror # CONFIG_PPC_DISABLE_WERROR is not set CONFIG_PPC_WERROR=y
(In reply to Georgy Yakovlev from comment #4) > on ppc it's: > > zcat /proc/config.gz | grep -i werror > # CONFIG_PPC_DISABLE_WERROR is not set > CONFIG_PPC_WERROR=y x86_64 does not have it (nor similar)
anyway, point was that we wan -Werror for kernel.
I'm not convinced we do actually want -Werror. It's useful for finding bugs via CI, it's not useful as a user if something breaks. It's a big waste of time.