🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
8 messages
8 total messages Started by Cheng Li Mon, 09 Nov 2026 12:40
Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
#2730
Author: Cheng Li
Date: Mon, 09 Nov 2026 12:40
102 lines
6949 bytes
Source: arb
Version: 7.0+ds-1
Severity: serious
Tags: ftbfs patch

Dear Maintainer,

arb 7.0+ds-1 fails to build from source on i386:

  https://buildd.debian.org/status/fetch.php?pkg=arb&arch=i386&ver=7.0%2Bds-1&stamp=1792765920&raw=0

The visible failure is a link error:

  /usr/bin/i686-linux-gnu-ld.bfd: cannot find adname.o: No such file or directory
  /usr/bin/i686-linux-gnu-ld.bfd: cannot find TreeNode.o: No such file or directory
  make[5]: *** [Makefile:89: ../lib/libARBDB.so] Error 1

but those objects are missing because their compilation failed earlier in the
same parallel build:

  adname.cxx:181:131: error: 'arb_progress::arb_progress(const char*, NUM)
      [with NUM = unsigned int]' is private within this context
  CORE/arb_progress.h:253:38: note: declared private here

There are six such call sites in three files:

  ARB_GDE/GDE_event.cxx:363        -> breaks ARB_GDE.a
  ARBDB/adname.cxx:181, 219, 272   -> breaks libARBDB.so
  ARBDB/TreeNode.cxx:425, 458      -> breaks libARBDB.so

This is not specific to i386, it is specific to 32-bit. CORE/arb_progress.h
makes a template constructor private on purpose, to reject integer types that
could overflow, and then explicitly overloads the wanted ones:

  private:
      // forbid constructing arb_progress with integer types that could overflow in caller code:
      template <typename NUM>          arb_progress(const char *t, NUM n);
      template <typename NUM> explicit arb_progress(NUM n);
  public:
      // explicitely overload wanted ctors:
      explicit arb_progress(char *title) { setup(title, 0); }
      arb_progress(const char *title, unsigned long overall_count) { ... }
      explicit arb_progress(unsigned long overall_count) { ... }

The only public constructor taking a count accepts unsigned long, and all six
call sites pass a size_t:

  adname.cxx:181      tree_count*3                        (printed with %zu)
  adname.cxx:219      config_count                        (printed with %zu)
  adname.cxx:272      colorset_count                      (printed with %zu)
  TreeNode.cxx:425    eliminatedParentLength.size()
  TreeNode.cxx:458    eliminatedParentLength.size()
  GDE_event.cxx:363   dataset.numelements-oldnumelements+1
                      (NA_Alignment::numelements is size_t, GDE_def.h:120)

On LP64 architectures size_t is unsigned long, so the public overload is an
exact match and the code compiles. On ILP32 architectures size_t is unsigned
int, the private template instantiated with NUM = unsigned int is then a
better match than the unsigned long overload, and overload resolution selects
the private one.

arb 6.0.6-8 still built successfully on i386, so this is a regression in
7.0+ds-1.

The patch below adds the matching unsigned int overload, mirroring the
existing unsigned long one:

--- 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(); }

I verified the mechanism and the fix with a minimal reproducer of just that
constructor set (g++ 14.2.0-19, no arb headers involved):

  g++ -m64                -> OK
  g++ -m32                -> is private within this context
  g++ -m32 -DWITH_FIX     -> OK
  g++ -m64 -DWITH_FIX     -> OK

so the added overload fixes 32-bit without changing 64-bit behaviour. I have
not run a full arb build on i386, so the patch is verified at the overload
resolution level only.

Two further notes:

