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

# 故障排除

#### 问题一：编译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”
