24小时热门版块排行榜     石溪大学接受考研调剂申请>

【调剂】北京石油化工学院2024年16个专业接受调剂
查看: 2589  |  回复: 5
【悬赏金币】回答本帖问题,作者tfydfred将赠送您 8 个金币

tfydfred

新虫 (初入文坛)

[求助] 真诚求助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
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tfydfred

新虫 (初入文坛)

我的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
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

shqshq

木虫 (正式写手)

【答案】应助回帖

这是我的makefile里的内容,仅供参考

# C-preprocessor
CPP     = gcc -E -P -C $*.F >$*.f
FC=ifort

CFLAGS = -O2
FFLAGS = -O2 -FI
FREE   =  -FR
3楼2018-04-14 15:38:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dxcharlary

专家顾问 (著名写手)

【答案】应助回帖

你不会是在windows里面解压的吧。
4楼2018-05-27 22:26:46
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

xyf9526

新虫 (小有名气)

我也遇到同样的错误,楼主解决了吗?
5楼2020-06-13 15:11:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yangxing0827

银虫 (小有名气)

引用回帖:
5楼: Originally posted by xyf9526 at 2020-06-13 15:11:50
我也遇到同样的错误,楼主解决了吗?

您好,请问你解决这个问题了吗
自信,理解
6楼2021-03-05 21:46:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 tfydfred 的主题更新
不应助 确定回帖应助 (注意:应助才可能被奖励,但不允许灌水,必须填写15个字符以上)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考博] 25年博士申请 +6 Changzixuan 2024-04-25 10/500 2024-04-26 11:51 by 安塔瓦拉多
[硕博家园] 考研,求职还是考编? +15 xizj 2024-04-21 24/1200 2024-04-26 11:49 by Kan客
[基金申请] 基金开始函评了吗? +13 wych1103 2024-04-25 13/650 2024-04-26 11:33 by wolfgangHugh
[硕博家园] 博士白读了 +42 Da_Meng_Zi 2024-04-21 46/2300 2024-04-26 11:25 by Kan客
[论文投稿] with editor 两个月了,什么原因? +6 yiersan9 2024-04-24 13/650 2024-04-26 10:27 by xs74101122
[论文投稿] Nature一直在编辑手里,考虑好几天了,是悬了吗 +12 彩虹初见 2024-04-24 12/600 2024-04-25 19:21 by 雪径踏青
[教师之家] 期末给学生划重点都是什么话术啊 +16 luokereng 2024-04-20 18/900 2024-04-25 15:46 by BusyGer
[考博] 求博导 +6 好okjh 2024-04-21 10/500 2024-04-25 14:04 by 好okjh
[论文投稿] 一直找不到审稿人 +5 lizhengke06 2024-04-21 6/300 2024-04-25 14:01 by chongdong
[考博] 真的好想读博! +14 wangzhe_bs 2024-04-22 17/850 2024-04-25 11:36 by 庭前花未开
[电化学] 耗材发问 +4 Happy C 2024-04-22 4/200 2024-04-25 11:03 by 普通小虫
[考研] 0854-0855调剂 +7 shangannum1 2024-04-21 10/500 2024-04-25 01:31 by 啊廖sh
[基金申请] 化学结清有情发出来了 +3 starboy7286 2024-04-20 3/150 2024-04-24 15:52 by 嘿,黑贝
[考博] 博士招生 +4 zx179 2024-04-24 7/350 2024-04-24 15:01 by H考研成功
[有机交流] 紧急求助,有谁用过三甲基硅醇钾TMSOK吗? 1000+3 genius2008 2024-04-19 10/500 2024-04-24 12:37 by genius2008
[论文投稿] 期刊推荐 20+4 木颜尘ip 2024-04-22 7/350 2024-04-24 10:06 by bobvan
[考博] 申博成果界定是根据Jcr分区还是中科院分区 +4 我属驴核动力驴 2024-04-22 5/250 2024-04-24 08:47 by 晓目崇
[论文投稿] 无under review,直接DIP,咋么办。 +10 lizhengke06 2024-04-19 16/800 2024-04-23 19:15 by 化学程序员
[高分子] 请问UV灯是365nm的,那么选光引发剂的波长选多少的?要完全一致吗? +4 engledd2004 2024-04-21 4/200 2024-04-22 16:08 by wangcz23
[考研] 问题已经解决。 +13 lekinna 2024-04-19 30/1500 2024-04-22 13:09 by 矛dei到
信息提示
请填处理意见