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
System information
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