From 1903d313c2fc37195c4d71f422714a53e5c8e79b Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 9 May 2022 16:20:05 +0800 Subject: [PATCH] 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 the kernel developers are making stupid and meaningless discussion instead of fixing the building failure [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 --- chapter10/kernel.xml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml index 355922b87..a8a76847a 100644 --- a/chapter10/kernel.xml +++ b/chapter10/kernel.xml @@ -106,6 +106,7 @@ not work correctly or boot at all: General setup --> + [ ] Compile the kernel with warnings as errors [CONFIG_WERROR] < > Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS] Device Drivers ---> Graphics support ---> @@ -117,6 +118,7 @@ Device Drivers ---> [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT] General setup --> + [ ] Compile the kernel with warnings as errors [CONFIG_WERROR] [ ] Auditing Support [CONFIG_AUDIT] CPU/Task time and stats accounting ---> [*] Pressure stall information tracking [CONFIG_PSI] @@ -171,6 +173,19 @@ File systems ---> The rationale for the above configuration items: + + + + Compile the kernel with warnings as errors + + + + This may cause building failure if the compiler and/or + configuration are different from those of the kernel + developers. + + +