使用新的gfortran版本{gcc版本9.3.0Ubuntu 9.3.0-17ubuntu1〜20.04}具有不同种类参数的iand

问题描述

我正在尝试编译dtc upp,但是当我尝试为upp构建NCEP库时,出现以下错误

    intmath.f:207:14:
    
    207 | if(iand(i,i-1)/=0) then | 1 Error: Arguments of ‘iand’ have different kind type parameters at (1) intmath.f:172:14:
    
    172 | if(iand(i,i-1)/=0) then | 1 Error: Arguments of ‘iand’ have different kind type parameters at (1) make[1]: *** [makefile:108: ../../../../libg2_v3.1.0_4.a(intmath.o)] Error 1 make[1]: Leaving directory '/home/wrf/WRF/downloads/NCEPlibs/exec_linux.gnu/src/g2/v3.1.0/src' make: *** [Makefile:38: upplibs] Error 2

An error occurred building the NCEP libraries

注意:我进行了搜索,发现gfortran 8和更早版本具有扩展功能,可以使用不同种类的整数调用iand,而在gfortran 9中该选项已被删除。因此,我尝试卸载认情况下下载的gfortran 9并安装gfortran7。不幸的是,该方法不起作用...只有最新版本可以识别....有什么想法???????

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)