爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4572|回复: 9

CMAQ编译mcip时报错 请教各位前辈是什么情况

[复制链接]
发表于 2017-6-29 16:02:48 | 显示全部楼层 |阅读模式
5金钱
本帖最后由 晋立里 于 2017-7-13 12:51 编辑

编译器pgi,那些库netcdf、ioapi、mpich都安装好了。config.cmaq配置过了,build、stenex、pario都没有问题,jproc icon bcon应该都没问题,下面还剩mcip和cctm就安装好了:

先进/mcip/src下面改了改Makefile

然后make出现这个:
make
make[1]: Entering directory `/home/200799014580/install/cmaq/CMAQv5.0.2/scripts/mcip/src'
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c const_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c const_pbl_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c coord_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c date_time_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c date_pack_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c files_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c groutcom_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c luvars_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mcipparm_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mcoutcom_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mdoutcom_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c metinfo_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c metvars_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c vgrd_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c wrf_netcdf_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c xvars_mod.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c sat2mcip_mod.f90
make[1]: Leaving directory `/home/200799014580/install/cmaq/CMAQv5.0.2/scripts/mcip/src'
make[1]: Entering directory `/home/200799014580/install/cmaq/CMAQv5.0.2/scripts/mcip/src'
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mcip.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c alloc_ctm.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c alloc_met.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c alloc_x.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c bcldprc_ak.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c blddesc.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c chkwpshdr.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c chkwrfhdr.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c close_files.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c collapx.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c comheader.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c cori.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c dealloc_ctm.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c dealloc_met.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c dealloc_x.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c e_aerk.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c dynflds.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c getgist.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c getluse.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c getmet.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c getpblht.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c getsdt.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c getversion.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c graceful_stop.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c gridout.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c init_io.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c init_met.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c init_x.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c julian.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c layht.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c ll2xy_lam.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c ll2xy_lam_sec.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c ll2xy_lam_tan.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c ll2xy_merc.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c ll2xy_ps.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c locate.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mapfac_lam.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mapfac_merc.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mapfac_ps.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c metcro.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c metdot.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c metgrid2ctm.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c metvars2ctm.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c mm5v3opts.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c pblsup.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c ptemp.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c pvs.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c qsat.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c rdmm5v3.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c rdwrfem.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c readnml.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c readter.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c refstate.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c resistcalc.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c setgriddefs.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c setup.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c setup_mm5v3.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c setup_wrfem.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c sfclayer.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c statflds.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c vertarys.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c vertnhy.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c vertnhy_wrf.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c vstamp.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c vtemp.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c wind.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c wrfemopts.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c wrgdesc.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c xy2ll_lam.f90
gfortran -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort  -c xy2ll_merc.f90
gfortran -o mcip.exe -O3 -I/home/200799014580/install/netcdf/include -I/home/200799014580/install/ioapi/Linux2_x86_64gfort mcip.o alloc_ctm.o alloc_met.o alloc_x.o bcldprc_ak.o blddesc.o chkwpshdr.o chkwrfhdr.o close_files.o collapx.o comheader.o cori.o dealloc_ctm.o dealloc_met.o dealloc_x.o e_aerk.o dynflds.o getgist.o getluse.o getmet.o getpblht.o getsdt.o getversion.o graceful_stop.o gridout.o init_io.o init_met.o init_x.o julian.o layht.o ll2xy_lam.o ll2xy_lam_sec.o ll2xy_lam_tan.o ll2xy_merc.o ll2xy_ps.o locate.o mapfac_lam.o mapfac_merc.o mapfac_ps.o metcro.o metdot.o metgrid2ctm.o metvars2ctm.o mm5v3opts.o pblsup.o ptemp.o pvs.o qsat.o rdmm5v3.o rdwrfem.o readnml.o readter.o refstate.o resistcalc.o setgriddefs.o setup.o setup_mm5v3.o setup_wrfem.o sfclayer.o statflds.o vertarys.o vertnhy.o vertnhy_wrf.o vstamp.o vtemp.o wind.o wrfemopts.o wrgdesc.o xy2ll_lam.o xy2ll_merc.o const_mod.o const_pbl_mod.o coord_mod.o date_time_mod.o date_pack_mod.o files_mod.o groutcom_mod.o luvars_mod.o mcipparm_mod.o mcoutcom_mod.o mdoutcom_mod.o metinfo_mod.o metvars_mod.o vgrd_mod.o wrf_netcdf_mod.o xvars_mod.o sat2mcip_mod.o -L/home/200799014580/install/ioapi/Linux2_x86_64gfort -lioapi -L/home/200799014580/install/netcdf/lib -lnetcdf
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(desc3.o): In function `desc3_':
desc3.F:(.text+0x38f): undefined reference to `GOMP_critical_name_start'
desc3.F:(.text+0x139e): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(init3.o): In function `init3_':
init3.F:(.text+0x1cd): undefined reference to `GOMP_critical_name_start'
init3.F:(.text+0x203): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(m3msg2.o): In function `m3flush_':
m3msg2.F:(.text+0xa): undefined reference to `GOMP_critical_name_start'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(m3msg2.o): In function `m3parag_':
m3msg2.F:(.text+0x5f): undefined reference to `GOMP_critical_name_start'
m3msg2.F:(.text+0x292): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(m3msg2.o): In function `m3prompt_':
m3msg2.F:(.text+0x314): undefined reference to `GOMP_critical_name_start'
m3msg2.F:(.text+0x466): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(m3msg2.o): In function `m3mesg_':
m3msg2.F:(.text+0x586): undefined reference to `GOMP_critical_name_start'
m3msg2.F:(.text+0x635): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(m3msg2.o): In function `m3msg2_':
m3msg2.F:(.text+0x69c): undefined reference to `GOMP_critical_name_start'
m3msg2.F:(.text+0x711): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(m3msg2.o): In function `m3flush_':
m3msg2.F:(.text+0x1f): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(opnfil3.o): In function `opnfil3_':
opnfil3.F:(.text+0x7b): undefined reference to `GOMP_critical_name_start'
opnfil3.F:(.text+0x144): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(opnlog3.o): In function `opnlog3_':
opnlog3.F:(.text+0x35): undefined reference to `GOMP_critical_name_start'
opnlog3.F:(.text+0x5e): undefined reference to `GOMP_critical_name_start'
opnlog3.F:(.text+0x9c): undefined reference to `GOMP_critical_name_end'
opnlog3.F:(.text+0x18a5): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(shut3.o): In function `shut3_':
shut3.F:(.text+0x46): undefined reference to `GOMP_critical_name_start'
shut3.F:(.text+0x47c): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(write3.o): In function `write3_':
write3.F:(.text+0x156): undefined reference to `GOMP_critical_name_start'
write3.F:(.text+0x176): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wrprofil.o): In function `wrprofil_':
wrprofil.F:(.text+0x39): undefined reference to `GOMP_critical_name_start'
wrprofil.F:(.text+0x53): undefined reference to `GOMP_critical_name_start'
wrprofil.F:(.text+0x15f): undefined reference to `GOMP_critical_name_end'
wrprofil.F:(.text+0x169): undefined reference to `GOMP_critical_name_end'
wrprofil.F:(.text+0x57b): undefined reference to `GOMP_critical_name_end'
wrprofil.F:(.text+0x585): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wrvars.o): In function `wrvars_':
wrvars.F:(.text+0x4a): undefined reference to `GOMP_critical_name_start'
wrvars.F:(.text+0x97): undefined reference to `GOMP_critical_name_end'
wrvars.F:(.text+0xc2): undefined reference to `GOMP_critical_name_start'
wrvars.F:(.text+0x508): undefined reference to `GOMP_critical_name_end'
wrvars.F:(.text+0x566): undefined reference to `GOMP_critical_name_start'
wrvars.F:(.text+0x5bf): undefined reference to `GOMP_critical_name_end'
wrvars.F:(.text+0x7b6): undefined reference to `GOMP_critical_name_start'
wrvars.F:(.text+0x7ef): undefined reference to `GOMP_critical_name_end'
wrvars.F:(.text+0x7f9): undefined reference to `GOMP_critical_name_start'
wrvars.F:(.text+0xc59): undefined reference to `GOMP_critical_name_end'
wrvars.F:(.text+0xc86): undefined reference to `GOMP_critical_name_start'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(chkfil3.o): In function `chkfil3_':
chkfil3.f:(.text+0x1a): undefined reference to `GOMP_critical_name_start'
chkfil3.f:(.text+0x10a6): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(close3.o): In function `close3_':
close3.f:(.text+0x196): undefined reference to `GOMP_critical_name_start'
close3.f:(.text+0x353): undefined reference to `GOMP_critical_name_end'
close3.f:(.text+0x377): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(crtbuf3.o): In function `crtbuf3_':
crtbuf3.f:(.text+0x8be): undefined reference to `GOMP_critical_name_start'
crtbuf3.f:(.text+0x96a): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(name2fid.o): In function `name2fid_':
name2fid.f:(.text+0x22): undefined reference to `GOMP_critical_name_start'
name2fid.f:(.text+0x3a): undefined reference to `GOMP_critical_name_end'
name2fid.f:(.text+0x104): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(syncfid.o): In function `syncfid_':
syncfid.f:(.text+0x40): undefined reference to `GOMP_critical_name_start'
syncfid.f:(.text+0x64): undefined reference to `GOMP_critical_name_end'
syncfid.f:(.text+0x2f0): undefined reference to `GOMP_critical_name_start'
syncfid.f:(.text+0x5dc): undefined reference to `GOMP_critical_name_start'
syncfid.f:(.text+0x766): undefined reference to `GOMP_critical_name_end'
syncfid.f:(.text+0x81e): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wrdict3.o): In function `wrdict3_':
wrdict3.f:(.text+0x38): undefined reference to `GOMP_critical_name_start'
wrdict3.f:(.text+0x42): undefined reference to `GOMP_critical_name_start'
wrdict3.f:(.text+0x366): undefined reference to `GOMP_critical_name_end'
wrdict3.f:(.text+0x370): undefined reference to `GOMP_critical_name_end'
wrdict3.f:(.text+0x1e8a): undefined reference to `GOMP_critical_name_end'
wrdict3.f:(.text+0x1e94): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wriddata.o): In function `wriddata_':
wriddata.f:(.text+0x37): undefined reference to `GOMP_critical_name_start'
wriddata.f:(.text+0x65): undefined reference to `GOMP_critical_name_start'
wriddata.f:(.text+0x93): undefined reference to `GOMP_critical_name_end'
wriddata.f:(.text+0x170): undefined reference to `GOMP_critical_name_end'
wriddata.f:(.text+0x1eb): undefined reference to `GOMP_critical_name_start'
wriddata.f:(.text+0x222): undefined reference to `GOMP_critical_name_end'
wriddata.f:(.text+0x247): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wrsmatrx.o): In function `wrsmatrx_':
wrsmatrx.f:(.text+0x85): undefined reference to `GOMP_critical_name_start'
wrsmatrx.f:(.text+0x8f): undefined reference to `GOMP_critical_name_start'
wrsmatrx.f:(.text+0x19d): undefined reference to `GOMP_critical_name_end'
wrsmatrx.f:(.text+0x1a7): undefined reference to `GOMP_critical_name_end'
wrsmatrx.f:(.text+0x26c): undefined reference to `GOMP_critical_name_end'
wrsmatrx.f:(.text+0x276): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wrtflag.o): In function `wrtflag_':
wrtflag.f:(.text+0xaf): undefined reference to `GOMP_critical_name_start'
wrtflag.f:(.text+0xe7): undefined reference to `GOMP_critical_name_end'
wrtflag.f:(.text+0x177): undefined reference to `GOMP_critical_name_start'
wrtflag.f:(.text+0x19b): undefined reference to `GOMP_critical_name_end'
wrtflag.f:(.text+0x40e): undefined reference to `GOMP_critical_name_start'
wrtflag.f:(.text+0x888): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(crtfil3.o): In function `crtfil3_':
crtfil3.F:(.text+0x39): undefined reference to `GOMP_critical_name_start'
crtfil3.F:(.text+0x51): undefined reference to `GOMP_critical_name_end'
crtfil3.F:(.text+0x6b): undefined reference to `GOMP_critical_name_start'
crtfil3.F:(.text+0x255): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(rdvars.o): In function `rdvars_':
rdvars.F:(.text+0x4f): undefined reference to `GOMP_critical_name_start'
rdvars.F:(.text+0x94): undefined reference to `GOMP_critical_name_end'
rdvars.F:(.text+0x12c): undefined reference to `GOMP_critical_name_start'
rdvars.F:(.text+0x179): undefined reference to `GOMP_critical_name_end'
rdvars.F:(.text+0x374): undefined reference to `GOMP_critical_name_start'
rdvars.F:(.text+0x3ee): undefined reference to `GOMP_critical_name_end'
rdvars.F:(.text+0x7a6): undefined reference to `GOMP_critical_name_end'
/home/200799014580/install/ioapi/Linux2_x86_64gfort/libioapi.a(wrgrnest.o): In function `wrgrnest_':
wrgrnest.F:(.text+0x39): undefined reference to `GOMP_critical_name_start'
wrgrnest.F:(.text+0x53): undefined reference to `GOMP_critical_name_start'
wrgrnest.F:(.text+0x15f): undefined reference to `GOMP_critical_name_end'
wrgrnest.F:(.text+0x169): undefined reference to `GOMP_critical_name_end'
wrgrnest.F:(.text+0x955): undefined reference to `GOMP_critical_name_end'
wrgrnest.F:(.text+0x95f): undefined reference to `GOMP_critical_name_end'
collect2: ld returned 1 exit status
make[1]: *** [mcip.exe] Error 1
make[1]: Leaving directory `/home/200799014580/install/cmaq/CMAQv5.0.2/scripts/mcip/src'
make: *** [all] Error 2










