Changeset ed2bec7


Ignore:
Timestamp:
05/09/2022 08:32:19 AM (2 years ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
748429c
Parents:
80760d4
git-author:
Xi Ruoyao <xry111@…> (05/09/2022 08:20:05 AM)
git-committer:
Xi Ruoyao <xry111@…> (05/09/2022 08:32:19 AM)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    r80760d4 red2bec7  
    107107
    108108      <screen role="nodump" revision="sysv">General setup -->
     109   [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
    109110   &lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
    110111Device Drivers  ---&gt;
     
    118119
    119120      <screen role="nodump" revision="systemd">General setup -->
     121   [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
    120122   [ ] Auditing Support [CONFIG_AUDIT]
    121123   CPU/Task time and stats accounting ---&gt;
     
    175177        <term>
    176178          <parameter>
     179            Compile the kernel with warnings as errors
     180          </parameter>
     181        </term>
     182        <listitem>
     183          <para>This may cause building failure if the compiler and/or
     184          configuration are different from those of the kernel
     185          developers.</para>
     186        </listitem>
     187      </varlistentry>
     188
     189      <varlistentry>
     190        <term>
     191          <parameter>
    177192            Enable kernel headers through /sys/kernel/kheaders.tar.xz
    178193          </parameter>
Note: See TracChangeset for help on using the changeset viewer.