- 积分
- 3872
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-4
- 最后登录
- 1970-1-1
|
发表于 2022-4-20 17:43:46
|
显示全部楼层
我根据您提供的安装包,更改了FC=ifort,LNKFLGS = -Bstatic_intel以及LIBS和INC,依然报了很多错误,有编译选项错误,也有源代码语法错误,我的安装信息是:FC=ifort(2022版),netcdf-c=4.7.4,netcdf-f=4.5.3,ioapi=3.2,报错信息如下:
Removing *.o
rm: No match.
Make all programs
ifort -O -Mvect=sse -Mextend -Msecond_underscore -Bstatic_intel -Mlfs -I/home/atmos/LIBRARIES/intel/ioapi-3.2/ioapi/fixed_src -I/home/atmos/LIBRARIES/intel/netcdf/include -I/home/atmos/soft/MEGAN3/src/TXT2IOAPI/INCLDIR -c -o parsline.o parsline.f
ifort: command line warning #10006: ignoring unknown option '-Mvect=sse'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
ifort: command line warning #10006: ignoring unknown option '-Msecond_underscore'
ifort: command line warning #10006: ignoring unknown option '-Mlfs'
ifort -O -Mvect=sse -Mextend -Msecond_underscore -Bstatic_intel -Mlfs -I/home/atmos/LIBRARIES/intel/ioapi-3.2/ioapi/fixed_src -I/home/atmos/LIBRARIES/intel/netcdf/include -I/home/atmos/soft/MEGAN3/src/TXT2IOAPI/INCLDIR -c -o checkmem.o checkmem.f
ifort: command line warning #10006: ignoring unknown option '-Mvect=sse'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
ifort: command line warning #10006: ignoring unknown option '-Msecond_underscore'
ifort: command line warning #10006: ignoring unknown option '-Mlfs'
ifort -O -Mvect=sse -Mextend -Msecond_underscore -Bstatic_intel -Mlfs -I/home/atmos/LIBRARIES/intel/ioapi-3.2/ioapi/fixed_src -I/home/atmos/LIBRARIES/intel/netcdf/include -I/home/atmos/soft/MEGAN3/src/TXT2IOAPI/INCLDIR -c -o cnvt_efs.o cnvt_efs.F
ifort: command line warning #10006: ignoring unknown option '-Mvect=sse'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
ifort: command line warning #10006: ignoring unknown option '-Msecond_underscore'
ifort: command line warning #10006: ignoring unknown option '-Mlfs'
cnvt_efs.F(55): error #5082: Syntax error, found ',' when expecting one of: :: %FILL , <IDENTIFIER> TYPE MODULE ELEMENTAL IMPURE NON_RECURSIVE PURE RECURSIVE ...
INTEGER, XREF(NFLD)
-------------^
compilation aborted for cnvt_efs.F (code 1)
make: *** [cnvt_efs.o] 错误 1
ifort -c -O -Mvect=sse -Mextend -Msecond_underscore -Mlfs -Bstatic_intel -I/home/atmos/LIBRARIES/intel/ioapi-3.2/ioapi/fixed_src -I/home/atmos/LIBRARIES/intel/netcdf/include -I/home/atmos/soft/MEGAN3/src/MEGVEA checkmem.f
ifort: command line warning #10006: ignoring unknown option '-Mvect=sse'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
ifort: command line warning #10006: ignoring unknown option '-Msecond_underscore'
ifort: command line warning #10006: ignoring unknown option '-Mlfs'
ifort -c -O -Mvect=sse -Mextend -Msecond_underscore -Mlfs -Bstatic_intel -I/home/atmos/LIBRARIES/intel/ioapi-3.2/ioapi/fixed_src -I/home/atmos/LIBRARIES/intel/netcdf/include -I/home/atmos/soft/MEGAN3/src/MEGVEA findlai.f
ifort: command line warning #10006: ignoring unknown option '-Mvect=sse'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
ifort: command line warning #10006: ignoring unknown option '-Msecond_underscore'
ifort: command line warning #10006: ignoring unknown option '-Mlfs'
ifort -c -O -Mvect=sse -Mextend -Msecond_underscore -Mlfs -Bstatic_intel -I/home/atmos/LIBRARIES/intel/ioapi-3.2/ioapi/fixed_src -I/home/atmos/LIBRARIES/intel/netcdf/include -I/home/atmos/soft/MEGAN3/src/MEGVEA megvea.f
ifort: command line warning #10006: ignoring unknown option '-Mvect=sse'
ifort: command line warning #10006: ignoring unknown option '-Mextend'
ifort: command line warning #10006: ignoring unknown option '-Msecond_underscore'
ifort: command line warning #10006: ignoring unknown option '-Mlfs'
MEGVEA.EXT(40): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , /
DATA beta(3),LDF(3),CT1(3),Cleo(3) / 0.10,0.6,80,1.83 /
-------------------------------------------------------------------------^
MEGVEA.EXT(41): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , /
DATA beta(4),LDF(4),CT1(4),Cleo(4) / 0.10,0.9,80,1.83 /
-------------------------------------------------------------------------^
MEGVEA.EXT(42): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , /
DATA beta(5),LDF(5),CT1(5),Cleo(5) / 0.10,0.2,80,1.83 /
-------------------------------------------------------------------------^
MEGVEA.EXT(43): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , /
DATA beta(6),LDF(6),CT1(6),Cleo(6) / 0.10,0.4,80,1.83 /
-------------------------------------------------------------------------^
MEGVEA.EXT(44): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , /
DATA beta(7),LDF(7),CT1(7),Cleo(7) / 0.10,0.6,80,1.83 /
-------------------------------------------------------------------------^
MEGVEA.EXT(45): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: , /
************************************************************
基本都是编译选项和Fortran语法错误
是不是和编译器版本有关系,在哪里可以找到旧版本的编译器呀,pgi和intel我都只能找到最近的(2020年以后的) |
|