修改的Makefile如下:
.SUFFIXES:
.SUFFIXES: .o .f90 .F90


MODEL = mcip.exe
NETCDF = /XXXXXXXXXXXX
IOAPI_ROOT = /XXXXXXXXX


#...gfortran
FC     = gfortran
FFLAGS = -O3 -I$(NETCDF)/include -I$(IOAPI_ROOT)/Linux2_x86_64gfort
LIBS    = -L$(IOAPI_ROOT)/Linux2_x86_64gfort -lioapi \
          -L$(NETCDF)/lib -lnetcdf #-lnetcdff

DEFS   =




MODULES =\
const_mod.o \
const_pbl_mod.o \
coord_mod.o \
date_time_mod.o \
date_pack_mod.o \
files_mod.o \
groutcom_mod.o \
luvars_mod.o \
mcipparm_mod.o \
mcoutcom_mod.o \
mdoutcom_mod.o \
metinfo_mod.o \
metvars_mod.o \
vgrd_mod.o \
wrf_netcdf_mod.o \
xvars_mod.o \
sat2mcip_mod.o


OBJS =\
mcip.o \
alloc_ctm.o \
alloc_met.o \
alloc_x.o \
bcldprc_ak.o \
blddesc.o \
chkwpshdr.o \
chkwrfhdr.o \
close_files.o \
collapx.o \
comheader.o \
cori.o \
dealloc_ctm.o \
dealloc_met.o \
dealloc_x.o \
e_aerk.o \
dynflds.o \
getgist.o \
getluse.o \
getmet.o \
getpblht.o \
getsdt.o \
getversion.o \
graceful_stop.o \
gridout.o \
init_io.o \
init_met.o \
init_x.o \
julian.o \
layht.o \
ll2xy_lam.o \
ll2xy_lam_sec.o \
ll2xy_lam_tan.o \
ll2xy_merc.o \
ll2xy_ps.o \
locate.o \
mapfac_lam.o \
mapfac_merc.o \
mapfac_ps.o \
metcro.o \
metdot.o \
metgrid2ctm.o \
metvars2ctm.o \
mm5v3opts.o \
pblsup.o \
ptemp.o \
pvs.o \
qsat.o \
rdmm5v3.o \
rdwrfem.o \
readnml.o \
readter.o \
refstate.o \
resistcalc.o \
setgriddefs.o \
setup.o \
setup_mm5v3.o \
setup_wrfem.o \
sfclayer.o \
statflds.o \
vertarys.o \
vertnhy.o \
vertnhy_wrf.o \
vstamp.o \
vtemp.o \
wind.o \
wrfemopts.o \
wrgdesc.o \
xy2ll_lam.o \
xy2ll_merc.o


