24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2633  |  回复: 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

金虫 (正式写手)

引用回帖:
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的回帖
查看全部 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的回帖

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的回帖

gjh123

金虫 (正式写手)

引用回帖:
4楼: Originally posted by mazuju028 at 2011-08-24 23:18:34:
你的mpif90能用吗?

版主您好,我把编译器该成ifort 后,编译出了libdmy.a. 然后我再用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
/opt/openmpi/bin/mpif90 -FR -lowercase   -O3  -c xml.f90
In file xml.f90:976
,str(
    1
Error: Syntax error in argument list at (1)
In file xml.f90:1029
,str(
    1
Error: Syntax error in argument list at (1)
make: *** [xml.o] Error 1

这个问题怎么解决啊?
5楼2011-08-25 10:35:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见