- armhf is affected by the same bug, but it currently fails earlier on the
  bundled RAxML 8.2.3 and -msse3 (#1153055), so this one is masked there.
  Fixing #1153055 will expose it.

- For symmetry the single-argument "explicit arb_progress(unsigned int)" could
  be added as well, but no current call site needs it, so the patch leaves it
  out.

Kind regards,
Cheng Li
Bug#1153516: marked as pending in arb
#2734
Author: Andreas Tille
Date: Mon, 09 Nov 2026 13:10
19 lines
2346 bytes
Control: tag -1 pending

Hello,

Bug #1153516 in arb 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/med-team/arb/-/commit/282faf25205d758741ae6869b395b2a2e7146b4b

------------------------------------------------------------------------
Add matching unsigned int overload, mirroring the existing unsigned long one Closes: #1153516
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1153516
Processed: Bug#1153516 marked as pending in arb
#2737
Author: Debian Bug Tracking System
Date: Mon, 09 Nov 2026 13:10
11 lines
1996 bytes
Processing control commands:

> tag -1 pending
Bug #1153516 [src:arb] arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
Added tag(s) pending.

-- 
1153516: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153516
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Bug#1153055: Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
#2739
Author: Andreas Tille
Date: Mon, 09 Nov 2026 13:30
14 lines
2054 bytes
Hi Cheng Li,

I've applied your patches in Git.  Unfortunately it breaks amd64 builds
as you can see in Salsa CI

   https://salsa.debian.org/med-team/arb/-/jobs/10622098

Any idea what might went wrong?

Kind regards
    Andreas.

-- 
https://fam-tille.de
Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
#2744
Author: Cheng Li
Date: Mon, 09 Nov 2026 13:50
61 lines
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
Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
#2795
Author: Cheng Li
Date: Tue, 10 Nov 2026 07:10
189 lines
12477 bytes
Hi Andreas,

A correction to my last message, and a substantive one. This row

      add unsigned int           ok      ok

was wrong in the i386 column. It came from the 20-line reproducer, not from
a build of arb, and the reproducer did not model enough of the real header.
I have now built arb itself on both architectures. The patch I sent you is
incomplete; please do not apply it as it stands. The complete one is below.

First, why the mistake was possible at all, because it is not only mine.
The i386 buildd log for 7.0+ds-1 contains exactly six errors, all of them
the two-argument form, all in the first two libraries to be built:

    ARB_GDE/GDE_event.cxx:363
    ARBDB/adname.cxx:181, 219, 272
    ARBDB/TreeNode.cxx:425, 458

and then `make[4]: *** Waiting for unfinished jobs....`. The build dies at
ARB_GDE.a and lib/libARBDB.so, so PROBE, NTREE and AWTI are never compiled.
The log is a faithful record of a build that stopped early, not a list of
everything that is wrong on ILP32. Fixing those six sites lets the build get
further, and two more defects appear.

The second one is the same mechanism, one line up in the header. There are
two private templates, not one:

    template <typename NUM>          arb_progress(const char *t, NUM n);
    template <typename NUM> explicit arb_progress(NUM n);

I only published an `unsigned int` partner for the first. These six call
sites pass a single `size_t` and hit the second:

    PROBE/PT_new_design.cxx:1269   arb_progress base_progress(2*bp);
    NTREE/NT_dbrepair.cxx:189      arb_progress progress(species_count);
    NTREE/NT_dbrepair.cxx:267      arb_progress progress(species_count);
    NTREE/NT_dbrepair.cxx:477      arb_progress progress(all);
    NTREE/NT_syncroot.cxx:140      arb_progress progress2(toSyncCount);
    NTREE/NT_tree_cmp.cxx:679      arb_progress compare_progress(steps);

The third has nothing to do with arb_progress, which is why neither of us
looked for it. AWTI/AWTI_export.cxx:208 declares a callback as

    static const char* fake_exported_sequence(GBDATA*, unsigned long *len,
                                              const char**)

but its typedef at ARBDB/arbdb.h:134 is

    typedef const char* (*gb_export_sequence_cb)(GBDATA *gb_species,
                                                 size_t *seq_len,
                                                 GB_ERROR *error);

On LP64 `size_t` and `unsigned long` are the same type, so this is invisible
on amd64. On ILP32 they are not, the function pointer types are
incompatible, and GB_set_export_sequence_hook() is rejected with
"invalid conversion".

With all three in place, the matrix. Every cell is now a real build, not a
reproducer:

                                        amd64    i386
    7.0+ds-1 as released                  ok    FTBFS   (buildd log)
    282faf2, replace unsigned long     FTBFS      --    (your CI 10622098)
    add two-arg unsigned int only         ok    FTBFS   (what I sent you)
    both ctors + the AWTI hook            ok      ok

The last row is sbuild 0.89.3 in unshare mode against sid, 7.0+ds-1 plus the
two patches below, both architectures, built today. Both finished `Status:
successful` and produced the full set of binaries (arb, libarb, libarb-dev,
arb-common, arb-doc). Going by buildd, the last successful i386 build was
6.0.6-8 on 2024-08-24, and 7.0+ds-1 is the only 7.0 attempt there, so this
looks like the first time arb 7.0 has built on i386 at all.

I did not include your RAxML8/SATIVA patch from 0a147b11, because its
condition is `ifeq (,$(filter $(DEB_HOST_ARCH_CPU),i386 amd64))`, so it is a
no-op on both architectures I built. For this question the tree is
equivalent to master.

The amd64 cell is the direct answer to your question about CI job 10622098:
the added overloads do not make anything ambiguous on LP64, because a
non-template exact match beats the private template. What broke amd64 was
replacing the `unsigned long` overload rather than adding to it. Both have
to stay, since call sites use both types -- ARB_GDE/GDE_arbdb_io.cxx:236
passes the `unsigned long numberspecies` declared at GDE_arbdb_io.cxx:49.

If it helps, there is a stronger statement available for amd64: the patch
emits no different code there at all. I first built the same unpatched
source twice, to establish that arb builds reproducibly on this machine --
1827 files across the .debs, byte-identical both times -- and then compared
unpatched against patched. 43 files differ: the installed copy of
arb_progress.h, which is the patch itself; 28 dbgsym .debug files; and 14
binaries and libraries. In all 14, the only sections that differ are
.note.gnu.build-id and .gnu_debuglink. .text, .rodata, .data, .bss, the
symbol tables and the relocations are byte-identical. The build-id moves
because the DWARF line table records arb_progress.h as two lines longer, not
because any instruction changed.

On scope, so that none of the above is read as more than it is.

This is builds, not behaviour. I have not started the GUI or loaded a
database, so nothing here says arb is usable on i386, only that it compiles,
links and packages. There is no autopkgtest to run: arb has no debian/tests
and no Testsuite field. dh_auto_test does execute, but arb's Makefile has no
target it recognises, so it is a no-op. Upstream's UNIT_TESTER is off by
default (UNIT_TESTS := 0 in config.makefile.template) and enabling it would
be a different build configuration from the one the archive ships, so I left
it alone. What did run, as part of the build itself, is PERL_SCRIPTS/test:
31 scripts, all OK on i386. I did not run piuparts.

Separately, and not fixed here: the overflow-recovery path at
CORE/arb_progress.h:188 does `overall_count = 10L*INT_MAX;` to "fake sth
big", but on ILP32 `long` is 32 bits, so that is -10 and the recovery leaves
the counter negative. gcc warns 82 times about it during the i386 build. It
is pre-existing and harmless to the build; I mention it only because it is
in the same header and someone should know.

Finally, and only as an explanation rather than a complaint: the reason this
went unnoticed is probably that c43e7f21 set
SALSA_CI_DISABLE_BUILD_PACKAGE_I386 three weeks ago while debian/control
stayed `Architecture: any`. The archive buildds still build i386, so the bug
is live, but the only i386 build in the review loop is switched off. If you
re-enable that job for this change, it will confirm the last row by itself.

Patches below. The first replaces debian/patches/fix-i386-build.patch as
committed in 282faf2; the second is new.

Kind regards,
Cheng Li


debian/patches/fix-i386-build.patch (replaces the committed version)
====================================================================

Description: Accept 32-bit size_t in the arb_progress constructors
 CORE/arb_progress.h rejects integer types that could overflow in caller code
 by declaring two private constructor templates, and then publishes the wanted
 types explicitly.  Only `unsigned long` is published, which on LP64 happens to
 be `size_t` as well.  On ILP32 `size_t` is `unsigned int`, a distinct type, so
 an exact match against the private template beats the integral conversion to
 the public overload and every call site that passes a `size_t` fails with
 "is private within this context".
 .
 Publish the `unsigned int` variant of both constructors next to the existing
 `unsigned long` ones.  The `unsigned long` overloads must stay: call sites use
 both types, for instance ARB_GDE/GDE_arbdb_io.cxx:236 which passes the
 `unsigned long numberspecies` declared at GDE_arbdb_io.cxx:49.
Author: Cheng Li <shiptux@gmail.com>
Bug-Debian: https://bugs.debian.org/1153516
Forwarded: no
Last-Update: 2026-11-10
--- a/CORE/arb_progress.h
+++ b/CORE/arb_progress.h
@@ -256,7 +256,9 @@
     // 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); }
+    explicit arb_progress(unsigned int overall_count) { arb_assert(overall_count<=LONG_MAX); setup(NULp, overall_count); }
 
     void allow_title_reuse() { used->allow_title_reuse(); }
 

debian/patches/fix-i386-export-sequence-hook.patch (new)
========================================================

Description: Declare the export-sequence hook with size_t, as its typedef says
 gb_export_sequence_cb (ARBDB/arbdb.h:134) takes a `size_t *seq_len`, but the
 test hook in AWTI/AWTI_export.cxx declares its second parameter as
 `unsigned long *`.  On LP64 the two spellings name the same type, so this is
 invisible on amd64.  On ILP32 `size_t` is `unsigned int`, the function pointer
 types are incompatible, and GB_set_export_sequence_hook() is rejected with
 "invalid conversion".
Author: Cheng Li <shiptux@gmail.com>
Bug-Debian: https://bugs.debian.org/1153516
Forwarded: no
Last-Update: 2026-11-10
--- a/AWTI/AWTI_export.cxx
+++ b/AWTI/AWTI_export.cxx
@@ -205,7 +205,7 @@
 class ExportFieldScanner : public AvailableFieldScanner {
     RefPtr<GBDATA> gb_main;
 
-    static const char* fake_exported_sequence(GBDATA*, unsigned long *len, const char**) {
+    static const char* fake_exported_sequence(GBDATA*, size_t *len, const char**) {
         *len = 5;
         return "faked";
     }
Bug#1153516: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
#4058
Author: Andreas Tille
Date: Tue, 24 Nov 2026 11:00
17 lines
2365 bytes
Hi Cheng Li,

Am Mon, Nov 23, 2026 at 04:15:26PM +0900 schrieb Cheng Li:
> Hi Andreas,
> 
> Gentle ping on my 10 Nov follow-up in case it got buried -- I only sent
> it to the bug address without copying you directly:
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153516#25

Sorry for the delay - its uploaded now.

Thanks a lot for you contribution
   Andreas. 

-- 
https://fam-tille.de
Bug#1153516: marked as done (arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private)
#4060
Author: Debian Bug Tracking System
Date: Tue, 24 Nov 2026 11:10
429 lines
21357 bytes
This is a multi-part message in MIME format...

------------=_1795518543-2233817-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Tue, 24 Nov 2026 11:06:29 +0000
with message-id <179551838937.3730287.8543695454192762231@fasolo.debian.org>
and subject line Bug#1153516: fixed in arb 7.0+ds-2
has caused the Debian Bug report #1153516,
regarding arb: FTBFS on 32-bit architectures: arb_progress(const char*, uns=
igned int) is private
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1153516: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1153516
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1795518543-2233817-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 9 Nov 2026 12:32:11 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 105; hammy, 150; neutral, 151; spammy,
	0. spammytokens: hammytokens:0.000-+--armhf, 0.000-+--sk:buildd.,
	0.000-+--UD:buildd.debian.org, 0.000-+--buildddebianorg,
	0.000-+--buildd.debian.org
Return-path: <shiptux@gmail.com>
Received: from mail-yx1-xb12b.google.com ([2607:f8b0:4864:20::b12b]:48626)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_128_GCM:128)
	(Exim 4.96)
	(envelope-from <shiptux@gmail.com>)
	id 1xQOXj-009EJJ-1n
	for submit@bugs.debian.org;
	Mon, 09 Nov 2026 12:32:11 +0000
Received: by mail-yx1-xb12b.google.com with SMTP id 956f58d0204a3-67bf3c6654fso743027d50.1
        for <submit@bugs.debian.org>; Mon, 09 Nov 2026 04:32:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1794227529; x=1794832329; darn=bugs.debian.org;
        h=content-transfer-encoding:mime-version:message-id:date:subject:to
         :from:from:to:cc:subject:date:message-id:reply-to:content-type;
        bh=Vk/ZJIfJOTyZjLEpT1iIkGDM1F6KXft+nXdroJ+bk5g=;
        b=tfF0yAAkmgy1v77768GWzHG2jyehNam2iEpnDv6EzXodsinW/4psCDngcu6gH5qwRi
         29KXBE9dK8XVyI/zbjsboVUyqGSm/a0g3QWEM8Z1Eyo2U+XYNvvFfliOT3hc1x+GkaAh
         9ECvIQTSeCCs1wFEx/aGhnwPhxSwNNRkVpYJEgJolIukNIkC83o/pl5ygoOqXBXvkkLk
         pdKZW8s8Gxqk4Mr7/pybRpsFzexFAIIFRODVbwdDMzPqv89y60Ol7XdSh3LRcCb8lKyx
         lS8UI+u3Hf0f8Xqlx4EYYcrEpH8d6SiFps+OSh8fW30AsfsmMnNl/9hSa06v4I1VKhPq
         KLtA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1794227529; x=1794832329;
        h=content-transfer-encoding:mime-version:message-id:date:subject:to
         :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
         :reply-to:content-type;
        bh=Vk/ZJIfJOTyZjLEpT1iIkGDM1F6KXft+nXdroJ+bk5g=;
        b=i0gphruP+cYX29zb2DRN3FH45vKJG6ABoITjqguQXNPNT1KKb2lUuBqO4xkn3GE2vY
         uSn6KAAgmbzHKs3RADOG2GO7Z6KyoWvvTYmPlmfTpF/qd5dnWypPm9haFUzc6Ndikkpw
         EZdq4W8T4i2tSlJa2Xm66LmG0vcuofwuxD/92bz9lk9GjEy17jxeU1Ku+h3444lmu/BD
         lpwpxkKrkFZwO/ZdTN+25f0M9ntDGIou+pbT9lCGRhRnUYy88Qd9PoI269wR0TchM+IP
         Qm2CY4AE6NdaYW+NgGr3paqfBhH+A+J2DH27fUNuy9AxTYUqDZgdX7wFblWmSEtkClJK
         67Nw==
X-Gm-Message-State: APuU4Z/VOoi1IMVBsgspOlGB0ohS4oi33OQ0lpLgPKcfLbrZNdvplyUq
	7a1OloDOR0uSVs9ME+sNIvw4Cg659fT8Wk350r1QMJBTG9QEQpt9wjUynz9tUA==
X-Gm-Gg: AYBFou1fAzlZhsmojdSK/2rKsLP4DAvyIy+3grGOmGZBaei2znUyf/uUlH+NZMy1nrE
	Nfe+iHALGK8L0UY4Egtj3fdJyCxKWWYHxou5s6cHrSf6CtQpfJhIUDhvxlZaj+0zJqZPAaU1d0i
	sjI1x6UpkhT50mCaPc+N2oVxJmyUIf/nyx4WDvvD/2+KVE1QuLlV+C9jJ+LjSf5T86qMD7XJFgt
	zu97H5gn/nIko44qWpPOPY6Q0u4aK+htCrVtvK0qIcdLOQ8oToDBSpb2tsmqyTJ2Jr0bhATIfBv
	VYf80pHuDjuX1D5ogRcgpRIsYsBkmanVmVGaWNUAFY+a6N5aOQhdIk2zoh/hT3/7O3hLlqDY4BL
	z/g2AOlPc2DX3dGMShvC9JXSRoCeSLz+EaTOY1M147RX4cBHFhx5yV/9WOb18ZxF0aTIr6v9tJl
	Obs5U9JphG53ygkX+H83CwZZ8yjiuFIbOWkWMfv3yh/ulzZKOlPDZjUYDY+SQMkrQTqbJwMOj+4
	j/KImqysMr9YayKzYVGHQ4uIfLnXkDLEzDkfzeUovL+pjK0n/HRGTzok1Iw3u3vR3lQ1khdsdXl
	Ld4ini2ueIDZmIk8lmorfZT8poiFojJcYwLhlU9/ajJH5b49Vf0G0hTPUYgguFwiB99wucy8Tpk
	nHRpDjsJX
X-Received: by 2002:a05:690e:128e:b0:67c:2488:b2de with SMTP id 956f58d0204a3-67c3d7b72cemr2290847d50.3.1794227529367;
        Mon, 09 Nov 2026 04:32:09 -0800 (PST)
Received: from localhost.localdomain ([154.21.199.217])
        by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67c3b97af28sm3813009d50.19.2026.11.09.04.32.06
        for <submit@bugs.debian.org>
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Mon, 09 Nov 2026 04:32:07 -0800 (PST)
From: Cheng Li <shiptux@gmail.com>
To: submit@bugs.debian.org
Subject: arb: FTBFS on 32-bit architectures: arb_progress(const char*, unsigned int) is private
Date: Mon,  9 Nov 2026 21:32:00 +0900
Message-ID: <20261109123201.3849065-1-shiptux@gmail.com>
X-Mailer: git-send-email 2.47.3
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Delivered-To: submit@bugs.debian.org

Source: arb
Version: 7.0+ds-1
Severity: serious
Tags: ftbfs patch

Dear Maintainer,

arb 7.0+ds-1 fails to build from source on i386:

  https://buildd.debian.org/status/fetch.php?pkg=arb&arch=i386&ver=7.0%2Bds-1&stamp=1792765920&raw=0

The visible failure is a link error:

  /usr/bin/i686-linux-gnu-ld.bfd: cannot find adname.o: No such file or directory
  /usr/bin/i686-linux-gnu-ld.bfd: cannot find TreeNode.o: No such file or directory
  make[5]: *** [Makefile:89: ../lib/libARBDB.so] Error 1

but those objects are missing because their compilation failed earlier in the
same parallel build:

  adname.cxx:181:131: error: 'arb_progress::arb_progress(const char*, NUM)
      [with NUM = unsigned int]' is private within this context
  CORE/arb_progress.h:253:38: note: declared private here

There are six such call sites in three files:

  ARB_GDE/GDE_event.cxx:363        -> breaks ARB_GDE.a
  ARBDB/adname.cxx:181, 219, 272   -> breaks libARBDB.so
  ARBDB/TreeNode.cxx:425, 458      -> breaks libARBDB.so

This is not specific to i386, it is specific to 32-bit. CORE/arb_progress.h
makes a template constructor private on purpose, to reject integer types that
could overflow, and then explicitly overloads the wanted ones:

  private:
      // forbid constructing arb_progress with integer types that could overflow in caller code:
      template <typename NUM>          arb_progress(const char *t, NUM n);
      template <typename NUM> explicit arb_progress(NUM n);
  public:
      // explicitely overload wanted ctors:
      explicit arb_progress(char *title) { setup(title, 0); }
      arb_progress(const char *title, unsigned long overall_count) { ... }
      explicit arb_progress(unsigned long overall_count) { ... }

The only public constructor taking a count accepts unsigned long, and all six
call sites pass a size_t:

  adname.cxx:181      tree_count*3                        (printed with %zu)
  adname.cxx:219      config_count                        (printed with %zu)
  adname.cxx:272      colorset_count                      (printed with %zu)
  TreeNode.cxx:425    eliminatedParentLength.size()
  TreeNode.cxx:458    eliminatedParentLength.size()
  GDE_event.cxx:363   dataset.numelements-oldnumelements+1
                      (NA_Alignment::numelements is size_t, GDE_def.h:120)

On LP64 architectures size_t is unsigned long, so the public overload is an
exact match and the code compiles. On ILP32 architectures size_t is unsigned
int, the private template instantiated with NUM = unsigned int is then a
better match than the unsigned long overload, and overload resolution selects
the private one.

arb 6.0.6-8 still built successfully on i386, so this is a regression in
7.0+ds-1.

The patch below adds the matching unsigned int overload, mirroring the
existing unsigned long one:

--- 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(); }

I verified the mechanism and the fix with a minimal reproducer of just that
constructor set (g++ 14.2.0-19, no arb headers involved):

  g++ -m64                -> OK
  g++ -m32                -> is private within this context
  g++ -m32 -DWITH_FIX     -> OK
  g++ -m64 -DWITH_FIX     -> OK

so the added overload fixes 32-bit without changing 64-bit behaviour. I have
not run a full arb build on i386, so the patch is verified at the overload
resolution level only.

Two further notes:

- armhf is affected by the same bug, but it currently fails earlier on the
  bundled RAxML 8.2.3 and -msse3 (#1153055), so this one is masked there.
  Fixing #1153055 will expose it.

- For symmetry the single-argument "explicit arb_progress(unsigned int)" could
  be added as well, but no current call site needs it, so the patch leaves it
  out.

Kind regards,
Cheng Li

------------=_1795518543-2233817-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1153516-close) by bugs.debian.org; 24 Nov 2026 11:06:32 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-101.1 required=4.0 tests=BAYES_00,BODY_RFQ,
	DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FVGT_m_MULTI_ODD,
	HAS_BUG_NUMBER,MD5_SHA1_SUM,MEDS2,PGPSIGNATURE,RCVD_IN_DNSWL_MED,
	SPF_HELO_PASS,SPF_PASS,USER_IN_DKIM_WELCOMELIST autolearn=no
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 114; hammy, 150; neutral, 192; spammy,
	0. spammytokens: hammytokens:0.000-+--HX-Debian:DAK,
	0.000-+--H*rp:D*ftp-master.debian.org, 0.000-+--HX-DAK:process-upload,
	0.000-+--UD:debian.tar.xz, 0.000-+--H*r:sk:fasolo.
Return-path: <envelope@ftp-master.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:55584)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xVoM5-009MVc-1J
	for 1153516-close@bugs.debian.org;
	Tue, 24 Nov 2026 11:06:32 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=fasolo.debian.org,EMAIL=hostmaster@fasolo.debian.org (verified)
	by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xVoM2-0087al-24
	for 1153516-close@bugs.debian.org;
	Tue, 24 Nov 2026 11:06:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=ftp-master.debian.org; s=smtpauto.fasolo; h=Content-Type:Message-Id:Date:
	Subject:MIME-Version:To:Reply-To:From:Cc:Content-Transfer-Encoding:Content-ID
	:Content-Description:In-Reply-To:References;
	bh=7D0XNgX7SaOXVozVBo1Qe62rMblvK8jylyuaV/+PE0s=; b=miYP9nqedbhfU3g3o6iNkYJyN2
	pbNGHsvW8ZcKz3wmdXIM2Rxslgwc2/DNWFWLkSltfEzqAgBHv+BlMwWhFWCoDr3hfcEKpRzvCKoab
	1ikupjDs+7PnPX+J+v33UY4C8VNUsCb/z6egPHZfc0phsh58Zv41sh4ay/v1Dd6CSS6uNomeNiLCh
	BC5UnMBLl22DCgubQ+VxVvZJFC0LjuJQQW44NJUaLNdq29NRDftmLuAP1JUELP7r/WS//fcXDn7+d
	0HACmFUGN7OMajgweMrEokpdSBrpypGtm255QJdJvjRg9kvfJdgCs+bdAC7xjuSCzDgM+NzadABlK
	GgF4kwUA==;
