---
title: 故障排除
description: "现象描述："
url: https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpenggeant4_02_0009.html
sourcePath: /source/zh/kunpenghpcs/hpcindapp/prtg-osc/kunpenggeant4_02_0009.html
indexId: 02b72dba45303e565140d28f997f0223aaa98b25136d61bfb526dbd91d88eeef68
---
# 故障排除

#### 问题一：编译geant4并行模块时报错

现象描述：

编译geant4并行模块时报错，报错信息为：“G4MPImanager.hh:117:9: error: ‘MPI’ does not name a type; did you mean ‘M_PI’?”。

可能原因：

OpenMPI 4.0.1默认没有打开g++绑定。

处理步骤：

重新编译OpenMPI 4.0.1并在配置OpenMPI时加入--enable-mpi-cxx参数，详细操作请参见《HPC解决方案 基础环境搭建指导书(https://www.hikunpeng.com/document/detail/zh/kunpenghpcs/hpcindapp/instg-osc/kunpenghpcenv_03_0002.html)》中“OpenMPI安装 > 步骤5”
