# CMAQ\_5.3.2 CCTM compile error

**URL:** <https://forum.cmascenter.org/t/cmaq-5-3-2-cctm-compile-error/2082>\
**Category:** CMAQ\
**Created:** [February 15, 2021, 11:32pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-cctm-compile-error/2082 "2021-02-15T23:32:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mms](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mms](https://forum.cmascenter.org/u/mms)\
**Post date:** [February 15, 2021, 11:32pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-cctm-compile-error/2082/1 "2021-02-15T23:32:44Z")

</div>

CCTM compilations gives the following error, any help highly appreciated:

/cmaq/app/home/5.3.2/lib/x86\_64/gcc/ioapi/lib/libioapi.a(wratt3.o): In function `master.0.wratt3_': wratt3.F90:(.text+0x64f): undefined reference to `GOMP\_critical\_name\_start’  
wratt3.F90:(.text+0x6d9): undefined reference to `GOMP_critical_name_end' wratt3.F90:(.text+0xb29): undefined reference to `GOMP\_critical\_name\_end’  
wratt3.F90:(.text+0x125d): undefined reference to `GOMP\_critical\_name\_end’  
collect2: error: ld returned 1 exit status  
Makefile:442: recipe for target ‘CCTM\_v532.exe’ failed  
make: \*\*\* [CCTM\_v532.exe] Error 1  
**ERROR** while running make command

mv Makefile Makefile.gcc  
if ( -e Makefile.gcc && -e Makefile ) rm Makefile  
ln -s Makefile.gcc Makefile  
if ( 0 != 0 ) then  
if ( -e /cmaq/app/home/5.3.2/CCTM/scripts/BLD\_CCTM\_v532\_gcc/CCTM\_v532.cfg ) then  
mv CCTM\_v532.cfg.bld /cmaq/app/home/5.3.2/CCTM/scripts/BLD\_CCTM\_v532\_gcc/CCTM\_v532.cfg

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [February 16, 2021, 5:45am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-cctm-compile-error/2082/2 "2021-02-16T05:45:12Z")

</div>

Hi,

Please edit your config\_cmaq.csh to use the following setting under the following section of the script:  
#\> gfortran compiler…

case gcc

setenv myLINK\_FLAG -fopenmp

Then rerun the bldit script.

Or, you can go to the BLD\* directory and edit the Makefile to use the following setting:

LINK\_FLAGS = -fopenmp

Liz

---

<div class="post-metadata">

**Author:** ![mms](https://avatars.discourse-cdn.com/v4/letter/m/b5a626/32.png) [@mms](https://forum.cmascenter.org/u/mms)\
**Post date:** [February 16, 2021, 2:24pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-cctm-compile-error/2082/3 "2021-02-16T14:24:12Z")

</div>

> [@lizadams](#):
>
> setenv myLINK\_FLAG -fopenmp

Thank you very much. It worked.