Received: from dak by fasolo.debian.org with local (Exim 4.98.2)
	(envelope-from <envelope@ftp-master.debian.org>)
	id 1xVoM1-0000000FeVP-1m63;
	Tue, 24 Nov 2026 11:06:29 +0000
From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
Reply-To: Andreas Tille <tille@debian.org>
To: 1153516-close@bugs.debian.org
X-DAK: dak process-upload
X-Debian: DAK
X-Debian-Package: arb
Debian: DAK
Debian-Changes: arb_7.0+ds-2_amd64.changes
Debian-Source: arb
Debian-Version: 7.0+ds-2
Debian-Architecture: source all amd64
Debian-Suite: unstable
Debian-Archive-Action: accept
MIME-Version: 1.0
Subject: Bug#1153516: fixed in arb 7.0+ds-2
Date: Tue, 24 Nov 2026 11:06:29 +0000
Message-Id: <179551838937.3730287.8543695454192762231@fasolo.debian.org>
Content-Type: multipart/signed; micalg="pgp-sha256";
 protocol="application/pgp-signature";
 boundary="===============2715552646203342410=="

--===============2715552646203342410==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Source: arb
Source-Version: 7.0+ds-2
Done: Andreas Tille <tille@debian.org>

We believe that the bug you reported is fixed in the latest version of
arb, 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 1153516@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Andreas Tille <tille@debian.org> (supplier of updated arb 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)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 24 Nov 2026 11:18:13 +0100
Source: arb
Binary: arb arb-common arb-dbgsym arb-doc libarb libarb-dbgsym libarb-dev
Architecture: source all amd64
Version: 7.0+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debi=
an.org>
Changed-By: Andreas Tille <tille@debian.org>
Description:
 arb        - phylogenetic sequence analysis suite - main program
 arb-common - phylogenetic sequence analysis suite - common files
 arb-doc    - phylogenetic sequence analysis suite - documentation
 libarb     - phylogenetic sequence analysis suite - libraries
 libarb-dev - phylogenetic sequence analysis suite - development files
