| 查看: 2965 | 回复: 5 | |||
[求助]
真诚求助vasp.5.lib编译时出错已有2人参与
|
|
希望版上有经验的朋友可以帮忙看看,错误信息是这样的 ifort -O0 -FI -FR -c preclib.f preclib.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLEX BYTE CHARACTER CLASS DOUBLE ... /* Copyright (C) 1991-2016 Free Software Foundation, Inc. ^ preclib.f(16): error #5145: Invalid blank/tab <http://www.gnu.org/licenses/>. */ ----------------------------------^ preclib.f(20): error #5145: Invalid blank/tab include it implicitly at the start of every compilation. It must -----------------------------------------------------------^ preclib.f(27): error #5120: Unterminated character constant /* glibc's intent is to support the IEC 559 math functionality, real --------^ preclib.f(27): error #5144: Invalid character_kind_parameter. No underscore /* glibc's intent is to support the IEC 559 math functionality, real --------------------------------------------------------------------^ preclib.f(28): error #5145: Invalid blank/tab and complex. If the GCC (4.9 and later) predefined macros ---------------^ preclib.f(30): error #5277: Syntax error, found ',' following statement keyword whether the overall intent is to support these features; otherwise, ----------------------------------------------------------------------^ preclib.f(32): error #5145: Invalid blank/tab define these macros by default. */ ----------------------------------^ preclib.f(36): error #5145: Invalid blank/tab /* wchar_t uses Unicode 8.0.0. Version 8.0 of the Unicode Standard is ------------------------------^ preclib.f(38): error #5276: Unbalanced parentheses 2015-05-15). */ -------------^ preclib.f(38): error #5145: Invalid blank/tab 2015-05-15). */ ---------------^ preclib.f(40): error #5145: Invalid blank/tab /* We do not support C11 <threads.h>. */ -------------------------------------^ preclib.f(1): catastrophic error: Could not recover from previous syntax error compilation aborted for preclib.f (code 1) Makefile:58: recipe for target 'preclib.o' failed make: *** [preclib.o] Error 1 |
» 猜你喜欢
AI论文写作工具:是科研加速器还是学术作弊器?
已经有4人回复
寻求一种能扛住强氧化性腐蚀性的容器密封件
已经有7人回复
到新单位后,换了新的研究方向,没有团队,持续积累2区以上论文,能申请到面上吗
已经有8人回复
申请2026年博士
已经有6人回复
请问哪里可以有青B申请的本子可以借鉴一下。
已经有5人回复
天津工业大学郑柳春团队欢迎化学化工、高分子化学或有机合成方向的博士生和硕士生加入
已经有5人回复
2025冷门绝学什么时候出结果
已经有7人回复
请问有评职称,把科研教学业绩算分排序的高校吗
已经有6人回复
Bioresource Technology期刊,第一次返修的时候被退回好几次了
已经有7人回复
请问下大家为什么这个铃木偶联几乎不反应呢
已经有5人回复
|
我的makefile文件是这样的 .SUFFIXES: .inc .f .F #----------------------------------------------------------------------- # Makefile for Portland Group F90/HPF compiler # the makefile was tested only under Linux on Intel platforms # however it might work on other platforms as well # # this release of vasp.4.lib contains lapack v2.0 # this can be compiled with pgf90 compiler if the option -O1 is used # # Mind: one user reported that he had to copy preclib.F diolib.F # dlexlib.F and drdatab.F to the directory vasp.4.4, compile the files # there and link them directly into vasp # for no obvious reason these files could not be linked from the library # #----------------------------------------------------------------------- # C-preprocessor CPP = icc -E -P -C $*.F >$*.f FC=ifort CFLAGS = -O FFLAGS = -O0 -FI FREE = -FR DOBJ = preclib.o timing_.o derrf_.o dclock_.o diolib.o dlexlib.o drdatab.o #----------------------------------------------------------------------- # general rules #----------------------------------------------------------------------- libdmy.a: $(DOBJ) lapack_double.o linpack_double.o lapack_atlas.o -rm libdmy.a ar vq libdmy.a $(DOBJ) # files which do not require autodouble lapack_min.o: lapack_min.f $(FC) $(FFLAGS) $(NOFREE) -c lapack_min.f lapack_double.o: lapack_double.f $(FC) $(FFLAGS) $(NOFREE) -c lapack_double.f lapack_single.o: lapack_single.f $(FC) $(FFLAGS) $(NOFREE) -c lapack_single.f lapack_atlas.o: lapack_atlas.f $(FC) $(FFLAGS) $(NOFREE) -c lapack_atlas.f linpack_double.o: linpack_double.f $(FC) $(FFLAGS) $(NOFREE) -c linpack_double.f linpack_single.o: linpack_single.f $(FC) $(FFLAGS) $(NOFREE) -c linpack_single.f .c.o: $(CC) $(CFLAGS) -c $*.c .F.o: $(CPP) $(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f .F.f: $(CPP) .f.o: $(FC) $(FFLAGS) $(FREE) $(INCS) -c $*.f |
2楼2018-03-28 14:02:22
shqshq
木虫 (正式写手)
- 应助: 12 (小学生)
- 金币: 2575.8
- 散金: 35
- 红花: 1
- 沙发: 1
- 帖子: 307
- 在线: 286.2小时
- 虫号: 806167
- 注册: 2009-07-09
- 性别: GG
- 专业: 凝聚态物性I:结构、力学和
3楼2018-04-14 15:38:57
dxcharlary
专家顾问 (职业作家)
-

专家经验: +83 - 1ST强帖: 2
- 应助: 251 (大学生)
- 金币: 10398.6
- 散金: 155
- 红花: 65
- 帖子: 3137
- 在线: 757.1小时
- 虫号: 936718
- 注册: 2010-01-04
- 专业: 凝聚态物性I:结构、力学和
- 管辖: 第一性原理
4楼2018-05-27 22:26:46
5楼2020-06-13 15:11:50
yangxing0827
银虫 (小有名气)
- 应助: 24 (小学生)
- 金币: 167.4
- 散金: 131
- 红花: 4
- 帖子: 196
- 在线: 55.2小时
- 虫号: 1936836
- 注册: 2012-08-13
- 性别: GG
- 专业: 数理统计

6楼2021-03-05 21:46:53













回复此楼