flux-framework / flux-pmix

flux shell plugin to bootstrap openmpi v5+
GNU Lesser General Public License v3.0
2 stars 4 forks source link

rhel 9 compilation errors #100

Open garlick opened 3 months ago

garlick commented 3 months ago

Problem: rpm build of flux-pmix fails in our rhel 9 build farm with

Making all in src/upmi
make[1]: Entering directory '/builddir/build/BUILD/flux-pmix-0.5.0/src/upmi'
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
  CC       pmix_la-pmix.lo
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
../../libtool: line 1747: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
pmix.c: In function 'op_initialize.part.0':
pmix.c:175:10: error: 'PMIx_Get' reading 512 bytes from a region of size 14 [-Werror=stringop-overread]
  175 |     rc = PMIx_Get (&proc, PMIX_JOB_SIZE, NULL, 0, &val);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pmix.c:175:10: note: referencing argument 2 of type 'const char *'
In file included from pmix.c:21:
/usr/include/pmix.h:203:27: note: in a call to function 'PMIx_Get'
  203 | PMIX_EXPORT pmix_status_t PMIx_Get(const pmix_proc_t *proc, const pmix_key_t key,
      |                           ^~~~~~~~
cc1: all warnings being treated as errors
make[1]: *** [Makefile:539: pmix_la-pmix.lo] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/flux-pmix-0.5.0/src/upmi'
make: *** [Makefile:483: all-recursive] Error 1