<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear <a href="http://mpich.org" class="">
mpich.org</a>,
<div class=""><br class="">
</div>
<div class="">I am getting an error installing mpich-3.4.3 on a MacBook Air (M1,2020) with macOS Monterey 12.1, gcc 11.2.0, g++ 11.2.0, and gfortran 11.2.0.  I used the following commands:</div>
<div class=""><br class="">
</div>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px">
<div class="">./configure FFLAGS=-fallow-argument-mismatch --prefix=/Users/douglasdommermuth/mpich2/mpich2-install | & tee c.txt</div>
<div class="">make clean</div>
<div class="">make V=1 | & tee m.txt </div>
</blockquote>
<div class=""><br class="">
</div>
<div class="">I get the following error:</div>
<div class=""><br class="">
</div>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px">
<div class="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">  CC       src/mpi/attr/lib_libpmpi_la-attr_delete.lo</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">In file included from ./src/mpid/ch4/netmod/include/../ofi/ofi_impl.h:10,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from ./src/mpid/ch4/netmod/include/../ofi/ofi_am.h:8,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from ./src/mpid/ch4/netmod/include/../ofi/netmod_inline.h:9,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from ./src/mpid/ch4/netmod/include/netmod_impl.h:1644,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from ./src/mpid/ch4/include/mpidch4.h:322,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from ./src/mpid/ch4/include/mpidpost.h:10,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from ./src/include/mpiimpl.h:241,</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">                 from src/mpi/attr/attr_delete.c:6:</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">./src/mpid/ch4/netmod/include/../ofi/ofi_types.h:326:5: error: size of array element is not a multiple of its alignment</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">  326 |     MPIDI_OFI_cacheline_mutex_t mutexes[MAX_OFI_MUTEXES];</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">make[2]: *** [src/mpi/attr/lib_libpmpi_la-attr_delete.lo] Error 1</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">make[1]: *** [all-recursive] Error 1</span></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><span class="" style="font-variant-ligatures:no-common-ligatures">make: *** [all] Error 2</span></div>
<div class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></div>
</div>
</div>
</blockquote>
<div class="">An online search indicates that others are experiencing this error with gcc 11. For example, here <a href="https://github.com/JayDDee/cpuminer-opt/issues/313" class="">https://github.com/JayDDee/cpuminer-opt/issues/313</a>, <a href="https://gitlab.com/xonotic/darkplaces/-/issues/363" class="">https://gitlab.com/xonotic/darkplaces/-/issues/363</a>,
 and <a href="https://github.com/relic-toolkit/relic/issues/202" class="">https://github.com/relic-toolkit/relic/issues/202</a>.</div>
<div class=""><br class="">
</div>
<div class="">I have not tried an earlier version of gcc.</div>
<div class=""><br class="">
</div>
<div class="">Compressed versions of c.txt, m.txt, and config log files are attached.</div>
<div class=""><br class="">
</div>
<div class="">Thank you, Doug.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class=""><br class="">
</div>
</div>
</body>
</html>