# CMAQv5.3 compiling: Makefile:448: recipe for target 'se\_global\_sum\_module.o' failed

**URL:** <https://forum.cmascenter.org/t/cmaqv5-3-compiling-makefile-recipe-for-target-se-global-sum-module-o-failed/1892>\
**Category:** Compiling\
**Created:** [November 5, 2020, 7:45pm UTC](https://forum.cmascenter.org/t/cmaqv5-3-compiling-makefile-recipe-for-target-se-global-sum-module-o-failed/1892 "2020-11-05T19:45:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![huangj1311](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@huangj1311](https://forum.cmascenter.org/u/huangj1311)\
**Post date:** [November 5, 2020, 7:45pm UTC](https://forum.cmascenter.org/t/cmaqv5-3-compiling-makefile-recipe-for-target-se-global-sum-module-o-failed/1892/1 "2020-11-05T19:45:41Z")

</div>

Hey all,

I am using PGI 18.5 to compile CMAQv5.3, somehow it fails to build the following files, detailed configuration file, build script, and log file are attached. Does anyone know how can I fixed those issues?

It looks like all these files are related to

```auto
se_pe_info_ext.o

```

but I do have that file built ready

```auto
[jhuang@SOL BLD_CCTM_v532_pgi18.5]$ ls se_pe*
se_pe_info_ext.f se_pe_info_ext.mod se_pe_info_ext.o

```

```auto
[jhuang@SOL scripts]$ grep fail *
grep: BLD_CCTM_v532_pgi18.5: Is a directory
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_global_sum_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_internal_util_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_slice_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_global_max_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:445: recipe for target 'pshut3.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_data_send_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_global_min_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'pwrgrdd.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_data_recv_module.o' failed
bldit_cctm.cbr6ae6.log:Makefile:448: recipe for target 'se_twoway_comm_module.o' failed

```

[config\_cmaq.csh](https://forum.cmascenter.org/uploads/short-url/noxsjdua2n035VBkQ3JuvE8sBdQ.csh) (10.8 KB)  
[bldit\_cctm.csh](https://forum.cmascenter.org/uploads/short-url/7o85S4A7Px7gzLvlHb5g0d9u5Y2.csh) (29.9 KB)  
[bldit\_cctm.cbr6ae6.txt](https://forum.cmascenter.org/uploads/short-url/3Sl4Ul8g2Czvd6fyaHyAlDeNc7C.txt) (156.6 KB)

Thanks!

Joey

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [November 5, 2020, 8:01pm UTC](https://forum.cmascenter.org/t/cmaqv5-3-compiling-makefile-recipe-for-target-se-global-sum-module-o-failed/1892/2 "2020-11-05T20:01:51Z")

</div>

You need to be using _mpif90_ instead of _pgif90_; you may need to build _mpif90_ for yourself or not, depending upon your host-computer’s setup):

_mpif90_ (and similarly for _mpicc_ and _mpiCC_) is a “wrapper” script around a normal compiler; this wrapper “knows” where to find the relevant MPI include-files and libraries, so that you don’t need to worry about them yourself.

If someone didn’t already install it for you, then the usual process is this:

- Decide on an MPI implementation (OpenMPI, MPICH, MVAPICH, …) and download its build-system.

- Decide on a native set of “normal” Fortran, C, and C++ compilers and tell the MPI build-system to use them.

- Invoke the MPI build-system: it will create a sub-directory structure with all the needed MPI include-files, library-files, module-files, and MPI-compilers _mpif90_, _mpicc_, etc.

- Use the resulting _mpif90_ to build your model.
