- 积分
- 570
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-7-15
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
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
请教各位大神如何解决,谢谢! |
|