From nobody Sat May 20 18:30:58 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QNsjH24dNz4CMsg for ; Sat, 20 May 2023 18:30:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QNsjH0Qfjz3nMW for ; Sat, 20 May 2023 18:30:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684607459; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=kUwT/ZAaBf2ZpjZw8lbnvjgBOekPXaiLr7ps21Xsw5o=; b=SAFOnQFnYj1ChXM3XQmW4Cri70TXcsyW4JvSr8fN4l9L0oAsMm828RrvSXZMc6xwZQ7fH4 gOYVWPBWCaAN0qLBMivONr7w/D8CNBdlY8i3PvKZu8aftnms7SPsWBr5En69stsqXIJCT5 DlRbI/ztZV3vYdgjwy3qaqjHJysTShMTY2rdxopMqlNlY3aMhbM5fRjSnar83JIzG1CYvQ rXLbD/4zCLswr7QR4VzprnwKU4rYTiWXGnboFTJTSqeoFr0+75XQs4tSCZP9VIf0SlmkJh h5QRJcMNRsJVUT9MotJbvTLwd56QRFhXv0uW/XswMapdrzG2gd/Qky0fBjMmgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684607459; a=rsa-sha256; cv=none; b=JY3WUsBV1X6ce0FdHZpP6qR618W+CT6JD2HQ9YKl4TAmdAVSXwxrs4JjREt8rMXRmY2c9v 0E/6kpYUvcHB6IHBrTq5krnTYBpC44przS3Rcc8Ny5sjtOGMXtywx0l1w5l1FFPmaiLl7N 11YKotl1JcKp7daAGdnEAM8XZzmOYmf7nfMyvymQRonZ8Lw8VE95nTtnRPPldmgWxkYyqk cVfPsIe0O47mah/mrrh5J2r8jMc3rvz2hkw0zEHcogIBDy+3/bzMSbCQZ/r4KtMlPjB9wp DST0HWJp5llxY5zs9RDO62SiqRcV2+lc3FpgzbfXjJS/v3NisFd43yjjuZcecg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QNsjG6J5FzL8M for ; Sat, 20 May 2023 18:30:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34KIUwNu097305 for ; Sat, 20 May 2023 18:30:58 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34KIUwDr097304 for ports-bugs@FreeBSD.org; Sat, 20 May 2023 18:30:58 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271537] net/libfabric: fix build with clang 16 on i386 Date: Sat, 20 May 2023 18:30:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yuri@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271537 Bug ID: 271537 Summary: net/libfabric: fix build with clang 16 on i386 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: dim@FreeBSD.org Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Clang 16 has a new error about incompatible function types, which shows up when building net/libfabric (on i386): prov/hook/src/hook_domain.c:124:12: error: incompatible function pointer types passing 'ssize_t (struct fid_ep *, size_t)' (aka 'int (struct fid_ep = *, unsigned int)') to parameter of type 'ssize_t (*)(struct fid_ep *, uint64_t= )' (aka 'int (*)(struct fid_ep *, unsigned long long)') [-Wincompatible-function-pointer-types] hook_credit_handler); ^~~~~~~~~~~~~~~~~~~ prov/hook/src/hook_domain.c:150:17: error: incompatible function pointer types initializing 'void (*)(struct fid_ep *, uint64_t)' (aka 'void (*)(str= uct fid_ep *, unsigned long long)') with an expression of type 'void (struct fi= d_ep *, size_t)' (aka 'void (struct fid_ep *, unsigned int)') [-Wincompatible-function-pointer-types] .add_credits =3D hook_add_credits, ^~~~~~~~~~~~~~~~ prov/hook/src/hook_domain.c:152:22: error: incompatible function pointer types initializing 'void (*)(struct fid_domain *, ssize_t (*)(struct fid_ep= *, uint64_t))' (aka 'void (*)(struct fid_domain *, int (*)(struct fid_ep *, unsigned long long))') with an expression of type 'void (struct fid_domain = *, ssize_t (*)(struct fid_ep *, size_t))' (aka 'void (struct fid_domain *, int (*)(struct fid_ep *, unsigned int))') [-Wincompatible-function-pointer-type= s] .set_send_handler =3D hook_set_send_handler, ^~~~~~~~~~~~~~~~~~~~~ The problem is that the 'credits' parameter used in these functions is size_t in some cases, but uint64_t in other cases. On LP64 architectures this does not result in any errors, but on e.g. i386 you get the above. Make the 'credits' parameter uint64_t everywhere to fix this issue. --=20 You are receiving this mail because: You are the assignee for the bug.=