aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10/kernel.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2022-05-09 16:20:05 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-05-09 16:32:19 +0800
commited2bec7dd6ea58866858903c8ddd023babbad675 (patch)
treeff10d4d92ba9b92cbc0e0503d861efb8d10b6ca1 /chapter10/kernel.xml
parent80760d4ed1eefa6d87a1568e67ddc3c6fb26ab3c (diff)
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
Diffstat (limited to 'chapter10/kernel.xml')
-rw-r--r--chapter10/kernel.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index f1469f0b4..1bf8b112e 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -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]
@@ -174,6 +176,19 @@ File systems ---&gt;
<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>
Enable kernel headers through /sys/kernel/kheaders.tar.xz
</parameter>
</term>