24小时热门版块排行榜    

查看: 1151  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 面上模板改不了页边距吧? +3 ieewxg 2026-02-25 3/150 2026-02-28 18:25 by addressing
[考研] 高分子化学与物理调剂 +4 好好好1233 2026-02-28 5/250 2026-02-28 18:20 by liqiongjy
[教师之家] 版面费该交吗 +15 苹果在哪里 2026-02-22 18/900 2026-02-28 18:20 by mibaomingg
[考研] 285求调剂 +5 满头大汗的学生 2026-02-28 5/250 2026-02-28 18:10 by 材料专硕调剂;
[考研] 材料类求调剂 +4 wana_kiko 2026-02-28 4/200 2026-02-28 18:08 by djennjx
[考研] 材料调剂 +3 爱擦汗的可乐冰 2026-02-28 3/150 2026-02-28 18:06 by houyaoxu
[考研] 求调剂 +3 repeatt?t 2026-02-28 3/150 2026-02-28 18:00 by houyaoxu
[考博] 博士自荐 +3 kkluvs 2026-02-28 3/150 2026-02-28 16:59 by StarAura
[高分子] 求环氧树脂研发1名 +3 孙xc 2026-02-25 11/550 2026-02-28 16:57 by ichall
[考研] 265分求调剂不调专业和学校有行学上就 +4 礼堂丁真258 2026-02-28 6/300 2026-02-28 16:18 by 求调剂zz
[考博] 26申博 +3 想申博! 2026-02-26 3/150 2026-02-28 16:07 by nxgogo
[考研] 295求调剂 +4 19171856320 2026-02-28 4/200 2026-02-28 13:39 by ms629
[考研] 290求调剂 +4 材料专硕调剂; 2026-02-28 5/250 2026-02-28 13:32 by houyaoxu
[考研] 0856调剂 +3 刘梦微 2026-02-28 3/150 2026-02-28 13:22 by houyaoxu
[考研] 寻找调剂 +3 LYidhsjabdj 2026-02-28 3/150 2026-02-28 12:59 by miniwendy
[硕博家园] 博士自荐 +6 科研狗111 2026-02-26 9/450 2026-02-28 12:32 by seaskyy
[考研] 272求调剂 +3 田智友 2026-02-28 3/150 2026-02-28 12:31 by 王加浩to
[考研] 298求调剂 +4 axyz3 2026-02-28 4/200 2026-02-28 11:21 by wang_dand
[基金申请] 面上可以超过30页吧? +12 阿拉贡aragon 2026-02-22 13/650 2026-02-26 22:09 by Hahaxia
[硕博家园] 【博士招生】太原理工大学2026化工博士 +4 N1ce_try 2026-02-24 8/400 2026-02-26 08:40 by N1ce_try
信息提示
请填处理意见