Closes: 1153055 1153516
Changes:
 arb (7.0+ds-2) unstable; urgency=3Dmedium
 .
   [ Cheng Li ]
   * Fix bundled RAxML 8.2.3 build
     Closes: #1153055
   * Add matching unsigned int overload, mirroring the existing unsigned
     long one
     Closes: #1153516
 .
   [ Andreas Tille ]
   * Thanks a lot to Cheng Li for his valuable work
Checksums-Sha1:
 b0f5048487193eeec9fa63170b70380b7393d5bb 2519 arb_7.0+ds-2.dsc
 6ff81bc2a41dc631c2ee465501dc27e88d4c83d9 125032 arb_7.0+ds-2.debian.tar.xz
 afac01f07ce2ff207d01fbdd9a0a0513238db8e4 3733512 arb-common_7.0+ds-2_all.deb
 41f27da10f7108540dbb0df18f7b64ffe520d97c 28928144 arb-dbgsym_7.0+ds-2_amd64.=
deb
 1704e6ecf80be0635a5ed077da2538e618b2b09d 332952 arb-doc_7.0+ds-2_all.deb
 7c82125e7f90a5b101690fd9c8cedbd48f92d210 13792 arb_7.0+ds-2_amd64.buildinfo
 9e3ad7376d658de7f5f408adbed22d6f1a7e2e67 3582892 arb_7.0+ds-2_amd64.deb
 266f9640865be6370fecaa3be98aad209d051424 6223920 libarb-dbgsym_7.0+ds-2_amd6=
