CMAQ_5.3.2 CCTM compile error

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

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

Thank you very much. It worked.