• Re: Bug#1104745: gcc-15 ICE compiling linux kernel 6.14.5 with CONFIG_R

    From Uwe =?utf-8?Q?Kleine-K=C3=B6nig?=@1:229/2 to Ingo Saitz on Wed Jun 4 23:00:01 2025
    XPost: linux.debian.bugs.dist
    From: u.kleine-koenig@baylibre.com

    Control: tag -1 + fixed-upstream
    Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org

    Hello,

    On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
    When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:

    arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
    174 | const struct seq_operations cpuinfo_op = {
    | ^~~~~~~~~~~~~~

    This is claimed to be fixed in upstream by commit https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
    that is scheduled to be included in 6.16-rc1.

    This wasn't explicitly marked for stable, but I think a backport would
    be good.

    Best regards
    Uwe

    -----BEGIN PGP SIGNATURE-----

    iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmhAr9kACgkQj4D7WH0S /k7tOgf+LKeRJxqZooP95Bh18VIuhHKYonO0De80uNjR2yACLaxcBWZFZK1VzX7w qlAmgjgQ/mS0umTFlUN3B4satEOnfwuea/pBwjbtqcYq/OrKvnkmWNkwR/3KWKiL ywU7O578w8zGiTlgEA+eEgoqcZtDYuLInuvxLXRppihaadXA9u6ci3m6mJK3acW3 7mrILlrx7n/j79OINqIzGMdpEgy5uQoQyUHf6ROvBQFg7xZ0jQ9Gq5I0fyN7cs/A VrPltgVIVvLcjltKWs4D5Nid0sEEZ7oWAiPenAlitkpkPc4Vxk62YwoIqbA5L/SJ chXmkTriZggLYrDeFQXoARXLQjxTbA==
    =BUO8
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Greg KH@1:229/2 to All on Thu Jun 5 12:10:01 2025
    XPost: linux.debian.bugs.dist
    From: gregkh@linuxfoundation.org

    On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
    Control: tag -1 + fixed-upstream
    Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org

    Hello,

    On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
    When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:

    arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
    174 | const struct seq_operations cpuinfo_op = {
    | ^~~~~~~~~~~~~~

    This is claimed to be fixed in upstream by commit https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
    that is scheduled to be included in 6.16-rc1.

    This wasn't explicitly marked for stable, but I think a backport would
    be good.

    Does not apply cleanly, we need backports submitted to us to be able to
    take it.

    thanks,

    greg k-h

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Ingo Saitz@1:229/2 to All on Sun Jun 8 10:30:02 2025
    XPost: linux.debian.bugs.dist
    From: ingo@hannover.ccc.de

    On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
    Control: tag -1 + fixed-upstream
    Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org

    Hello,

    On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
    When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:

    arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
    174 | const struct seq_operations cpuinfo_op = {
    | ^~~~~~~~~~~~~~

    This is claimed to be fixed in upstream by commit https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14
    that is scheduled to be included in 6.16-rc1.

    I can confirm applying the patches

    e136a4062174a9a8d1c1447ca040ea81accfa6a8: randstruct: gcc-plugin: Remove bogus void member
    f39f18f3c3531aa802b58a20d39d96e82eb96c14: randstruct: gcc-plugin: Fix attribute addition

    fixes the compile issue (on vanilla 6.12, 6.14 and 6.15 kernel trees;
    the kernels seem to run fine, too, so far). The first patch was needed
    for the second to apply cleanly. But I can try to backport only f39f18f3c3531aa802b58a20d39d96e82eb96c14 and see if it still compiles.


    This wasn't explicitly marked for stable, but I think a backport would
    be good.

    Best regards
    Uwe



    Ingo
    --
    const_cast<long double>(Λ)

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)
  • From Ben Hutchings@1:229/2 to All on Tue Jun 10 00:10:01 2025
    XPost: linux.debian.bugs.dist
    From: ben@decadent.org.uk

    Control: tag -1 experimental patch
    Control: found -1 6.12.32-1
    Control: found -1 6.15.1-1~exp1

    I'm marking this found in the current versions of linux in unstable and experimental. I'm tagging it experimental because gcc-15 is not yet in unstable, and patch because we have identified the patch(es) to fix it.

    I also verified that applying the 2 patches fixes the build failure with Debian's gcc-15 and the above versions of the kernel source, and doesn't regress building with Debian's gcc-14.

    Ben.

    --
    Ben Hutchings
    It is a miracle that curiosity survives formal education.
    - Albert Einstein

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAmhHUfAACgkQ57/I7JWG EQkCshAAxFNdhVGLjWOBFGDZc9CJq4iBlK32H2ynb1axpJPDGJPmRwD20ZDNxTxV vp2fzgrMrCqlx7Ss1V/vdg2HTsbdvilzVU4s68/Oiy1U5Wc1WfwxUq/ujPAIvj3J D/SX7O/oy9q0WMcse4dYvLFydbyotGZaoO23YlbccjyeFdeEMi1cMTlI35t09ejM YnFWb4uHxOuiZV4gmCXJEVMP2rogUe1JLXjjBUs/OOxQcY+cxE19kr9eid5Gg3Yg 8xEYU1M69kNjKNXXW70Rsc79NuS/xaG96AYmcGamX+QH35etoocCLGIYbItUfvl2 TXaUpteybWEzz/as4Bgz/0ZEHqABYWgXKnHOWRNPQTt7s0YfDRU4M7oKcIyMaK/B 8KYjsiplq3p1pp0DI+DcjaBRyRmrGIjWDcxXqQgSZ/aQmOaoZ/mXhH+rx7P6Qcic EnQMp9q41J4TjsaepKzUOW2umFXB4isFav6V67/Z1JRkhZaOUiz2lYJrc2nhQpUe Gu5iOXxvVzygknGEbEigIIPIqktfnPN+Bfh7NC0AERQZ+5nkjGiosFHzQSfWwgwO ashcbeFb2Aa3KkB/wGhBPvb7Cx1Xo5dLNdqJttkjiQspPyi1OYwhKBik7t7RsaA0 kSFc1hhdCEyEjS0KRt04ER2lu7Ww/fH6Exld2vh/lx4fWXyYofA=
    =hLP1
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32
  • From Greg KH@1:229/2 to All on Mon Jun 23 10:40:01 2025
    XPost: linux.debian.bugs.dist
    From: gregkh@linuxfoundation.org

    On Wed, Jun 11, 2025 at 06:40:48PM +0200, Uwe Kleine-König wrote:
    Hello Greg, hello Ingo,

    On Sun, Jun 08, 2025 at 10:25:50AM +0200, Ingo Saitz wrote:
    On Wed, Jun 04, 2025 at 10:43:11PM +0200, Uwe Kleine-König wrote:
    Control: tag -1 + fixed-upstream
    Control: forwarded -1 https://lore.kernel.org/r/20250530221824.work.623-kees@kernel.org

    Hello,

    On Mon, May 05, 2025 at 05:40:57PM +0200, Ingo Saitz wrote:
    When compiling the linux kernel (tested on 6.15-rc5 and 6.14.5 from kernel.org) with CONFIG_RANDSTRUCT enabled, gcc-15 throws an ICE:

    arch/x86/kernel/cpu/proc.c:174:14: internal compiler error: in comptypes_check_enum_int, at c/c-typeck.cc:1516
    174 | const struct seq_operations cpuinfo_op = {
    | ^~~~~~~~~~~~~~

    This is claimed to be fixed in upstream by commit https://git.kernel.org/linus/f39f18f3c3531aa802b58a20d39d96e82eb96c14 that is scheduled to be included in 6.16-rc1.

    I can confirm applying the patches

    e136a4062174a9a8d1c1447ca040ea81accfa6a8: randstruct: gcc-plugin: Remove bogus void member
    f39f18f3c3531aa802b58a20d39d96e82eb96c14: randstruct: gcc-plugin: Fix attribute addition

    fixes the compile issue (on vanilla 6.12, 6.14 and 6.15 kernel trees;
    the kernels seem to run fine, too, so far). The first patch was needed
    for the second to apply cleanly. But I can try to backport only f39f18f3c3531aa802b58a20d39d96e82eb96c14 and see if it still compiles.

    @Ingo: Thanks for testing and confirming the backport works.

    @gregkh: I think it's reasonable to backport both e136a4062174a9a8d1c1447ca040ea81accfa6a8 and f39f18f3c3531aa802b58a20d39d96e82eb96c14. Do you already have these on
    your radar?

    They are in the stable queues now.

    thanks,

    greg k-h

    --- SoupGate-Win32 v1.05
    * Origin: you cannot sedate... all the things you hate (1:229/2)