24小时热门版块排行榜    

查看: 405  |  回复: 2

mengfc

金虫 (正式写手)

[交流] 【求助】VASP编译时出现问题

使用的是64位PGI编译器,系统是64位CentOS

在vasp.4.lib文件夹下,cp makefile.linux_pgi_opt makefile 之后进行make,出现

[mengfc@mengfc vasp.4.lib]# make
pgf90 -Mx,119,0x200000  -O1 -tp k8-64 -i8 -Mfree  -c preclib.f
/tmp/pgf90lHAbH2T4O4-3.s: Assembler messages:
/tmp/pgf90lHAbH2T4O4-3.s:27: Error: cannot represent relocation type BFD_RELOC_64
make: *** [preclib.o] Error 2

请问这是什么问题?该如何改正?

[ Last edited by mengfc on 2010-10-21 at 11:18 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

cenwanglai

荣誉版主 (知名作家)

老和山猥琐派九段

优秀版主

mengfc(金币+3):谢谢 2010-10-23 09:15:04
你的makefile是否需要修改?贴出来看看?
2楼2010-10-21 13:24:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfc

金虫 (正式写手)

引用回帖:
Originally posted by cenwanglai at 2010-10-21 13:24:24:
你的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 -E -P -C $*.F >$*.f
FC=pgf90 -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楼2010-10-21 22:35:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 mengfc 的主题更新
普通表情 高级回复 (可上传附件)
信息提示
请填处理意见