all:
        @$(MAKE) $(MODULES)
        @$(MAKE) $(MODEL)


$(MODEL): $(OBJS)
        $(FC) -o $(MODEL) $(FFLAGS) $(OBJS) $(MODULES) $(LIBS)


$(OBJS): $(MODULES)


.f90.o:
        $(FC) $(FFLAGS) $(INCLUDES) -c $<


.F90.o:
        $(FC) $(FFLAGS) $(INCLUDES) -c $< $(DEFS)


clean:
        rm -f *.o *.mod *.il $(MODEL)







请问这是什么情况呢?还望各位前辈指教



补充:config.cmaq中配置

case gcc:
##> gfortran compiler......................................................
       setenv compiler gfort
       setenv compiler_ext gfort
       setenv myFC /usr/mpi/gcc/mvapich2-2.0/bin/mpif90 #gfortran
       setenv myCC gcc
       setenv myLINK_FLAG ""
       setenv myFFLAGS "-ffixed-form -ffixed-line-length-132 -O3 -funroll-loops -finit-character=32"
       setenv myFRFLAGS "-ffree-form -ffree-line-length-none -O3 -funroll-loops -finit-character=32"
       setenv myCFLAGS "-O2"
       setenv extra_lib
       setenv extra_lib "$extra_lib -lgomp"
       breaksw

    default:
       echo "*** Compiler $COMPILER not found"
       exit(2)
       breaksw

endsw


#===============================================================================

#> generate library locations
       setenv M3LIB ${lib_basedir}/${system}/${compiler}
       if ( ! -d $M3LIB ) mkdir -p $M3LIB
       setenv MPI_INC $M3LIB/mpich/include
       setenv NETCDF_DIR $M3LIB/netcdf
       setenv IOAPI_DIR $M3LIB/ioapi_3.1/Linux2_x86_64gfort

#> set executable id
setenv EXEC_ID ${bld_os}_${system}${compiler}
# unset echo



密码修改失败请联系微信:mofangbao
发表于 2017-7-2 08:22:29 | 显示全部楼层
{:eb502:}{:eb502:}{:eb502:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-7-6 15:17:20 | 显示全部楼层
楼主应该把makefile文件贴出来
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

 楼主| 发表于 2017-7-13 12:50:15 | 显示全部楼层
xiaogao 发表于 2017-7-6 15:17
楼主应该把makefile文件贴出来

已贴上 就改了一点。
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2017-7-14 13:53:36 | 显示全部楼层
{:eb502:}{:eb502:}{:eb502:}{:eb502:}
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2018-5-23 15:18:34 | 显示全部楼层
没有链接gomp的库 加上-fopenmp
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2018-9-25 16:45:42 | 显示全部楼层
3Esperanza 发表于 2018-5-23 15:18
没有链接gomp的库 加上-fopenmp

您好,请问在哪里加-fopenmp呢?
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2018-9-25 18:59:49 | 显示全部楼层
BurNIng92 发表于 2018-9-25 16:45
您好,请问在哪里加-fopenmp呢?

是在添加参数的地方加
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2019-10-11 14:28:36 | 显示全部楼层
3Esperanza 发表于 2018-5-23 15:18
没有链接gomp的库 加上-fopenmp

太感谢您了,类似的问题解决了
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2019-10-11 21:56:27 | 显示全部楼层
问题少女 发表于 2019-10-11 14:28
太感谢您了,类似的问题解决了

是曾经踩过的坑哈哈哈
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表