4.deb
 3d35d55b28d2208d321daff7e7b0fe01bd36553c 949964 libarb-dev_7.0+ds-2_amd64.deb
 acd8367c48c56bb0b2977ba486253cbf46c97109 755208 libarb_7.0+ds-2_amd64.deb
Checksums-Sha256:
 52afa43e762bfb36c505e28051a637ee1a87f2bbc78ca483a67b0e0262942b09 2519 arb_7.=
0+ds-2.dsc
 ba65ab4242ba0611b2b1c9b2a96a9aadf5613f7ae92dd87c03238f103f7debb0 125032 arb_=
7.0+ds-2.debian.tar.xz
 970ebcc3af1f8eedf37d647a2f0f35dce54c57fbe5e2a2111651654581d308d6 3733512 arb=
-common_7.0+ds-2_all.deb
 b0d0f4272bf64c00b9c833d6eab997984cccf1f5e300a35573edc81c235aea9c 28928144 ar=
b-dbgsym_7.0+ds-2_amd64.deb
 fc6742cb363e8de0593130e7f594294bc40b5111b68d3f8891a31681dd3c9142 332952 arb-=
doc_7.0+ds-2_all.deb
 93856fefc2c99e68208e32e683cc4bfb5a3463bd2edbbbf9e40a03f495088fd4 13792 arb_7=
