24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 1973  |  回复: 23
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

心宁

金虫 (正式写手)

[求助] Vasp 5.2 lib编辑错误 求达人指点 谢谢 已有3人参与

/opt/intel/Compiler/11.1/073/bin/intel64/ifort -I/opt/intel/mkl/10.2.6.038/include/fftw -FR -lowercase -assume byterecl -O3 -align -xT -FRDOBJ  -c drdatab.f
ifort: command line warning #10156: ignoring option '-F'; no argument required
drdatab.f(5): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(6): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(82): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(83): 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
---------------------------------------------makefile 如下-------------按照网上说的做了好久 其他都都编辑安装过了 到vasp卡住了------------------------------------------------------------------------------
.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


CPP = /opt/intel/Compiler/11.1/073/bin/icc -E -P -C $*.F >$*.f
#CC= /opt/intel/cce/10.1.018/bin/icc
CC= /opt/intel/Compiler/11.1/073/bin/intel64/icc
#FC= /opt/intel/Compiler/11.0/074/bin/intel64/ifort
FC= /opt/intel/Compiler/11.1/073/bin/intel64/ifort
CFLAGS = -O
OFLAGS = -O3 -align -xT
FFLAGS =  -I/opt/intel/mkl/10.2.6.038/include/fftw -FR -lowercase -assume byterecl $(OFLAGS)

#FREE   =  -FR
FREE   =  -FRDOBJ

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
回复此楼

» 本帖已获得的红花(最新10朵)

» 猜你喜欢

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

志存高远须积厚流广-坚持不懈定斗转星移!
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

心宁

金虫 (正式写手)

[root@localhost vasp.5.lib]# make
ifort -O0 -FI -FR  -c drdatab.f
drdatab.f(5): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
drdatab.f(6): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
drdatab.f(82): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      REAL(q)            FLTRES(*)
-----------^
drdatab.f(83): 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


试了好多次 就是不行 哎  给.bashrc贴出来看看

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
source /opt/intel/Compiler/11.1/073/bin/intel64/ifortvars_intel64.sh
source /opt/intel/Compiler/11.1/073/bin/intel64/iccvars_intel64.sh
source /opt/intel/mkl/10.2.6.038/tools/environment/mklvarsem64t.sh
#./opt/intel/Compiler/11.1/073/bin/ifortvars.sh
#./opt/intel/Compiler/11.1/073/mkl/tools/environment/mklvars32.sh
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
export PATH=$PATH:/opt/intel/Compiler/11.1/073/bin/intel64:/opt/intel/Compiler/11.1/073/bin/ifortvars.sh
export LD_LIBRARY=$LD_LIBRARY:/opt/intel/mkl/10.2.6.038/lib/em64t
export LIBRARY=$LIBRARY:/opt/intel/Compiler/11.1/073/lib/intel64
~
志存高远须积厚流广-坚持不懈定斗转星移!
8楼2014-08-11 22:00:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 24 个回答

chuanghua304

禁虫 (职业作家)


感谢参与,应助指数 +1
liliangfang: 金币+1, 谢谢交流 2014-08-11 07:54:42
本帖内容被屏蔽

2楼2014-08-10 16:33:42
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

chuanghua304

禁虫 (职业作家)

★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
liliangfang: 金币+1, 谢谢交流 2014-08-11 07:54:51
心宁: 金币+10, ★★★很有帮助, 我感觉没有什么错误了啊 跟4.6一样编译的 结果就是不行 哎 2014-08-11 21:49:23
本帖内容被屏蔽

3楼2014-08-10 16:39:11
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

心宁

金虫 (正式写手)

送红花一朵
好的 我慢慢试试吧 谢谢您
志存高远须积厚流广-坚持不懈定斗转星移!
4楼2014-08-10 20:30:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 336材料求调剂 +7 陈滢莹 2026-03-26 9/450 2026-03-27 00:20 by wxiongid
[考研] 341求调剂 +7 青柠檬1 2026-03-26 7/350 2026-03-27 00:19 by wxiongid
[考研] 071000生物学求调剂,初试成绩343 +6 小小甜面团 2026-03-25 6/300 2026-03-26 23:01 by 不吃魚的貓
[考研] 求调剂 一志愿 本科 北科大 化学 343 +6 13831862839 2026-03-24 7/350 2026-03-26 22:57 by 不吃魚的貓
[考研] 324求调剂 +3 hanamiko 2026-03-26 3/150 2026-03-26 21:00 by sanrepian
[考研] 材料考研求调剂 +3 Dendel 2026-03-23 6/300 2026-03-26 17:51 by fmesaito
[考研] 297求调剂 +6 田洪有 2026-03-26 6/300 2026-03-26 15:55 by 不吃魚的貓
[考研] 085600 材料与化工 329分求调剂 +9 Mr. Z 2026-03-25 9/450 2026-03-26 10:36 by baoball
[考研] 309求调剂 +4 gajsj 2026-03-25 5/250 2026-03-26 00:27 by Dyhoer
[考研] 290分调剂求助 +3 吉祥止止陈 2026-03-25 3/150 2026-03-25 19:58 by barlinike
[考研] 材料与化工304求B区调剂 +3 邱gl 2026-03-25 3/150 2026-03-25 19:03 by Ainin_
[考研] 网络空间安全0839招调剂 +4 w320357296 2026-03-25 6/300 2026-03-25 17:59 by 255671
[考研] 求b区院校调剂 +4 周56 2026-03-24 5/250 2026-03-25 17:12 by yishunmin
[考研] 302求调剂 +4 锦衣卫藤椒 2026-03-25 4/200 2026-03-25 16:29 by 功夫疯狂
[有机交流] 有机合成求助 20+3 FENGSHUJEI 2026-03-23 5/250 2026-03-24 19:31 by 88817753
[考研] 070300化学求调剂 +9 苑豆豆 2026-03-20 9/450 2026-03-24 17:15 by licg0208
[考研] 材料专硕331求调剂 +4 鲜当牛 2026-03-24 4/200 2026-03-24 15:58 by JourneyLucky
[考研] 336化工调剂 +4 王大坦1 2026-03-23 5/250 2026-03-23 18:32 by allen-yin
[考研] 260求调剂 +3 朱芷琳 2026-03-20 4/200 2026-03-22 15:12 by 朱芷琳
[考研] 336求调剂 +5 rmc8866 2026-03-21 5/250 2026-03-21 17:24 by 学员8dgXkO
信息提示
请填处理意见