LLNL / UnifyFS

UnifyFS: A file system for burst buffers
Other
103 stars 31 forks source link

Error building with GCC11 on Summit with PMIx enabled #715

Closed rgmiller closed 1 year ago

rgmiller commented 2 years ago

System information

Type Version/Name
Operating System RHEL
OS Version 8.2
Architecture ppc64le
UnifyFS Version Git dev branch

Describe the problem you're observing

When building UnifyFS on Summit with PMIx enabled, GCC 11 will issue a warning about a size mismatch on one of the parameters.

The problem is that the parameter is defined as 'const char[512]`, but the caller is expected to pass in one of several #defined strings, all of which are less than 512 bytes. GCC 11 complains about possibly reading 512 bytes from an area that is smaller than that.

(The bug might be applicable to other implementations of PMIx. It is notably NOT a problem for OpenPMIx implementation, because that implementation defines the parameter in question slightly differently.)

Describe how to reproduce the problem

Configure UnifyFS to enable PMIx and use gcc 11.x as the compiler Attempt to build on a system that uses IBM's Spectrum MPI

Include any warning or errors or releveant debugging data