Changeset 1903d31


Ignore:
Timestamp:
05/09/2022 02:37:23 PM (2 years ago)
Author:
William Harrington <kb0iic@…>
Branches:
arm
Children:
b35d689
Parents:
38c956b
git-author:
Xi Ruoyao <xry111@…> (05/09/2022 08:20:05 AM)
git-committer:
William Harrington <kb0iic@…> (05/09/2022 02:37:23 PM)
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

    r38c956b r1903d31  
    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.