On Mon, Apr 13, 2026 at 03:06:35PM +0200, Emanuele Rocca wrote:
> Package: src:libwx-perl
> Version: 1:0.9932-9
> Severity: important
> Tags: sid forky ftbfs
> User: [email protected]
> Usertags: ftbfs-gcc-16
> 
> 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.

> 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 

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.

-- 
Niko
>From baf3e3987be3a142190244e53604a8eaa0b4190f Mon Sep 17 00:00:00 2001
From: Niko Tyni <[email protected]>
Date: Mon, 7 Sep 2026 22:19:15 +0100
Subject: [PATCH] Temporarily lower optimization level with GCC-16

This is a workaround that makes Wx::Help load again.

Otherwise we get an unhelpful error like

  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.

Bug-Debian: https://bugs.debian.org/1133539
---
 ext/help/XS/HelpController.xs | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ext/help/XS/HelpController.xs b/ext/help/XS/HelpController.xs
index 4b790ce..dddc797 100644
--- a/ext/help/XS/HelpController.xs
+++ b/ext/help/XS/HelpController.xs
@@ -39,10 +39,14 @@ wxHelpControllerBase::DisplayTextPopup( text, pos )
     wxString text
     wxPoint pos
 
+#pragma GCC optimize ("O0")
+
 bool
 wxHelpControllerBase::DisplaySection( section )
     wxString section
 
+#pragma GCC optimize ("O2")
+
 bool
 wxHelpControllerBase::DisplaySectionId( section )
     long section
-- 
2.53.0

Reply via email to