Ubuntun 22.04 LTS 安装mpich出错,如何解决?

Ubuntun 22.04 LTS 安装mpich出错

checking whether gfortran allows mismatched arguments.no
configure: error: The Fortran compiler gfortran will not compile files that call
the same routine with arguments of different types.

更换过gfortran-9后仍报错

从提示上看,这是某个代码有问题,不能正确链接。跟gfortran无关。
你可以:
1、找到出错的代码,手动修改;
2、找到编译链接的命令,给gfortran加上 -Wno-argument-mismatch
3、换一个MPI库,比如 intel MPI