---
title: 编译abinit时make报错
description: "编译abinit时make报错，报错信息为：“File 'mpi.mod' opened at (1) is not a GNU Fortran module file”。"
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0082.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/trouble/bootkit_hpc_troublecase_0082.html
indexId: 3d669fef1549e3d31c9fcb59bef2557040f25f40d68691fde4a049c696bcdc6b74
---
# 编译abinit时make报错

#### 问题现象描述

编译abinit时make报错，报错信息为：“File 'mpi.mod' opened at (1) is not a GNU Fortran module file”。


#### 关键过程、根本原因分析

此错误是因为gcc和OpenMPI编译器版本不对应。


#### 结论、解决方案及效果

统一OpenMPI和ABINIT使用的编译器可以解决问题。在安装过程中OpenMPI，BLAS-LAPACK，NetCDF等都需要保持统一编译器，否则会出现各种错误。
