#1112075 mpich: FTBFS on hurd due to fstype type casting

Package:
mpich
Source:
mpich
Description:
Implementation of the MPI Message Passing Interface standard
Submitter:
Drew Parsons
Date:
2025-08-25 23:05:02 UTC
Severity:
normal
Tags:
#1112075#5
Date:
2025-08-25 23:03:04 UTC
From:
To:
mpich 4.3 fails to build on hurd due to lack of HAVE_STRUCT_STATFS_F_FSTYPENAME,
which makes sbuf.st_fstype defined as int instead of char *.

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I./adio/include -I/build/reproducible-path/mpich-4.3.0/src/include -I/build/reproducible-path/mpich-4.3.0/src/include -I./include -I/build/reproducible-path/mpich-4.3.0/src/mpi/romio/include -I/build/reproducible-path/mpich-4.3.0/src/mpl/include -I/build/reproducible-path/mpich-4.3.0/src/mpl/include -I./mpi-io -I/build/reproducible-path/mpich-4.3.0/src/mpi/romio/mpi-io -I./adio/include -I/build/reproducible-path/mpich-4.3.0/src/mpi/romio/adio/include -Wdate-time -D_FORTIFY_SOURCE=2 -fvisibility=hidden -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/mpich-4.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -fcf-protection -DFORTRANUNDERSCORE -DHAVE_ROMIOCONF_H -c adio/common/ad_fstype.c  -fPIC -DPIC -o adio/common/.libs/ad_fstype.o
adio/common/ad_fstype.c: In function 'romio_statfs':
adio/common/ad_fstype.c:370:12: error: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  370 |     fstype = sbuf.st_fstype;
      |            ^
make[4]: *** [Makefile:6343: adio/common/ad_fstype.lo] Error 1
make[4]: Leaving directory '/build/reproducible-path/mpich-4.3.0/src/mpi/romio'


Reported upstream,
https://github.com/pmodels/mpich/issues/7362