• Bug#1102068: libfabric: FTBFS on 32-bit arches: ofi_cma.h: error: passi

    From Drew Parsons@21:1/5 to All on Fri Apr 4 15:10:01 2025
    Source: libfabric
    Severity: serious
    Tags: ftbfs
    Justification: ftbfs
    X-Debbugs-Cc: debian-amd64@lists.debian.org, debian-arm@lists.debian.org, debian-hppa@lists.debian.org, debian-powerpc@lists.debian.org, debian-superh@lists.debian.org
    User: debian-arm@lists.debian.org
    Usertags: armel armhf
    User: debian-qa@lists.debian.org
    Usertags: i386
    User: debian-hppa@lists.debian.org
    Usertags: hppa
    User: debian-powerpc@lists.debian.org
    Usertags: powerpc
    User: debian-superh@lists.debian.org
    Usertags: sh4
    User: debian-x32@lists.debian.org
    Usertags: x32

    libfabric is failing to build on 32-bit architectures. The failure is
    blocking migration to testing, and will therefore block mpich migration.

    e.g. armhf https://buildd.debian.org/status/fetch.php?pkg=libfabric&arch=armhf&ver=2.0.0-4&stamp=1742062166&raw=0

    /bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I./include -D_GNU_SOURCE -D__USE_XOPEN2K8 -DSYSCONFDIR=\"/etc\" -DRDMADIR=\"@rdmadir@\" -DPROVDLDIR=\"/usr/lib/arm-linux-gnueabihf/libfabric\" -I./prov/sockets/include -I./prov/
    sockets -I./prov/lpp/include -I./prov/lpp -I./prov/verbs/include -I./prov/verbs/include/linux -I./prov/verbs/src/ep_rdm -I./prov/verbs/src/ep_dgram -I./prov/lnx/include -I./prov/hook/include -I./prov/hook/perf/include -I./prov/hook/hook_debug/
    include -I./prov/hook/hook_hmem/include -I./prov/hook/dmabuf_peer_mem/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -O2 -DNDEBUG -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
    build/reproducible-path/libfabric-2.0.0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -c -o prov/hook/src/src_libfabric_la-hook.lo `test -f 'prov/hook/src/hook.c' || echo './'`prov/hook/src/hook.c
    In file included from ./include/ofi_util.h:59,
    from src/fabric.c:47:
    ./include/ofi_mr.h: In function 'ofi_mr_get_iov_from_dmabuf': ./include/ofi_mr.h:345:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    345 | iov[i].iov_base = (void *) (
    | ^
    In file included from ./include/ofi_util.h:61:
    ./include/ofi_mem.h: In function 'smr_freestack_init': ./include/ofi_mem.h:281:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    281 | next_aligned_addr = ofi_get_aligned_size((( (uint64_t) fs) +
    | ^ ./include/ofi_mem.h:283:54: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    283 | fs->entry_base_offset = next_aligned_addr - ((uint64_t) fs);
    | ^
    In file included from ./include/ofi_shm_p2p.h:37,
    from src/fabric.c:54:
    ./include/ofi_cma.h: In function 'cma_copy':
    ./include/ofi_cma.h:67:40: error: passing argument 2 of 'ofi_consume_iov' from incompatible pointer type [-Wincompatible-pointer-types]
    67 | ofi_consume_iov(local, &local_cnt, (size_t) ret);
    | ^~~~~~~~~~
    | |
    | long unsigned int *
    In file included from ./include/ofi_cma.h:41:
    ./include/ofi_iov.h:204:51: note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 'long unsigned int *'


    This might be a gcc-15 error, which tightened type checking.

    Upstream has released v2.1.0 with gcc-15 fixes, though I don't know
    if it fixes this 32-bit build error.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Apr 15 20:30:01 2025
    This is a multi-part message in MIME format...

    Your message dated Tue, 15 Apr 2025 18:22:39 +0000
    with message-id <E1u4kvf-009PmH-Ji@fasolo.debian.org>
    and subject line Bug#1102068: fixed in mpich 4.3.0-6
    has caused the Debian Bug report #1102068,
    regarding libfabric: FTBFS on 32-bit arches: ofi_cma.h: error: passing argument 2 of 'ofi_consume_iov' from incompatible pointer type
    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.)


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

    Received: (at submit) by bugs.debian.org; 4 Apr 2025 13:07:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-110.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST,XMAILER_REPORTBUG autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 58; hammy, 150; neutral, 130; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <dparsons@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:20
  • From Debian Bug Tracking System@21:1/5 to All on Wed Apr 16 11:00:01 2025
    Processing control commands:

    tags -1 ftbfs
    Bug #1102068 {Done: Alastair McKinstry <mckinstry@debian.org>} [src:libfabric] libfabric: FTBFS on 32-bit arches: ofi_cma.h: error: passing argument 2 of 'ofi_consume_iov' from incompatible pointer type
    Ignoring request to alter tags of bug #1102068 to the same tags previously set
    reopen -1
    Bug #1102068 {Done: Alastair McKinstry <mckinstry@debian.org>} [src:libfabric] libfabric: FTBFS on 32-bit arches: ofi_cma.h: error: passing argument 2 of 'ofi_consume_iov' from incompatible pointer type
    'reopen' may be inappropriate when a bug has been closed with a version;
    all fixed versions will be cleared, and you may need to re-add them.
    Bug reopened
    No longer marked as fixed in versions mpich/4.3.0-6.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Mon May 12 15:40:02 2025
    Processing control commands:

    tags -1 ftbfs patch
    Bug #1102068 [src:libfabric] libfabric: FTBFS on 32-bit arches: ofi_cma.h: error: passing argument 2 of 'ofi_consume_iov' from incompatible pointer type
    Added tag(s) patch.

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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed May 14 13:10:01 2025
    This is a multi-part message in MIME format...

    Your message dated Wed, 14 May 2025 11:05:05 +0000
    with message-id <E1uF9v7-00EoLK-1c@fasolo.debian.org>
    and subject line Bug#1102068: fixed in libfabric 2.1.0-1.1
    has caused the Debian Bug report #1102068,
    regarding libfabric: FTBFS on 32-bit arches: ofi_cma.h: error: passing argument 2 of 'ofi_consume_iov' from incompatible pointer type
    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.)


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

    Received: (at submit) by bugs.debian.org; 4 Apr 2025 13:07:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-110.2 required=4.0 tests=BAYES_00,DKIMWL_WL_HIGH,
    DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,
    SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,USER_IN_DKIM_WELCOMELIST,
    USER_IN_DKIM_WHITELIST,XMAILER_REPORTBUG autolearn=ham
    autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02 X-Spam-Bayes: score:0.0000 Tokens: new, 58; hammy, 150; neutral, 130; spammy,
    0. spammytokens:
    hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
    0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
    0.000-+--H*RT:311, 0.000-+--H*RT:108
    Return-path: <dparsons@debian.org>
    Received: from stravinsky.debian.org ([2001:41b8:20