爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5724|回复: 2

求助:PGI10.6编译不了mpich3.3.2

[复制链接]

新浪微博达人勋

发表于 2020-7-8 13:37:46 | 显示全部楼层 |阅读模式

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

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

x
系统:CentOS7.6.1810;内核版本:Linux inst3 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
PGI编译器10.6x86-64的
因为wrf的编译说明里面要求mpich、netcdf、zlib、libpng、jasper这些库要用同一种编译器编译,所以我就统一用pgi。
确定pgi已经成功安装,且测试过pgf90能使用。
但是用pgi编译mpich3.3.2的时候,出现了如下的问题:

Configuring MPICH version 3.3.2 with  '--prefix=/opt/mpich33' 'CC=pgcc' 'CXX=pgcpp' 'FC=pgfortran' 'F77=pgfortran'
Running on system: Linux inst3 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/home/gcf/wrfsrc/untar/mpich-3.3.2':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

我的输入如下:
export CC=pgcc FC=pgfortran F77=pgfortran CXX=pgcpp
./configure --prefix=/opt/mpich33 >& configure.log

请教各位大神如何解决,谢谢!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2020-7-8 13:39:55 | 显示全部楼层
补充说明:说明书上说CPPFLAGS不能设置。我为了省事,干脆各种FLAGS都没有设置
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2020-7-25 12:00:55 | 显示全部楼层
问题已解决,就是PGI版本太低的问题。谢谢关注!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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