.0+ds-2_amd64.buildinfo
 f7fba8f41ff9dcf4a1e8755d773fbe10d7759d1a89b15c5c55cf6a6b2deca4ab 3582892 arb=
_7.0+ds-2_amd64.deb
 8894f855a1d29eaeffc233f87679d7fa7d468a96193304d47098d8b20b159641 6223920 lib=
arb-dbgsym_7.0+ds-2_amd64.deb
 df91cf48104754605000ba88b3c961e68f1819e496cb8a591eda90fd8445b55f 949964 liba=
rb-dev_7.0+ds-2_amd64.deb
 ac3628f4a18865566b25a4ad8abe908acc5ffb1e7939c9491f637c82701769bf 755208 liba=
rb_7.0+ds-2_amd64.deb
Files:
 53c0dd0b813712db6ec727f962c0743b 2519 non-free/science optional arb_7.0+ds-2=
.dsc
 6cbdb26e5fafa4821ccffb613c25c514 125032 non-free/science optional arb_7.0+ds=
-2.debian.tar.xz
 41cb16f45d34514a62710c34fa305ea9 3733512 non-free/science optional arb-commo=
n_7.0+ds-2_all.deb
 fe65b704cc56052336d8b4b1f805a576 28928144 non-free/debug optional arb-dbgsym=
