24小时热门版块排行榜    

查看: 1039  |  回复: 12
当前主题已经存档。
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

huangyc

木虫 (正式写手)

[交流] [求助]编译VASP出错

出错信息为:
fortcom: Error: fft3dlib.f90, line 1625: Sharing of a DO termination statement by more than one DO statement is an obsolescent feature in Fortran 95.  Use an END DO or CONTINUE statement for each DO statement.   [20]
   20       CONTINUE
---^
fortcom: Error: fft3dlib.f90, line 1702: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 2623: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 3529: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 4062: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (1010,1050,1090,1130,1170,1210,1250),IGO
------^
compilation aborted for fft3dlib.f90 (code 1)
make: *** [fft3dlib.o] Error 1
用的是ifort编译器,谢谢

[ Last edited by wuchenwf on 2009-6-22 at 21:39 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

y1ding

铁杆木虫 (著名写手)

★ ★ ★ ★ ★
fegg7502(金币+5,VIP+0):thanks,haha,
???vasp.4.6??makefile.linux_ifc_P4????о??g?r???????????????}???Q?????

???}1??
??VASP-FTP???dvasp.4.6???a?r??FTP????????з???s??δ???s2?N?汾
?????^makefile.linux_ifc_P4???l?F???汾??makefile????s?в?
???88?У?????????~
???s?汾??FFLAGS =  -FR -lowercase -assume byterecl
δ???s?汾??FFLAGS =  -FR -lowercase
?????s?汾?M?о??g??????????????}??
mpif90 -FR -lowercase -assume byterecl-FR -O0   -c main.f90
ifort: Command line error: Unrecognized keyword 'byterecl_FR' for option '-assume'
make: *** [main.o] Error 1

??Q???1??
???285?У????l?F?????????????n???????????????????error?a??
$(FC) $(FFLAGS)$(DEBUG)  $(INCS) -c main$(SUFFIX)
???
$(FC) $(FFLAGS) $(DEBUG)  $(INCS) -c main$(SUFFIX)

??Q???2??(?????h)
???????"-assume byterecl"????????FFLAGS =  -FR -lowercase?????



???}2??
????о??g?r????????FFTW??fft3dlib.F???F??????}??
fortcom: Error: fft3dlib.f90, line 1627: Sharing of a DO termination statement by more than one DO statement is an obsolescent feature in Fortran 95.  Use an END DO or CONTINUE statement for each DO statement.   [20]
   20       CONTINUE
---^
fortcom: Error: fft3dlib.f90, line 1704: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 2625: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 3531: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (10,50,90,130,170,210,250),IGO
------^
fortcom: Error: fft3dlib.f90, line 4064: The computed GOTO statement is an obsolescent feature in Fortran 95.
      GOTO (1010,1050,1090,1130,1170,1210,1250),IGO
------^
compilation aborted for fft3dlib.f90 (code 1)
make: *** [fft3dlib.o] Error 1
?????fft3dlib.F???????Z????F77????IFC????F95?Z????x??????????????F?????????
3楼2009-01-05 09:59:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 13 个回答

ecitpxq

木虫 (小有名气)

★ ★
fegg7502(金币+2,VIP+0):thanks,haha,
将makefile文件中

fft3dlib.o : fft3dlib.F
        $(CPP)
        $(FC) -FR -lowercase -O1 -tpp7 -xW -unroll0 -e95 -vec_report3 -c $*$(SUFFIX)

的-e95删掉,试试。
2楼2009-01-05 09:59:08
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

y1ding

铁杆木虫 (著名写手)

★ ★
fegg7502(金币+2,VIP+0):thanks,haha,
解決方式:
將第343行
$(FC) -FR -lowercase -O1 -tpp7 -xW -prefetch- -unroll0 -e95 -vec_report3 -c $*$(SUFFIX)
去掉"-e95"變數改成
$(FC) -FR -lowercase -O1 -tpp7 -xW -prefetch- -unroll0 -vec_report3 -c $*$(SUFFIX)
因為"-e95"變數會把F95編譯F77程式碼產生的警告(warning)改成錯誤(error)型式輸出,造成編譯?娖韧V篃o法忽略跳過!
4楼2009-01-05 10:00:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

huangyc

木虫 (正式写手)

非常感谢ecitpxq和y1ding,我再试试,有问题再请教
5楼2009-01-05 10:33:13
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见