24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1162  |  回复: 1

zjucy

金虫 (小有名气)

[求助] vasp.5.lib 编译出错,求助如何改正

机器是AMD的三核处理器,用Ifort和openmpi  都装在/usr/local
cp makefile.linux_P4的那个做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     = gcc 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

这里有个问题,我下的是vasp.5.lib的安装包,文件里显示是4.lib,是不是安装文件有问题?
还有AMD的处理器用这个文件可不可以?

下面是出错信息
ifort -O0 -FI -FR  -c drdatab.f
drdatab.f(7): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(8): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(89): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(90): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      COMPLEX(q)         CMPRES(*)
--------------^
compilation aborted for drdatab.f (code 1)
make: *** [drdatab.o] Error 1
[root@localhost vasp.5.lib]# make
ifort -O0 -FI -FR  -c drdatab.f
drdatab.f(7): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(8): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(89): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(90): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      COMPLEX(q)         CMPRES(*)
--------------^
compilation aborted for drdatab.f (code 1)
make: *** [drdatab.o] Error 1
[root@localhost vasp.5.lib]# vi makefile
[root@localhost vasp.5.lib]# make
ifort -O0 -FI -FR  -c drdatab.f
drdatab.f(7): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(8): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(89): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(90): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      COMPLEX(q)         CMPRES(*)
--------------^
compilation aborted for drdatab.f (code 1)
make: *** [drdatab.o] Error 1
[root@localhost vasp.5.lib]# vi makefile
[root@localhost vasp.5.lib]# make
ifort -O0 -FI -FR  -c drdatab.f
drdatab.f(7): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(8): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(89): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(90): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      COMPLEX(q)         CMPRES(*)
--------------^
compilation aborted for drdatab.f (code 1)
make: *** [drdatab.o] Error 1

完全新手入门,对LINUX一知半解。还请各位前辈指教。谢谢!
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

lizhi1314

新虫 (初入文坛)

【答案】应助回帖


感谢参与,应助指数 +1
liliangfang: 金币+1, 谢谢交流 2012-12-01 20:21:53
你应该用的是intel编译器,所以改CPP     = gcc P -C $*.F >$*.f中的gcc为icc,试试
2楼2012-11-30 16:37:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 zjucy 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 求调剂 +5 Hll胡 2026-04-04 5/250 2026-04-04 16:49 by dongzh2009
[考研] 考研生物学考A区211,初试322,科目生化和生物综合,求调剂 +4 。。。54 2026-04-03 4/200 2026-04-04 16:09 by dongzh2009
[考研] 348分环境工程·调剂 +10 吴彦祖24k 2026-04-03 11/550 2026-04-04 14:19 by 无际的草原
[考研] 土木304求调剂 +4 兔突突突, 2026-03-31 4/200 2026-04-04 13:34 by 1753564080
[考研] 考研调剂 +4 zybz冲冲冲 2026-04-03 6/300 2026-04-04 13:08 by zybz冲冲冲
[考研] 0856调剂 +8 曲听筠 2026-03-30 8/400 2026-04-04 08:46 by tianyyysss
[考研] 292求调剂 +21 是妍子也是研子 2026-03-30 22/1100 2026-04-03 21:44 by qlm5820
[考研] 考研调剂 +5 小sun要好运 2026-04-03 5/250 2026-04-03 21:43 by 啵啵啵0119
[考研] 070300一志愿211,312分求调剂院校 +16 小黄鸭宝 2026-03-30 16/800 2026-04-03 19:53 by lijunpoly
[考研] 一志愿华中农业071010,总分320求调剂 +7 困困困困坤坤 2026-04-02 7/350 2026-04-03 17:26 by Yuena_Wang
[考研] 化学调剂 +9 艾志恒 2026-04-03 10/500 2026-04-03 15:51 by 晴空210210
[考研] 282求调剂 不挑专业 求收留 +7 Yam. 2026-03-30 8/400 2026-04-03 14:12 by zhangdingwa
[考研] 285求调剂 +7 AZMK 2026-04-02 9/450 2026-04-03 11:12 by wanwan00
[考研] 274求调剂 +10 薛定谔的虎。 2026-04-01 10/500 2026-04-03 10:13 by tianyyysss
[考研] 349求调剂 +10 zwjjjjjj 2026-03-31 10/500 2026-04-02 20:13 by dongzh2009
[考研] 材料0856 英一数二 323 求调剂 +10 袁sy 2026-04-01 10/500 2026-04-02 19:52 by xingsh
[考研] 能源动力 调剂 +3 不破不立0 2026-04-02 3/150 2026-04-02 12:46 by ffffjjjj
[考研] 材料科学与工程调剂 +18 深V宿舍吧 2026-03-30 19/950 2026-04-02 10:28 by sanrepian
[考研] 070300化学279求调剂 +15 哈哈哈^_^ 2026-03-31 17/850 2026-04-01 21:37 by 给你你注意休息
[考研] 一志愿华东师范大学有机化学专业,初试351分,复试被刷求调剂! +9 真名有冰 2026-03-29 10/500 2026-03-31 18:01 by xhai2011
信息提示
请填处理意见