Acknowledgement sent
to Ingo Saitz <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <[email protected]>.
(Mon, 05 May 2025 15:51:05 GMT) (full text, mbox, link).
Package: gcc-15
Version: 15.1.0-3
Severity: normal
Dear Maintainer,
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 = {
| ^~~~~~~~~~~~~~
I have attached a minmal config for 6.14.5 (make allnoconfig and then
enable CONFIG_RANDSTRUCT_PERFORMANCE) that exibits this behaviour plus
the full dump produced by gcc-15 -freport-bug. I build the kernel with
make CC="gcc-15 -freport-bug" HOSTCC=gcc-15 V=1
Also CONFIG_RANDSTRUCT_FULL produces the same dump, the only
difference being the option
"-fplugin-arg-randomize_layout_plugin-performance-mode" left out.
The same config build on gcc-14 (Debian 14.2.0-19) 14.2.0 without ICE.
Thanks
Ingo
-- System Information:
Distributor ID: Devuan
Description: Devuan GNU/Linux 6 (excalibur/ceres)
Release: 6
Codename: excalibur ceres
Architecture: x86_64
Kernel: Linux 6.14.2-spatz20250410 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_RANDSTRUCT
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages gcc-15 depends on:
ii binutils 2.44-3
ii cpp-15 15.1.0-3
ii gcc-15-base 15.1.0-3
ii gcc-15-x86-64-linux-gnu 15.1.0-3
Versions of packages gcc-15 recommends:
ii libc6-dev 2.41-7
Versions of packages gcc-15 suggests:
pn gcc-15-doc <none>
pn gcc-15-locales <none>
pn gcc-15-multilib <none>
-- no debconf information
Acknowledgement sent
to Ingo Saitz <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <[email protected]>.
(Fri, 09 May 2025 07:24:03 GMT) (full text, mbox, link).
I can build the Linux 6.14.5 kernel with CONFIG_RANDSTRUCT_PERFORMANCE
successfully using upstream gcc 15.1.0, so the bug seems to be
introduced by some of Debians patches (or pulls from upstream
development). See attached build.log and minimal config.
Ingo
--
const_cast<long double>(Λ)
Acknowledgement sent
to Matthias Klose <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <[email protected]>.
(Mon, 12 May 2025 12:27:02 GMT) (full text, mbox, link).
Acknowledgement sent
to Ingo Saitz <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <[email protected]>.
(Mon, 12 May 2025 16:24:01 GMT) (full text, mbox, link).
Subject: Re: Bug#1104745: Acknowledgement (gcc-15 ICE compiling linux kernel
6.14.5 with CONFIG_RANDSTRUCT)
Date: Mon, 12 May 2025 18:21:08 +0200
On Mon, May 12, 2025 at 02:25:24PM +0200, Matthias Klose wrote:
> Control: tags -1 + moreinfo
>
> from the attached preprocessed source ...
>
> please can you report the issue, where you got this plugin from?
The plugin is part of the linux kernel compilation process to randomize
structure layout. This plugin was from vanilla 6.14.5 linux kernel sources,
in scripts/gcc-plugins/randomize_layout_plugin.c . It gets build and used
automatically when CONFIG_RANDSTRUCT_PERFORMANCE (or _FULL) is enabled.
Ingo
--
const_cast<long double>(Λ)
Acknowledgement sent
to Matthias Klose <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian GCC Maintainers <[email protected]>.
(Tue, 13 May 2025 08:36:01 GMT) (full text, mbox, link).
Subject: Re: Bug#1104745: Acknowledgement (gcc-15 ICE compiling linux kernel
6.14.5 with CONFIG_RANDSTRUCT)
Date: Tue, 13 May 2025 10:33:09 +0200
Control: reassign -1 src:linux
On 12.05.25 18:21, Ingo Saitz wrote:
> On Mon, May 12, 2025 at 02:25:24PM +0200, Matthias Klose wrote:
>> Control: tags -1 + moreinfo
>>
>> from the attached preprocessed source ...
>>
>> please can you report the issue, where you got this plugin from?
>
> The plugin is part of the linux kernel compilation process to randomize
> structure layout. This plugin was from vanilla 6.14.5 linux kernel sources,
> in scripts/gcc-plugins/randomize_layout_plugin.c . It gets build and used
> automatically when CONFIG_RANDSTRUCT_PERFORMANCE (or _FULL) is enabled.
>
> Ingo
according to GCC upstream developers, this should be forwarded upstream
for linux.
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.