<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">
<div>
<div class="">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Dear <a href="http://mpich.org/" class="">
mpich.org</a>, </div>
</div>
</div>
<div><br class="">
</div>
I apologize. I sent this email out with the wrong subject matter. Here is the correct subject. Thank you.<br class="">
<font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font>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:<br class="">
<font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font></div>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px">
<div>./configure FFLAGS=-fallow-argument-mismatch --prefix=/Users/douglasdommermuth/mpich2/mpich2-install | & tee c.txt</div>
<div>make clean</div>
<div>
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">make V=1 | & tee m.txt </div>
</div>
</div>
</div>
<div><font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font></div>
</blockquote>
<div>I get the following error:<br class="">
<font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font></div>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px">
<div>CC src/mpi/attr/lib_libpmpi_la-attr_delete.lo</div>
<div>In file included from ./src/mpid/ch4/netmod/include/../ofi/ofi_impl.h:10,</div>
<div> from ./src/mpid/ch4/netmod/include/../ofi/ofi_am.h:8,</div>
<div> from ./src/mpid/ch4/netmod/include/../ofi/netmod_inline.h:9,</div>
<div> from ./src/mpid/ch4/netmod/include/netmod_impl.h:1644,</div>
<div> from ./src/mpid/ch4/include/mpidch4.h:322,</div>
<div> from ./src/mpid/ch4/include/mpidpost.h:10,</div>
<div> from ./src/include/mpiimpl.h:241,</div>
<div> from src/mpi/attr/attr_delete.c:6:</div>
<div>./src/mpid/ch4/netmod/include/../ofi/ofi_types.h:326:5: error: size of array element is not a multiple of its alignment</div>
<div> 326 | MPIDI_OFI_cacheline_mutex_t mutexes[MAX_OFI_MUTEXES];</div>
<div> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~</div>
<div>make[2]: *** [src/mpi/attr/lib_libpmpi_la-attr_delete.lo] Error 1</div>
<div>make[1]: *** [all-recursive] Error 1</div>
<div>make: *** [all] Error 2</div>
</blockquote>
<div>
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal">
<div class=""><span class="" style="font-variant-ligatures:no-common-ligatures"><br class="">
</span></div>
</div>
</div>
</div>
</div>
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>.<br class="">
<font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font>I have not tried an earlier version of gcc.<br class="">
<font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font>Compressed versions of c.txt, m.txt, and config log files are attached.<br class="">
<font color="#5856d6" class=""><span class="" style=""><br class="">
</span></font>Thank you, Doug.<br class="">
<font color="#5856d6" class=""><br class="">
<br class="">
<span class="" style=""><br class="">
</span></font>
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
</div>
</div>
</div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div class="x_AppleOriginalContents"></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div class="x_AppleOriginalContents"></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div class="x_AppleOriginalContents"></div>
</div>
<div style="word-wrap:break-word; line-break:after-white-space">
<div class="x_AppleOriginalContents"></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div></div>
<br class="">
</div>
</body>
</html>