编译错误:数组元素的大小不是其对齐方式的倍数

Compilation error: size of array element is not a multiple of its alignment

提问人:Bub Espinja 提问时间:5/18/2023 更新时间:5/18/2023 访问量:282

问:

我正在尝试在 Rocky Linux 9 中使用 GCC 11.3.1 编译 MPICH 3.2,但多次出现以下错误:

error: size of array element is not a multiple of its alignment

在 MPICH 邮件列表中,有人使用 GCC 10 (https://lists.mpich.org/pipermail/discuss/2021-December/006318.html) 编译它,但我想知道是否可以继续使用 GCC 11 启用某些标志或通过任何其他解决方案,因为并不总是可能拥有特定版本的软件。

海湾合作委员会 MPICH GCC11

评论


答: 暂无答案