[MacPorts] #70418: mpich fails to build with gcc14: error: passing argument 3 of 'scandir' from incompatible pointer type
MacPorts
noreply at macports.org
Mon Jul 22 11:24:56 UTC 2024
#70418: mpich fails to build with gcc14: error: passing argument 3 of 'scandir'
from incompatible pointer type
--------------------------+--------------------------------
Reporter: barracuda156 | Owner: eborisch
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: mpich, mpich-gcc14
--------------------------+--------------------------------
We got this issue here as well:
{{{
libtool: compile: /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-I./include -D_GNU_SOURCE -D__USE_XOPEN2K8 -DSYSCONFDIR=\"/opt/local/etc
/mpich-gcc14\" -DRDMADIR=\"@rdmadir@\" -DPROVDLDIR=\"/opt/local/lib/mpich-
gcc14/libfabric\" -I./prov/hook/include -I./prov/hook/hook_debug/include
-I./prov/hook/hook_hmem/include -I./prov/hook/dmabuf_peer_mem/include
-isystem/opt/local/include/LegacySupport -Wall -O2 -DNDEBUG -pipe -arch
ppc -c src/var.c -fno-common -DPIC -o src/.libs/libfabric_la-var.o
src/fabric.c: In function 'ofi_ini_dir':
src/fabric.c:668:36: error: passing argument 3 of 'scandir' from
incompatible pointer type [-Wincompatible-pointer-types]
668 | n = scandir(dir, &liblist, lib_filter, alphasort);
| ^~~~~~~~~~
| |
| int (*)(const struct dirent *)
In file included from /opt/local/include/LegacySupport/dirent.h:27,
from src/fabric.c:43:
/usr/include/dirent.h:129:5: note: expected 'int (*)(struct dirent *)' but
argument is of type 'int (*)(const struct dirent *)'
129 | int (*)(struct dirent *), int (*)(const void *, const void *))
__DARWIN_INODE64(scandir);
| ^~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile: /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I.
-I./include -D_GNU_SOURCE -D__USE_XOPEN2K8 -DSYSCONFDIR=\"/opt/local/etc
/mpich-gcc14\" -DRDMADIR=\"@rdmadir@\" -DPROVDLDIR=\"/opt/local/lib/mpich-
gcc14/libfabric\" -I./prov/hook/include -I./prov/hook/hook_debug/include
-I./prov/hook/hook_hmem/include -I./prov/hook/dmabuf_peer_mem/include
-isystem/opt/local/include/LegacySupport -Wall -O2 -DNDEBUG -pipe -arch
ppc -c src/perf.c -o src/libfabric_la-perf.o >/dev/null 2>&1
make[3]: *** [src/libfabric_la-fabric.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70418>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list