#1133539 libwx-perl: ftbfs with GCC-16

#1133539#5
Date:
2026-04-13 13:06:35 UTC
From:
To:
Hi,

libwx-perl fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.

The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/libwx-perl_arm64.build.xz

The last lines of the build log are at the end of this report.

To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html

Please only close this issue after double-checking that the package can be
built correctly with GCC 16.

Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.

[...]


t/01_load.t .........
1..1
ok
ok

(02_inheritance.t:3208): dbind-WARNING **: 18:41:09.373: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
t/02_inheritance.t ..
ok 1 - Wx::MDIParentFrame inheritance chain
ok 2 - Wx::MDIClientWindow inheritance chain
ok 3 - Wx::MDIChildFrame inheritance chain
1..3
ok
All tests successful.
Files=2, Tests=4,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.66 cusr  0.10 csys =  0.78 CPU)
Result: PASS
make[5]: Leaving directory '/build/reproducible-path/libwx-perl-0.9932/ext/mdi'
make[5]: Entering directory '/build/reproducible-path/libwx-perl-0.9932/ext/help'
"/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Help.bs ../../blib/arch/auto/Wx/Help/Help.bs 644
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, '../../blib/lib', '../../blib/arch')" t/*.t

(01_load.t:3232): dbind-WARNING **: 18:41:10.048: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Can't load '/build/reproducible-path/libwx-perl-0.9932/ext/help/../../blib/arch/auto/Wx/Help/Help.so' for module Wx::Help:  at /build/reproducible-path/libwx-perl-0.9932/ext/help/../../blib/lib/Wx/Mini.pm line 74.
Compilation failed in require at t/01_load.t line 7.
BEGIN failed--compilation aborted at t/01_load.t line 7.
t/01_load.t .........
1..1
Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/1 subtests

(02_inheritance.t:3239): dbind-WARNING **: 18:41:10.461: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Can't load '/build/reproducible-path/libwx-perl-0.9932/ext/help/../../blib/arch/auto/Wx/Help/Help.so' for module Wx::Help:  at /build/reproducible-path/libwx-perl-0.9932/ext/help/../../blib/lib/Wx/Mini.pm line 74.
Compilation failed in require at t/02_inheritance.t line 10.
BEGIN failed--compilation aborted at t/02_inheritance.t line 10.
t/02_inheritance.t .. skipped: (no reason given)

(03_threads.t:3246): dbind-WARNING **: 18:41:10.920: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
Can't load '/build/reproducible-path/libwx-perl-0.9932/ext/help/../../blib/arch/auto/Wx/Help/Help.so' for module Wx::Help:  at /build/reproducible-path/libwx-perl-0.9932/ext/help/../../blib/lib/Wx/Mini.pm line 74.
Compilation failed in require at t/03_threads.t line 11.
BEGIN failed--compilation aborted at t/03_threads.t line 11.
# Looks like your test exited with 2 before it could output anything.
t/03_threads.t ......
1..4
Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests

