24小时热门版块排行榜    

查看: 3055  |  回复: 9
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

gjh123

金虫 (正式写手)

[求助] vasp 编译出错 (求助)

使用pgi 在服务器上并行编译vasp 5.2,在编译vasp.5.lib时出错:

[root@cluster vasp.5.lib]# make
mpif90 -Mx,119,0x200000  -O1 -tp k8-64 -i8 -Mfree  -c preclib.f
mpif90 -Mx,119,0x200000  -O1 -tp k8-64 -i8 -Mfree  -c diolib.f
mpif90 -Mx,119,0x200000  -O1 -tp k8-64 -i8 -Mfree  -c dlexlib.f
mpif90 -Mx,119,0x200000  -O1 -tp k8-64 -i8 -Mfree  -c drdatab.f
rm libdmy.a
rm: cannot remove `libdmy.a': No such file or directory
make: [libdmy.a] Error 1 (ignored)
ar vq libdmy.a preclib.o timing_.o derrf_.o dclock_.o  diolib.o dlexlib.o drdatab.o
ar: creating libdmy.a
ar: preclib.o: No such file or directory
make: *** [libdmy.a] Error 1

出现这个错误是什么原因呢?哪位高手可以指点一下
回复此楼

» 猜你喜欢

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

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

gjh123

金虫 (正式写手)

引用回帖:
7楼: Originally posted by mazuju028 at 2011-08-25 15:40:17:
你说的问题,我没见过啊,呵呵,等一下别人的回答。

谢谢您的回答。我重新编译了一下openmpi后,再编译vasp ,又出现了这个错误,您知道是怎么回事吗?

[root@cluster vasp.5.2]# make
./preprocess xml.f90 -DMPI  -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DCACHE_SIZE=16000 -DPGF90 -Davoidalloc -DNGZhalf -DMPI_BLOCK=8000    -DRPROMU_DGEMV  -DRACCMU_DGEMV
/sourcecode/openmpi/bin/mpif90 -FR -lowercase   -O3  -c xml.f90
xml.f90(53): error #7013: This module file was not generated by any release of this compiler.   [PREC]
        USE prec
------------^
xml.f90(179): error #6683: A kind type parameter must be a compile-time constant.   [Q]
          REAL(q)       :: r
---------------^
xml.f90(206): error #6683: A kind type parameter must be a compile-time constant.   [Q]
          REAL(q)       :: r
---------------^
xml.f90(236): error #6683: A kind type parameter must be a compile-time constant.   [Q]
          REAL(q)       :: v(
---------------^
xml.f90(318): error #6683: A kind type parameter must be a compile-time constant.   [Q]
          REAL(q)       :: time1, time2
---------------^
xml.f90(348): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: X(:,
-------------^
xml.f90(404): error #6683: A kind type parameter must be a compile-time constant.   [Q]
          REAL(q)       :: v(
---------------^
xml.f90(604): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: VKPT(:,
-------------^
xml.f90(605): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: WTKPT(
-------------^
xml.f90(607): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q),OPTIONAL :: VOLWGT
-------------^
xml.f90(610): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: tmp(1)
-------------^
xml.f90(643): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        COMPLEX(q) :: CELTOT(:, :,
----------------^
xml.f90(644): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: FERTOT(:, :,
-------------^
xml.f90(663): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        COMPLEX(q) :: CELTOT(:, :,
----------------^
xml.f90(664): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: FERTOT(:, :,
-------------^
xml.f90(668): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: TMP(2)
-------------^
xml.f90(710): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: EIGENVAL( NDATA, NB_TOT, NKPTS, ISPIN)
-------------^
xml.f90(714): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: TMP(NDATA)
-------------^
xml.f90(757): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) EFERMI
-------------^
xml.f90(758): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) EMIN, EMAX               ! minimal and maximal energy
-------------^
xml.f90(765): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: DOS(NEDOS, ISPIN), DOSI(NEDOS, ISPIN)
-------------^
xml.f90(766): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: DOSPAR(NEDOS, LDIM, NIONS, ISPIN)
-------------^
xml.f90(770): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: E(NEDOS)
-------------^
xml.f90(771): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q) :: DELTAE
-------------^
xml.f90(772): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q), ALLOCATABLE :: TMP(
-------------^
xml.f90(899): error #7013: This module file was not generated by any release of this compiler.   [VASPXML]
        USE vaspxml
------------^
xml.f90(906): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        REAL(q)    :: FLTRES(*)
-------------^
xml.f90(907): error #6683: A kind type parameter must be a compile-time constant.   [Q]
        COMPLEX(q) :: CMPRES(*)
----------------^
xml.f90(915): error #6404: This name does not have a type, and must have an explicit type.   [LXML]
        IF (.NOT. lxml) RETURN
------------------^
xml.f90(920): error #6404: This name does not have a type, and must have an explicit type.   [UIXML]
              WRITE(uixml, '(A,"<",A,">",A,""',ADVANCE="Yes"  blank(1:inden),tag,str(1:i),tag
--------------------^
(952): catastrophic error: Too many errors, exiting
compilation aborted for xml.f90 (code 1)
make: *** [xml.o] Error 1
8楼2011-08-25 16:45:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 10 个回答

mazuju028

木虫 (正式写手)

【答案】应助回帖


gjh123(金币+10): 2011-08-24 21:09:09
youzhizhe(金币+1): 谢谢交流。 2011-08-25 23:37:07
要看一下makefile才知道问题啊。
一般吧FC设置正确,编译应该没有问题的。
锐气藏于胸,和气浮于脸,才气见于事,义气施与人
2楼2011-08-24 17:49:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gjh123

金虫 (正式写手)

引用回帖:
2楼: Originally posted by mazuju028 at 2011-08-24 17:49:48:
要看一下makefile才知道问题啊。
一般吧FC设置正确,编译应该没有问题的。

这个是我的makefile, 麻烦版主帮我看看哪个地方出错了吧?

Last login: Wed Aug 24 21:05:52 2011
Rocks 5.3 (Rolled Tacos)
Profile built 20:55 26-May-2011
Kickstarted 05:21 27-May-2011
[root@cluster ~]# cd /sourcecode/vasp5.2/vasp.5.lib
[root@cluster vasp.5.lib]# vi 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     = mpicc -E -P -C $*.F >$*.f
FC=mpif90 -Mx,119,0x200000

CFLAGS = -O
FFLAGS = -O1 -tp k8-64 -i8
FREE   = -Mfree

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_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
3楼2011-08-24 21:08:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mazuju028

木虫 (正式写手)

【答案】应助回帖


gjh123(金币+10): 2011-08-25 10:29:28
youzhizhe(金币+1): 谢谢交流。 2011-08-25 23:37:16
引用回帖:
3楼: Originally posted by gjh123 at 2011-08-24 21:08:04:
这个是我的makefile, 麻烦版主帮我看看哪个地方出错了吧?

Last login: Wed Aug 24 21:05:52 2011
Rocks 5.3 (Rolled Tacos)
Profile built 20:55 26-May-2011
Kickstarted 05:21 27-May-2011
[root@clus ...

你的mpif90能用吗?
锐气藏于胸,和气浮于脸,才气见于事,义气施与人
4楼2011-08-24 23:18:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[教师之家] 售SCI一区文章,我:8.O.55.1.O.54,科目齐全,可伽急 +3 BnSlaJi8z5Vo 2026-08-17 3/150 2026-08-17 17:38 by CBFiACZS7HAK
[基金申请] 感觉是下周放榜了 +4 angus9576 2026-08-17 8/400 2026-08-17 17:26 by angus9576
[考博] 售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急 +3 i7NFEVbjQMM5 2026-08-16 5/250 2026-08-17 16:38 by CBFiACZS7HAK
[博后之家] 售SCI一区文章,我:8.O.551.O.5.4,科目全,可伽急 +4 6GojgJvkDudM 2026-08-16 7/350 2026-08-17 16:14 by CBFiACZS7HAK
[基金申请] 今天系统多次维护,明天很可能放榜! +8 zju2000 2026-08-16 9/450 2026-08-17 12:20 by lmz0216
[硕博家园] 售SCI一区T0P文章,我:8O.55.1.O.5.4,科目齐全,可+急 +3 i7NFEVbjQMM5 2026-08-16 4/200 2026-08-17 12:10 by 4GBAYCdVQoK3
[教师之家] 售SCI一区T0P文章,我:8.O.55.1.O.5.4,科目全,可+急 +3 6GojgJvkDudM 2026-08-16 3/150 2026-08-17 09:49 by xLVPIRuSvCUe
[论文投稿] 岩土工程学报什么时候才能终审完呐 25+3 yeager111 2026-08-10 4/200 2026-08-16 20:42 by tfang
[基金申请] 快农历七夕节了,轻松一下,男人悄悄话,女施主请不要进来。 +3 Tide man 2026-08-14 3/150 2026-08-16 17:47 by jurkat.1640
[基金申请] 咱们一起用铁证分析2026国家社科基金中标与否 +7 启萌科技 2026-08-12 26/1300 2026-08-16 12:35 by 启萌科技
[基金申请] 有时候,自然基金真的不能太认真 (我的申报经验) +10 majunge000 2026-08-11 12/600 2026-08-16 08:18 by xli1984
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
[基金申请] 各位道友,我要去昆明玩几天,回来见。 +7 Tide man 2026-08-14 8/400 2026-08-15 01:11 by arzu_hma
[基金申请] 是这周出结果还是下周出结果? +4 yuleib84 2026-08-11 4/200 2026-08-14 23:05 by lfy8008
[基金申请] 重要来源:本周末出结果 +10 瞬息宇宙 2026-08-12 10/500 2026-08-13 15:46 by likettle
[基金申请] 不应该看fileCode +7 且听虎啸 2026-08-12 9/450 2026-08-13 14:27 by flydreamws
[基金申请] Filecode 又变了,巨变 +3 WH3796 2026-08-12 4/200 2026-08-13 14:13 by 小木虫6752397
[基金申请] 结合人工智能,周易传统文化,filecode打分制来了,3分以上希望很大。 +3 Tide man 2026-08-12 4/200 2026-08-13 08:35 by ZJTJZ
[基金申请] 2019年青年基金涵评意见,大家看看几个A,几个B? +11 Tide man 2026-08-11 11/550 2026-08-13 07:35 by 撸猫猫
[基金申请] 什么时候出结果,有咨询渠道??? +3 Tide man 2026-08-11 3/150 2026-08-11 17:54 by kudofaye
信息提示
请填处理意见