24小时热门版块排行榜    

查看: 1281  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 ELBZ6WwEaRj6 2026-11-04 8/400 2026-11-06 05:33 by qL1cU46YIdK0
[公派出国] 售SCI一区T0P文章,我:8.O.55.1.O.54,科目齐全,可+急 +3 ttH3f1oA6ace 2026-11-04 8/400 2026-11-06 05:22 by qL1cU46YIdK0
[公派出国] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 ttH3f1oA6ace 2026-11-04 10/500 2026-11-06 05:21 by qL1cU46YIdK0
[硕博家园] 售SCI一区文章,我:8O5.5.1.O5.4,科目全,可伽急 +3 ttH3f1oA6ace 2026-11-04 9/450 2026-11-06 05:21 by qL1cU46YIdK0
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +7 ncTVBM6AOJHF 2026-11-04 11/550 2026-11-06 05:15 by Equinoxhua
[考研] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +4 ttH3f1oA6ace 2026-11-04 14/700 2026-11-06 05:11 by qL1cU46YIdK0
[考博] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +6 ncTVBM6AOJHF 2026-11-04 16/800 2026-11-06 04:58 by qL1cU46YIdK0
[公派出国] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +5 ncTVBM6AOJHF 2026-11-04 14/700 2026-11-06 04:58 by qL1cU46YIdK0
[考研] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +6 ncTVBM6AOJHF 2026-11-04 13/650 2026-11-06 04:49 by qL1cU46YIdK0
[考博] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +7 ncTVBM6AOJHF 2026-11-04 19/950 2026-11-06 04:38 by qL1cU46YIdK0
[公派出国] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +3 ELBZ6WwEaRj6 2026-11-05 4/200 2026-11-06 02:37 by qL1cU46YIdK0
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +4 ELBZ6WwEaRj6 2026-11-04 9/450 2026-11-06 02:26 by qL1cU46YIdK0
[公派出国] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 ELBZ6WwEaRj6 2026-11-04 9/450 2026-11-06 02:15 by qL1cU46YIdK0
[考博] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +4 ttH3f1oA6ace 2026-11-04 7/350 2026-11-06 02:13 by qL1cU46YIdK0
[考研] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +4 ttH3f1oA6ace 2026-11-04 10/500 2026-11-06 02:04 by qL1cU46YIdK0
[硕博家园] 售SCI-T0P文章,我:8O.5.5.1.O.54,科目齐全,可+急 +3 ttH3f1oA6ace 2026-11-04 9/450 2026-11-06 02:02 by qL1cU46YIdK0
[硕博家园] 售SCI一区T0P文章,我:8.O55.1.O.54,科目全,可十急 +4 hNpp4Y2CGvSC 2026-11-04 12/600 2026-11-06 01:53 by qL1cU46YIdK0
[考研] 售一区SCI文章T0P,我:8O.551.O54,科目全,可十急 +5 ncTVBM6AOJHF 2026-11-04 12/600 2026-11-06 01:42 by qL1cU46YIdK0
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +5 ncTVBM6AOJHF 2026-11-04 11/550 2026-11-06 01:20 by qL1cU46YIdK0
[教师之家] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +4 ncTVBM6AOJHF 2026-11-04 12/600 2026-11-05 11:10 by PYZmcHr5kSaq
信息提示
请填处理意见