_7.0+ds-2_amd64.deb
 21040ad51f3ea9a43b2cf1f247d789bc 332952 non-free/doc optional arb-doc_7.0+ds=
-2_all.deb
 91fd7192ac5715c0b393aad805e9522c 13792 non-free/science optional arb_7.0+ds-=
2_amd64.buildinfo
 0de3bb0e62560ce83f74c36dc3a930ba 3582892 non-free/science optional arb_7.0+d=
s-2_amd64.deb
 7f2a38ac280ea7205f5fb0f71a1781b2 6223920 non-free/debug optional libarb-dbgs=
ym_7.0+ds-2_amd64.deb
 3e74ab20c2da27a05c120dd5b8bd77cc 949964 non-free/libdevel optional libarb-de=
v_7.0+ds-2_amd64.deb
 0d824bc15f4585e974b85d0ba996d083 755208 non-free/science optional libarb_7.0=
+ds-2_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEE8fAHMgoDVUHwpmPKV4oElNHGRtEFAmsFa6IRHHRpbGxlQGRl
Ymlhbi5vcmcACgkQV4oElNHGRtFMXg//YQwP8f9cXcPyqAPLk0aOmppVvxz1gxKL
Onmf1+wNCjF4vjUyZCG7OYsNatsLJuUPVruq8m3CaITTxBe1eJcBaJE9nZuznl0O
OY+kVq0wqOOgku5/sVhObuBBmxKwRc39Ht2C14En4zq7naub6mQEgHs/Qz3lI6Fr
G2e8X8klZczxUNF/Tj/JdehY8GwbydGK0dVRSgUKziYs0YXdyg4Q0C75UPpTe+SM
FMU6YR3Sdvb1GTCIvfiV08yTOQncUJ7YAAfLEjwGolK7KhBXhE8LJdPYZASwQyfs
HD5qcxZaVoc05TDcz6ZSz/+oFphTZ2tJj3EQ7VGWLQS4M4CHGl4BSsGXwJTysCfj
+4+VAnSsHDP+N9qK14K2xuLlHQg3ucMBn1LpmN1Ay9MNgviNUdV6wHng+DvUciKG
Y70NWELaUMd/CTjqeS+sW70+wf1PHrWRSfn7M40bOjmP+tdQx1pyjHo62xg/9Deo
LwzgYmXjj40pVNzQNPvDVyltL8nLPvglP/CL+wNI1Vns2PEoACAfMLt7zo2mBAbp
WiXVj+6xx2fOXYeicrsDL1PoZeYfUB4T59tIEAo5A/h9xtUWKOvpYkDQDCmJRDru
cMCdzZkaefV9KLg3UtNJGhXTp0qW0H2gUAGCtn+KpmXU9vftK0SbOktY91AbGz/h
K5X5krfqFSw=3D
=3DGiid
-----END PGP SIGNATURE-----


--===============2715552646203342410==
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQTziqJOuF8J+ZI8pJSb9qggYcy5IQUCawVvtQAKCRCb9qggYcy5
IVdMAQC7fjfuvCkyqOssD/ucS349ZCAR+1HYh0gA4z/PGLEDBwEAksj/7w+wHIoN
UGre/R8t5/4VHf5cUGKNA3wH5pLqNAE=
=fYXG
-----END PGP SIGNATURE-----

--===============2715552646203342410==--
------------=_1795518543-2233817-0--
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