Article View: linux.debian.bugs.rc
Article #2744Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
From: Cheng Li
Date: Mon, 09 Nov 2026 13:50
Date: Mon, 09 Nov 2026 13:50
61 lines
5753 bytes
5753 bytes
Hi Andreas,
The patch in Git replaces the unsigned long overload instead of adding the
unsigned int one next to it. debian/patches/fix-i386-build.patch as
committed in 282faf2:
- arb_progress(const char *title, unsigned long overall_count) { ... }
+ arb_progress(const char *title, unsigned int overall_count) { ... }
Both have to stay public, because the call sites use both types.
ARB_GDE/GDE_arbdb_io.cxx:236 passes numberspecies, which is declared
unsigned long in the parameter list at GDE_arbdb_io.cxx:49, and that is the
first error in the job you linked:
GDE_arbdb_io.cxx:236:73: error: 'arb_progress::arb_progress(const char*,
NUM) [with NUM = long unsigned int]' is private within this context
With unsigned long no longer published, that argument instantiates the
private template with NUM = unsigned long, which is an exact match and so
beats the integral conversion to unsigned int. Same mechanism as the
original bug, other type.
Which also means the committed patch does not fix i386: it moves the failure
from the six size_t sites to the unsigned long one. I rechecked with the
same minimal reproducer as in my report, now modelling both call shapes:
amd64 i386
7.0+ds-1, unpatched ok FTBFS (the six size_t sites)
add unsigned int ok ok
replace unsigned long FTBFS FTBFS (GDE_arbdb_io.cxx:236)
Corrected debian/patches/fix-i386-build.patch below. I checked it applies
cleanly to CORE/arb_progress.h as of 282faf2.
Author: Cheng Li <shiptux@gmail.com>
Last-Update: 2026-11-09
Bug-Debian: https://bugs.debian.org/1153516
Description: Add matching unsigned int overload, mirroring the existing unsigned long one
CORE/arb_progress.h makes the templated constructors private on purpose, to
reject integer types that could overflow, and then publishes the wanted
overloads explicitly. Only unsigned long was published, so on ILP32
architectures a size_t argument instantiates the private template with
NUM = unsigned int and overload resolution picks it. Publish the unsigned
int overload as well; the unsigned long one has to stay, because
ARB_GDE/GDE_arbdb_io.cxx:236 passes an unsigned long.
--- a/CORE/arb_progress.h
+++ b/CORE/arb_progress.h
@@ -256,6 +256,7 @@
// explicitely overload wanted ctors:
explicit arb_progress(char *title) { setup(title, 0); }
arb_progress(const char *title, unsigned long overall_count) { arb_assert(overall_count<=LONG_MAX); setup(title, overall_count); }
+ arb_progress(const char *title, unsigned int overall_count) { arb_assert(overall_count<=LONG_MAX); setup(title, overall_count); }
explicit arb_progress(unsigned long overall_count) { arb_assert(overall_count<=LONG_MAX); setup(NULp, overall_count); }
void allow_title_reuse() { used->allow_title_reuse(); }
Nothing is in the archive yet, so there is nothing to undo.
Kind regards,
Cheng Li
Technical Details
Message-ID:
<NXxUZ-aP4T-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomodReferences:
<NXwPf-aOve-9@gated-at.bofh.it> <NXxBD-aOXE-1@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!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Cheng Li <shiptux@gmail.com>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
Date: Mon, 09 Nov 2026 14:50:01 +0100
Message-ID: <NXxUZ-aP4T-3@gated-at.bofh.it>
References: <NXwPf-aOve-9@gated-at.bofh.it> <NXxBD-aOXE-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Mon Nov 9 13:41:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -0.547
Reply-To: Cheng Li <shiptux@gmail.com>, 1153516@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-med-packaging@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1153516
X-Debian-Pr-Package: src:arb
X-Debian-Pr-Keywords: ftbfs patch pending
X-Debian-Pr-Source: arb
X-Gm-Message-State: APuU4Z/6N45Hyz5M6/UYQ3GaH6/HNlVPgKJiqudEiZkJ7f0K9ve9eThP
FoMnr8/6nxFMRh71cXDXyoLBNeDQJVAkLKtDCFPdp28cXxrhujoM8VkiSn/M1MmFUnE=
X-Gm-Gg: AYBFou132DS6TcPgLil7GtQzyGU/qE/zwNUsKcKEHJYkwhjTbOjcwMCdSp4uXjuJXBf
z62y7KLrQmxlrx8AxA3hHTTMZeiglooi4cpQNSzPEVhv44bF6h0NsWVJQubv5zoek9v5jwod5bH
5jvN2I46880K7WSWoya4HBdhcn44gh4lxOpS0j0eexydOlk0oEagW2Otb1C7yB9nUtr4Mq3s1Qg
1hl7cFyBCt6SQV9n4unNPIMSeySmxAF/6Jpz5Cbt5DAnL7fTKg9y0jGCIHdk1fpMMebQbd8EbxJ
UgUVvurhef4F/5Q2SGUX0DbsPi+9e01yFxV6jvnEQaWgw/BNbcNlKIRF51PIu8A+r22qCyl0jNb
V4VKI9oO7CumJ3z4CtVRJPLbmeJ21m1c5fbehfm877Y0zH21ZKd+vpNfXzTIpOcdPoQnwgb6AOW
A1PyuWajuG+hFxPN7bIZ7Wm9NXwouGiA/gTQPNOscv14c+Qz9WWJmsHOf7Sm3TGf8FhCymsirrj
08tf8zfXsYsYSdmrnhuFanxVo+tJObNRTUd5GaANXZw03gwcFfrTuJEe8k4GHHcPzoQ8ywyhU4j
0Umu931gz4tyW/NMJKqMhSrKzKf4rRCl5YCXbta13X0MEAE6zh7+Ja1tkRhmJv2hfoh6+8zh9fi
9juXacqJSgg==
X-Received: by 2002:a17:902:f785:b0:2e9:5eee:e071 with SMTP id d9443c01a7336-2ed837c1fafmr43689945ad.57.1794231616812;
Mon, 09 Nov 2026 05:40:16 -0800 (PST)
X-Mailer: git-send-email 2.47.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/837701
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 61
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 9 Nov 2026 22:40:07 +0900
X-Original-Message-ID: <20261109134009.3871971-1-shiptux@gmail.com>
X-Original-References: <20261109123201.3849065-1-shiptux@gmail.com> <avHIlxUyUj3V4s6U@an3as.eu>