[MacPorts] #68310: incompatible function pointer types passing ssize_t

MacPorts noreply at macports.org
Sun Oct 1 12:26:57 UTC 2023


#68310: incompatible function pointer types passing ssize_t
-------------------------+---------------------------
 Reporter:  platipodium  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:  Sonoma       |       Port:  mpich-clang16
-------------------------+---------------------------
 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.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/68310>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list