Test Summary Report
-------------------
t/01_load.t       (Wstat: 512 (exited 2) Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 1 tests but ran 0.
t/02_inheritance.t (Wstat: 512 (exited 2) Tests: 0 Failed: 0)
  Non-zero exit status: 2
t/03_threads.t    (Wstat: 512 (exited 2) Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 4 tests but ran 0.
Files=3, Tests=0,  2 wallclock secs ( 0.02 usr  0.01 sys +  1.06 cusr  0.15 csys =  1.24 CPU)
Result: FAIL
Failed 3/3 test programs. 0/0 subtests failed.
make[5]: *** [Makefile:773: test_dynamic] Error 2
make[5]: Leaving directory '/build/reproducible-path/libwx-perl-0.9932/ext/help'
make[4]: *** [Makefile:787: subdirs-test_dynamic] Error 2
make[4]: Leaving directory '/build/reproducible-path/libwx-perl-0.9932/ext'
make[3]: *** [Makefile:1242: subdirs-test_dynamic] Error 2
make[3]: Leaving directory '/build/reproducible-path/libwx-perl-0.9932'
dh_auto_test: error: make -j1 test TEST_VERBOSE=1 returned exit code 2
make[2]: *** [debian/rules:21: override_dh_auto_test] Error 25
make[2]: Leaving directory '/build/reproducible-path/libwx-perl-0.9932'
make[1]: *** [debian/rules:17: build] Error 2
make[1]: Leaving directory '/build/reproducible-path/libwx-perl-0.9932'
make: *** [debian/rules:17: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

#1133539#12
Date:
2026-09-07 21:38:37 UTC
From:
To:
This fails on sid as well now that GCC-16 is the default.

It seems to be an optimization issue. It works for me on sid/amd64
with DEB_BUILD_OPTIONS=noopt, and also with the attached targeted lower
optimization level.

This is at best a workaround of course. I didn't get further yet, happy
if somebody else wants to pick this up.

#1133539#17
Date:
2026-10-17 11:05:53 UTC
From:
To:
I can confirm that the attached workaround patch solves this issue for
me on amd64 as well as on s390x.
I just tested this while trying to fix #1148235 and #1148236 (WebView
no longer available on big endian).
After applying your patch these builds on s390x without issues.

I'd suggest that I team-upload libwx-perl with your GCC-16 workaround
as well as a fix for #1148236 tomorrow (when the new
libalien-wxwidgets-perl is available everywhere).

I tried this out at https://salsa.debian.org/roland/libwx-perl
(pipeline will fail until libalien-wxwidgets-perl 0.69+dfsg-9 is
available).

I closed the bug in changelog, but maybe we should reopen it
afterwards and downgrade severity to normal to remember that we have
to replace the workaround by a better solution...

@Niko: Do you think that this is an acceptable way to go?

Greetings
Roland

#1133539#22
Date:
2026-10-17 12:56:19 UTC
From:
To:
Looking for a better solution I had a look at
- CPAN issue tracker
- Fedora patches
- other distribution patches
- the github fork of Wx-Perl (see #1090963)
but didn't find a better solution than the workaround with the
temporarily disabled optimization.

I was able to reproduce the issue with the github fork, which is
actively maintained, so I reported the issue there:
https://github.com/sciurius/wxPerl/issues/10

I cross-checked everything in an amd64 sid chroot and the problem can
be fixed by using gcc-15 (instead of gcc-16) or by applying Nikos
workaround patch.

Greetings
Roland

#1133539#27
Date:
2026-10-17 15:06:33 UTC
From:
To:
Sure; thanks for looking at this!

I suppose leaving the bug open would be a good way of not forgetting.

#1133539#30
Date:
2026-10-17 17:42:25 UTC
From:
To:
Hello,

Bug #1133539 in libwx-perl reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/perl-team/modules/packages/libwx-perl/-/commit/e07b253a9d6cd0e4cc150f44dd6e28e28fab5f4b
------------------------------------------------------------------------
0001-Temporarily-lower-optimization-level-with-GCC-16.patch

(Closes: #1133539)
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1133539

#1133539#37
Date:
2026-10-17 19:03:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libwx-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1133539@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Roland Rosenfeld <roland@debian.org> (supplier of updated libwx-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 17 Oct 2026 19:41:38 +0200
Source: libwx-perl
Architecture: source
Version: 1:0.9932-11
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Changed-By: Roland Rosenfeld <roland@debian.org>
Closes: 1133539 1148236
Changes:
 libwx-perl (1:0.9932-11) unstable; urgency=medium
 .
   * Team upload.
 .
   [ Niko Tyni ]
   * 0001-Temporarily-lower-optimization-level-with-GCC-16.patch
     (Closes: #1133539)
 .
   [ Roland Rosenfeld ]
   * Upgrade libalien-wxwidgets-perl dependencies to >= 0.69+dfsg-9~, which
     disables webview on big-endian architectures (Closes: #1148236)
   * Add debian/salsa-ci.yml.
Checksums-Sha1:
 b07848035cd2e880a9014a07809bd6dd3123caa4 2368 libwx-perl_0.9932-11.dsc
 5c1cee88207433d645907397059562ae3bcb12a4 24640 libwx-perl_0.9932-11.debian.tar.xz
 d69c617921b8788d31e7f6e19ac41826168674f6 16133 libwx-perl_0.9932-11_source.buildinfo
Checksums-Sha256:
 94b79a4c2a5f8c1505ef23fac5c6b9490170a206bd39df805cb2be6a09b283ae 2368 libwx-perl_0.9932-11.dsc
 c6e10fc77bbe9eb34df637f4051c20b696b04470b8d93edaf431c72c6804f18d 24640 libwx-perl_0.9932-11.debian.tar.xz
 d5906f7d0170a8f16de6332a6f3a23e43ffa5e664152fab7c39cb94d713b17af 16133 libwx-perl_0.9932-11_source.buildinfo
Files:
 e426c787749adc4eb3ee63f279a7bc9b 2368 perl optional libwx-perl_0.9932-11.dsc
 47ff4ebcfa0573fb8b657b7f304f55e2 24640 perl optional libwx-perl_0.9932-11.debian.tar.xz
 5308d827e639ddea8d2c12bd3f9c8e67 16133 perl optional libwx-perl_0.9932-11_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEErC+9sQSUPYpEoCEdAnE7z8pUELIFAmrTs3MACgkQAnE7z8pU
ELI2rg//XXTjupyrFjUFWW/yKbjmE3MetFe8ycjeEhUBPOUXB1T6Tz5STH40l2UH
oMiFxH+9dxNpXMFGyt1o8xBT5n6c6ALvV2EtO79o/RUrAc3aWpfxxU5sKvstX+cm
uCo4orEstMyWDZjvlAqa5zvAhrIO/VrVHYKouYTN+l0mYQzqdmm5DJYY0eBFdSws
9mVZJdKjwC50i/gtXIHA60Ee2OeS8hrZuqTK5/4MPhijI/kBKbyuOHq6D24GvVSb
I2XMC4okHjwArMZv3j9C86LDLcBlr32ZNFku4JbLphTG+v3PxuO0I3T8Yaj+iErR
8plIrAkcA/UdESoG5EncoD19XtVHFD1f+QhwFPlFEI4PXBFMUlLpCLDWZUuQ+H0U
Py2KMJ+FCL7vnqCo/gS2YsqIPRQP0e9iE3Lsr/Hp0xPRXBPCdv30MIzAPZqx03pA
YlqnSnwyizjClRxG1GK5htAYfbLSt5pfK0xi7/134T31HTuljOPM4Tuav6rqxdJy
Fzx/Hjw69ja6Gp3+nKrU7J4ChrdJIrXByFKQBhRKRFlvkrkbWrWrsTE5zaeRgh5d
bzIRnKaL6q5IkGISuhBTdMw3krptk4f5rYbePDpNPHQqZq8cZNK1pXEtk3ZgppxZ
1mhS9cHuph9BFMZhQGBLJSzbZ+HqQ7i8TPQXY15/Waw6wtf05Ko=
=3a3+
-----END PGP SIGNATURE-----

#1133539#42
Date:
2026-10-17 19:11:14 UTC
From:
To:
Control: reopen -1 1:0.9932-11
Control: severity -1 normal

So I reopen the bug now and downgrade severity to normal, to keep the
workaround tracked.

Greetings
Roland