Opened 12 months ago
Closed 9 months ago
#68310 closed defect (fixed)
mpich-clang16 @4.1.1: incompatible function pointer types passing ssize_t
Reported by: | platipodium (Carsten Lemmen) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | sonoma | Cc: | eborisch (Eric A. Borisch), mascguy (Christopher Nielsen), aaschwanden (Andy Aschwanden) |
Port: | mpich-clang16 |
Description
Building libfabric as part of mpich-clang16 fails on macOS 14
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_mpich/mpich-clang16/work/mpich-4.1.1/modules/libfabric make ^ prov/hook/src/hook_domain.c:124:12: error: incompatible function pointer types passing 'ssize_t (struct fid_ep *, size_t)' (aka 'long (struct fid_ep *, unsigned long)') to parameter of type 'ssize_t (*)(struct fid_ep *, uint64_t)' (aka 'long (*)(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 (*)(struct fid_ep *, unsigned long long)') with an expression of type 'void (struct fid_ep *, size_t)' (aka 'void (struct fid_ep *, unsigned long)') [-Wincompatible-function-pointer-types] .add_credits = 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 *, long (*)(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 *, long (*)(struct fid_ep *, unsigned long))') [-Wincompatible-function-pointer-types] .set_send_handler = hook_set_send_handler, ^~~~~~~~~~~~~~~~~~~~~ 4 warnings and 3 errors generated.
Change History (8)
comment:1 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | sonoma added; Sonoma removed |
---|---|
Summary: | incompatible function pointer types passing ssize_t → mpich-clang16 @4.1.1: incompatible function pointer types passing ssize_t |
comment:2 Changed 10 months ago by aaschwanden (Andy Aschwanden)
Cc: | aaschwanden added |
---|
comment:3 Changed 10 months ago by aaschwanden (Andy Aschwanden)
comment:4 Changed 10 months ago by eborisch (Eric A. Borisch)
Is this still the case for you with 4.1.2?
comment:5 Changed 10 months ago by eborisch (Eric A. Borisch)
Possible solution (see patch attached to ticket): https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271537
I don't have time to research this, but if someone else would like to give it a shot...
comment:6 Changed 10 months ago by eborisch (Eric A. Borisch)
I think 4.1.2 may have included this fix, based on a quick spot-check.
comment:7 follow-up: 8 Changed 10 months ago by platipodium (Carsten Lemmen)
Both mpich-clang16
and mpich-clang17
(version4.1.2) install fine for me now. Seems fixed.
comment:8 Changed 9 months ago by mascguy (Christopher Nielsen)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Replying to platipodium:
Both
mpich-clang16
andmpich-clang17
(version4.1.2) install fine for me now. Seems fixed.
Great, glad it's fixed!
Note: See
TracTickets for help on using
tickets.
The same error occurs for
mpich-clang17
.