[mpich-discuss] Installation error: size of array element is not a multiple of its alignment

Douglas G Dommermuth dgd at mit.edu
Wed Dec 29 11:40:27 CST 2021


Dear mpich.org<http://mpich.org/>,

I apologize.  I sent this email out with the wrong subject matter.  Here is the correct subject.   Thank you.

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:

./configure FFLAGS=-fallow-argument-mismatch --prefix=/Users/douglasdommermuth/mpich2/mpich2-install | & tee c.txt
make clean
make V=1 | & tee m.txt

I get the following error:

CC       src/mpi/attr/lib_libpmpi_la-attr_delete.lo
In file included from ./src/mpid/ch4/netmod/include/../ofi/ofi_impl.h:10,
                 from ./src/mpid/ch4/netmod/include/../ofi/ofi_am.h:8,
                 from ./src/mpid/ch4/netmod/include/../ofi/netmod_inline.h:9,
                 from ./src/mpid/ch4/netmod/include/netmod_impl.h:1644,
                 from ./src/mpid/ch4/include/mpidch4.h:322,
                 from ./src/mpid/ch4/include/mpidpost.h:10,
                 from ./src/include/mpiimpl.h:241,
                 from src/mpi/attr/attr_delete.c:6:
./src/mpid/ch4/netmod/include/../ofi/ofi_types.h:326:5: error: size of array element is not a multiple of its alignment
  326 |     MPIDI_OFI_cacheline_mutex_t mutexes[MAX_OFI_MUTEXES];
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/mpi/attr/lib_libpmpi_la-attr_delete.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

An online search indicates that others are experiencing this error with gcc 11. For example, here https://github.com/JayDDee/cpuminer-opt/issues/313, https://gitlab.com/xonotic/darkplaces/-/issues/363, and https://github.com/relic-toolkit/relic/issues/202.

I have not tried an earlier version of gcc.

Compressed versions of c.txt, m.txt, and config log files are attached.

Thank you, Doug.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20211229/33560fd9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m.txt.gz
Type: application/x-gzip
Size: 70675 bytes
Desc: m.txt.gz
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20211229/33560fd9/attachment-0005.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c.txt.gz
Type: application/x-gzip
Size: 17361 bytes
Desc: c.txt.gz
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20211229/33560fd9/attachment-0006.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log.gz
Type: application/x-gzip
Size: 60097 bytes
Desc: config.log.gz
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20211229/33560fd9/attachment-0007.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src_pm_hydra_config.log.gz
Type: application/x-gzip
Size: 35053 bytes
Desc: src_pm_hydra_config.log.gz
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20211229/33560fd9/attachment-0008.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: src_mpl_config.log.gz
Type: application/x-gzip
Size: 14957 bytes
Desc: src_mpl_config.log.gz
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20211229/33560fd9/attachment-0009.gz>


More information about the discuss mailing list