Thread View: linux.debian.ports.superh
5 messages
5 total messages
Started by John Paul Adrian Glaubitz
Sat, 31 Oct 2026 22:10
Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC 17 check requested
Author: John Paul Adrian Glaubitz
Date: Sat, 31 Oct 2026 22:10
Date: Sat, 31 Oct 2026 22:10
86 lines
5465 bytes
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
Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC 17 check requested
Author: Federico Molara
Date: Sun, 01 Nov 2026 08:10
Date: Sun, 01 Nov 2026 08:10
23 lines
2766 bytes
2766 bytes
Hi Adrian,
Thank you for testing the complete package with GCC 17, and for your help
with sh4. It is good to know that libvisual-plugins builds successfully
in that environment.
Do you know whether there is already a plan or an approximate timeframe
for making GCC 17 available in unstable and using it as the default
compiler on the sh4 buildds?
The current sh4 unstable package index still selects GCC 16, with
16.2.0-4 available. Your successful test suggests that GCC 17 could
unblock the libvisual-plugins register-spill failure without a
package-specific workaround. I have not yet tested 16.2.0-4; our failing
cross-compiler test used 16.2.0-3cross1.
For reference, the potentially related GCC issue mentioned in my first
email is PR 126167 ("LRA / SH: Improve on R0 spill failures"):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126167
I have not confirmed that our libvisual-plugins failure is a duplicate.
Best regards,
Federico
Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC 17 check requested
Author: John Paul Adrian Glaubitz
Date: Sun, 01 Nov 2026 08:30
Date: Sun, 01 Nov 2026 08:30
41 lines
3761 bytes
3761 bytes
Hello Federico,
On Sun, 2026-11-01 at 08:47 +0100, Federico Molara wrote:
> Thank you for testing the complete package with GCC 17, and for your help
> with sh4. It is good to know that libvisual-plugins builds successfully
> in that environment.
You're welcome.
> Do you know whether there is already a plan or an approximate timeframe
> for making GCC 17 available in unstable and using it as the default
> compiler on the sh4 buildds?
That will happen once GCC 17 has been released upstream which will happen
some time next year.
> The current sh4 unstable package index still selects GCC 16, with
> 16.2.0-4 available. Your successful test suggests that GCC 17 could
> unblock the libvisual-plugins register-spill failure without a
> package-specific workaround. I have not yet tested 16.2.0-4; our failing
> cross-compiler test used 16.2.0-3cross1.
>
> For reference, the potentially related GCC issue mentioned in my first
> email is PR 126167 ("LRA / SH: Improve on R0 spill failures"):
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126167
> I have not confirmed that our libvisual-plugins failure is a duplicate.
Lots of bugs have been fixed in the SH backend in GCC for the upcoming
GCC 17 release. That involved a lot of testing and debugging, you can
read up about that in the corresponding GCC Bugzilla report [1]. It really
took forever to get there.
Adrian
> [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55212
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC 17 check requested
Author: Yavor Doganov
Date: Sun, 01 Nov 2026 09:10
Date: Sun, 01 Nov 2026 09:10
13 lines
2846 bytes
2846 bytes
Federico Molara wrote: > Your successful test suggests that GCC 17 could unblock the > libvisual-plugins register-spill failure without a package-specific > workaround. Not sure if it would help in your case, but I got a very similar failure on hppa and the workaround was to build with -O1: https://salsa.debian.org/med-team/ball/-/commit/28bb10a8e3dc7584f8c7be86fcbf5a19184043bc On Debian, you can also always use gcc-snapshot *for testing purposes only* to verify if a bug is fixed in GCC upstream, just make sure to set the appropriate variables in debian/rules.
Re: libvisual-plugins: sh4 register-spill failure with GCC 16; GCC 17 check requested
Author: John Paul Adrian Glaubitz
Date: Sun, 01 Nov 2026 10:20
Date: Sun, 01 Nov 2026 10:20
30 lines
3259 bytes
3259 bytes
Hello Yavor, On Sun, 2026-11-01 at 10:49 +0200, Yavor Doganov wrote: > Federico Molara wrote: > > Your successful test suggests that GCC 17 could unblock the > > libvisual-plugins register-spill failure without a package-specific > > workaround. > > Not sure if it would help in your case, but I got a very similar > failure on hppa and the workaround was to build with -O1: > > https://salsa.debian.org/med-team/ball/-/commit/28bb10a8e3dc7584f8c7be86fcbf5a19184043bc It highly depends on the architecture whether the -O1 workaround will work or not, but it's definitely worth a try indeed. > On Debian, you can also always use gcc-snapshot *for testing > purposes only* to verify if a bug is fixed in GCC upstream, just make > sure to set the appropriate variables in debian/rules. FWIW, I have manually built and uploaded the package with GCC 17 now. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads