爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 7680|回复: 2

CMAQ编译MCIP问题

[复制链接]

新浪微博达人勋

发表于 2018-5-21 16:20:11 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
centos7系统安装CMAQ后,按照官网提示编译编译icon和bcon后直到编译mcip的时候输入 make |& tee make.mcip.log命令后,报了很多undefined reference to 'GOMP_critical...'的错,最后是这样的collect2: error: ld returned 1 exit status     make[1]: *** [mcip.exe] Error 1
中间都是类似于这样:opnfil3.F90:(.text+0x13c): undefined reference to `GOMP_critical_name_end'
opnfil3.F90:(.text+0x146): undefined reference to `GOMP_critical_name_start'
opnfil3.F90:(.text+0x166): undefined reference to `GOMP_critical_name_end'
opnfil3.F90:(.text+0x3de): undefined reference to `GOMP_critical_name_end'
opnfil3.F90:(.text+0x9e9): undefined reference to `GOMP_critical_name_end'
/home/CMAQ/lib_basedir/x86_64/gcc4.8.5/ioapi/lib/libioapi.a(opnlog3.o): In function `opnlog3_':
opnlog3.F90:(.text+0x40): undefined reference to `GOMP_critical_name_start'
opnlog3.F90:(.text+0x8e): undefined reference to `GOMP_critical_name_start'
opnlog3.F90:(.text+0xc6): undefined reference to `GOMP_critical_name_end'
opnlog3.F90:(.text+0xd79): undefined reference to `GOMP_critical_name_end'
/home/CMAQ/lib_basedir/x86_64/gcc4.8.5/ioapi/lib/libioapi.a(shut3.o): In function `shut3_':
shut3.F90:(.text+0x48): undefined reference to `GOMP_critical_name_start'
shut3.F90:(.text+0x412): undefined reference to `GOMP_critical_name_end'
/home/CMAQ/lib_basedir/x86_64/gcc4.8.5/ioapi/lib/libioapi.a(syncfid.o): In function `syncfid_':
syncfid.F90:(.text+0x49): undefined reference to `GOMP_critical_name_start'
syncfid.F90:(.text+0x6a): undefined reference to `GOMP_critical_name_end'
syncfid.F90:(.text+0x26c): undefined reference to `GOMP_critical_name_start'
syncfid.F90:(.text+0x28a): undefined reference to `GOMP_critical_name_end'
/home/CMAQ/lib_basedir/x86_64/gcc4.8.5/ioapi/lib/libioapi.a(wrgrnest.o): In function `wrgrnest_':
wrgrnest.F90:(.text+0x2d): undefined reference to `GOMP_critical_name_start'
wrgrnest.F90:(.text+0x37): undefined reference to `GOMP_critical_name_start'
wrgrnest.F90:(.text+0x15c): undefined reference to `GOMP_critical_name_end'
wrgrnest.F90:(.text+0x166): undefined reference to `GOMP_critical_name_end'
wrgrnest.F90:(.text+0x917): undefined reference to `GOMP_critical_name_end'
wrgrnest.F90:(.text+0x921): undefined reference to `GOMP_critical_name_end'
/home/CMAQ/lib_basedir/x86_64/gcc4.8.5/ioapi/lib/libioapi.a(wrprofil.o): In function `wrprofil_':
wrprofil.F90:(.text+0x3b): undefined reference to `GOMP_critical_name_start'
wrprofil.F90:(.text+0x45): undefined reference to `GOMP_critical_name_start'

请问有人知道是为什么么?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-5-22 10:16:37 | 显示全部楼层
没有链接到openmp这个并行编程的库 加上-fopenmp
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2020-8-7 22:54:01 | 显示全部楼层
3Esperanza 发表于 2018-5-22 10:16
没有链接到openmp这个并行编程的库 加上-fopenmp

请问再哪个位置 加上 -foenmp 呢?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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