kernel: disable CONFIG_WERROR

The help of this options says:

"However, if you have a new compiler with ..., you may need to disable
this config option in order to successfully build the kernel."

As we are having state-of-art GCC-12, and Linux-5.18 release candidate
FTBFS with GCC-12 and CONFIG_WERROR=y [1], and <rant>the kernel developers
are making stupid and meaningless discussion instead of fixing the building
failure</rant> [2], I don't think enabling this option makes any sense
building LFS.

[1]:https://lkml.org/lkml/2022/4/14/1676
[2]:https://lkml.org/lkml/2022/4/21/254
This commit is contained in:
Xi Ruoyao 2022-05-09 16:20:05 +08:00 committed by William Harrington
parent 38c956bdef
commit 1903d313c2

View File

@ -106,6 +106,7 @@
not work correctly or boot at all:</para>
<screen role="nodump" revision="sysv">General setup -->
[ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
&lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
Device Drivers ---&gt;
Graphics support ---&gt;
@ -117,6 +118,7 @@ Device Drivers ---&gt;
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]</screen>
<screen role="nodump" revision="systemd">General setup -->
[ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
[ ] Auditing Support [CONFIG_AUDIT]
CPU/Task time and stats accounting ---&gt;
[*] Pressure stall information tracking [CONFIG_PSI]
@ -171,6 +173,19 @@ File systems ---&gt;
<variablelist>
<title>The rationale for the above configuration items:</title>
<varlistentry>
<term>
<parameter>
Compile the kernel with warnings as errors
</parameter>
</term>
<listitem>
<para>This may cause building failure if the compiler and/or
configuration are different from those of the kernel
developers.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<parameter>