🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.ports.superh
Article #1

Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC 17 check requested

#1
From: John Paul Adrian Glaubitz
Date: Sat, 31 Oct 2026 22:10
86 lines
5465 bytes
Hello Federico,

On Sat, 2026-10-31 at 21:23 +0100, Federico Molara wrote:
> I maintain libvisual-plugins in Debian. Could someone with a sh4-targeting
> GCC 17 (native or cross) please try the attached preprocessed source and
> advise whether this looks related to GCC PR 126167, or warrants a separate
> compiler bug report?
> 
> The sh4 build fails in the JESS actor's stars_create_state function:
> 
>    draw.c:548:1: error: unable to find a register to spill
> 
> The failing instruction is an indexed float store at draw.c:541:23,
> pattern movsf_ie. The attached file comes from the -5 buildd failure;
> this source file is unchanged in 1:0.4.2+dfsg-6, which also failed on sh4.
> Build status:
> https://buildd.debian.org/status/package.php?p=libvisual-plugins&suite=sid
> 
> On 31 October I replayed the same file in a temporary amd64 unstable
> chroot using Debian cross-compilers:
> 
>    gcc-15-sh4-linux-gnu 15.3.0-4cross1:
>      -O2 -fPIC, including explicit -mlra: compiles successfully.
> 
>    gcc-16-sh4-linux-gnu 16.2.0-3cross1:
>      -O2 -fPIC, including explicit -mlra: fails with the diagnostic above.
>      -O2 -fPIC -mno-lra, or -O1 -fPIC: compiles successfully.
> 
> Both compilers report -mlra enabled by default. This establishes a
> difference between these Debian compiler builds, not an upstream bisect.
> The alternative flags are diagnostic controls only; I have not added a
> packaging workaround or tested the generated code at runtime.
> 
> To reproduce after decompressing buildd-draw.i.gz:
> 
>    sh4-linux-gnu-gcc-17 -g -O2 -fstack-protector-strong \
>      -Wformat -Werror=format-security -fPIC \
>      -c buildd-draw.i -o draw.o
> 
> Use sh4-linux-gnu-gcc-16 for the tested failing command, or gcc-17 with a
> native sh4 compiler. The uncompressed file's SHA-256 is:
> 65f752272467c6cb5aee6d90483783acf82ca54271540139d950efb0e7ec5b00
> 
> I found that PR 55212 was closed as fixed for GCC 17, and PR 126167 covers
> R0 spill failures, but I have not established that our case is a duplicate:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126167
> 
> I could not find a packaged GCC 17 cross-compiler for sh4 in unstable or
> experimental, so I have not tested this reproducer with GCC 17. This is
> a request for a compiler-level check and advice, not a buildd give-back.
> The reproducer is not minimized; compiler versions/configuration and the
> GCC 16 diagnostic are attached as well.

Thanks for caring about sh4!

I have done a quick test with an unstable sh4 chroot using GCC 17 as the
default compiler and your package builds fine with it on sh4:

dpkg-deb: building package 'libvisual-0.4-plugins' in '../libvisual-0.4-plugins_0.4.2+dfsg-6_sh4.deb'.
dpkg-deb: building package 'libvisual-0.4-plugins-dbgsym' in '../libvisual-0.4-plugins-dbgsym_0.4.2+dfsg-6_sh4.deb'.
 dpkg-genbuildinfo --build=any -O../libvisual-plugins_0.4.2+dfsg-6_sh4.buildinfo
 dpkg-genchanges --build=any -O../libvisual-plugins_0.4.2+dfsg-6_sh4.changes
dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)


Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
Technical Details
Message-ID: <NUpqW-95es-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
References: <NUo1P-94oO-15@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Newsgroups: linux.debian.ports.superh
Subject: Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC  17 check requested
Date: Sat, 31 Oct 2026 23:10:02 +0100
Message-ID: <NUpqW-95es-7@gated-at.bofh.it>
References: <NUo1P-94oO-15@gated-at.bofh.it>
X-Original-To: Federico Molara <federico@molara.net>, debian-superh@lists.debian.org
X-Mailbox-Line: From debian-superh-request@lists.debian.org  Sat Oct 31 22:07:10 2026
Old-Return-Path: <glaubitz@zedat.fu-berlin.de>
X-Amavis-Spam-Status: No, score=-4.198 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001]
 autolearn=ham autolearn_force=no
X-Policyd-Weight: using cached result; rate: -5.5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.60.2 
MIME-Version: 1.0
X-Originating-IP: 91.19.169.10
X-Zedat-Hint: PO
X-Mailing-List: <debian-superh@lists.debian.org> archive/latest/2942
List-ID: <debian-superh.lists.debian.org>
List-URL: <https://lists.debian.org/debian-superh/>
List-Archive: https://lists.debian.org/msgid-search/7d88f9471eca1eda6f715af294915226e1f6df41.camel@physik.fu-berlin.de
Approved: robomod@news.nic.it
Lines: 86
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: debian-gcc@lists.debian.org
X-Original-Date: Sat, 31 Oct 2026 23:06:55 +0100
X-Original-Message-ID: <7d88f9471eca1eda6f715af294915226e1f6df41.camel@physik.fu-berlin.de>
X-Original-References: <127d85af-5559-445b-8089-371a56fc61d9@molara.net>