24小时热门版块排行榜    

查看: 3020  |  回复: 16
本帖产生 1 个 1ST强帖 ,点击这里进行查看

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

[求助] 编译VASP报错,求解释!

大家帮忙看下报错信息!谢谢了!
cp makefile.linux_ifc_P4  makefile
打开makefile文件修改FC=ifort 保存文件
make
之后的报错信息如下:

./preprocess fftw3d.f90  -DHOST=\"LinuxIFC\" -Dkind8 -DNGXhalf -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc
ifort  -FR -lowercase -assume byterecl  -O3 -xW -tpp7  -c fftw3d.f90
fortcom: Error: fftw3d.f90, line 427: Cannot open include file 'fftw3.f'
       include 'fftw3.f'
---------------^
fortcom: Error: fftw3d.f90, line 436: This name does not have a type, and must have an explicit type.   [FFTW_FORWARD]
                           FFTW_FORWARD, FFTW_ESTIMATE)
---------------------------^
fortcom: Error: fftw3d.f90, line 436: This name does not have a type, and must have an explicit type.   [FFTW_ESTIMATE]
                           FFTW_FORWARD, FFTW_ESTIMATE)
-----------------------------------------^
fortcom: Error: fftw3d.f90, line 440: This name does not have a type, and must have an explicit type.   [FFTW_BACKWARD]
                           FFTW_BACKWARD, FFTW_ESTIMATE)
---------------------------^
fortcom: Error: fftw3d.f90, line 456: Cannot open include file 'fftw3.f'
       include 'fftw3.f'
---------------^
fortcom: Error: fftw3d.f90, line 463: This name does not have a type, and must have an explicit type.   [FFTW_FORWARD]
                           FFTW_FORWARD, FFTW_EXHAUSTIVE)
---------------------------^
fortcom: Error: fftw3d.f90, line 463: This name does not have a type, and must have an explicit type.   [FFTW_EXHAUSTIVE]
                           FFTW_FORWARD, FFTW_EXHAUSTIVE)
-----------------------------------------^
fortcom: Error: fftw3d.f90, line 467: This name does not have a type, and must have an explicit type.   [FFTW_BACKWARD]
                           FFTW_BACKWARD, FFTW_EXHAUSTIVE)
---------------------------^
fftw3d.f90(318) : (col. 16) remark: LOOP WAS VECTORIZED.
compilation aborted for fftw3d.f90 (code 1)
make: *** [fftw3d.o] Error 1
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

guohuazhong

至尊木虫 (职业作家)

★ ★
mazuju028(金币+2): 谢谢交流 2011-05-08 22:39:59
建议把-assume byterecl  -O3 -xW -tpp7  编译选项去掉试试
2楼2011-05-08 19:16:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfc

金虫 (正式写手)

【答案】应助回帖

★ ★
gmy1990(金币+5): 嗯,我试试,谢啦! 2011-05-08 21:17:04
mazuju028(金币+2): 谢谢交流 2011-05-08 22:40:12
并行编译那块的设置问题?
BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

SCA= $(SCA_)/libscalapack.a  \
$(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/blacs_MPI-LINUX-0.a $(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a

SCA=/opt/intel/composerxe-2011.3.174/mkl/lib/ia32/libmkl_scalapack_core.a  /opt/intel/composerxe-2011.3.174/mkl/lib/ia32/libmkl_blacs_intelmpi.a

#-----------------------------------------------------------------------
# libraries for mpi
#-----------------------------------------------------------------------

#LIB     = -L../vasp.4.lib -ldmy  \
#      ../vasp.4.lib/linpack_double.o $(LAPACK) \
#      $(SCA) $(BLAS)

# FFT: fftmpi.o with fft3dlib of Juergen Furthmueller
FFT3D   = fftmpi.o fftmpi_map.o fft3dlib.o   ##这里改改试一下?

# fftw.3.0.1 is slighly faster and should be used if available
#FFT3D   = fftmpiw.o fftmpi_map.o fft3dlib.o  /opt/intel/composerxe-2011.3.174/mkl/interfaces/fftw3xf/libfftw3xf_intel.a
3楼2011-05-08 21:14:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

引用回帖:
Originally posted by mengfc at 2011-05-08 21:14:59:
并行编译那块的设置问题?
BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

SCA= $(SCA_)/libscalapack.a  \
$(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/ ...

还是不行,报错:compilation aborted for fftmpi_map.f90 (code 1)
4楼2011-05-08 21:22:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfc

金虫 (正式写手)

贴出来makefile一起来研究下吧~
5楼2011-05-08 22:02:24
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

引用回帖:
Originally posted by mengfc at 2011-05-08 22:02:24:
贴出来makefile一起来研究下吧~

makefile文件贴上来了,谢谢大家查看!
6楼2011-05-08 22:27:00
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

补充下,最上面的报错是由于缺少fftw3d.f文件,后来直接传了一份放在指定路径下,报错信息为缺少 fftw-3.0.1(No rule to make target `/opt/libs/fftw-3.0.1/lib/libfftw3.a', needed by `vasp'.  Stop.)
7楼2011-05-08 22:29:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

gmy1990

荣誉版主 (著名写手)

优秀版主优秀版主

引用回帖:
Originally posted by mengfc at 2011-05-08 21:14:59:
并行编译那块的设置问题?
BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

SCA= $(SCA_)/libscalapack.a  \
$(BLACS)/LIB/blacsF77init_MPI-LINUX-0.a $(BLACS)/LIB/ ...

接着补充,那玩意不就是个加速器吗?既然缺少,我找到个fftw-3.2.2,安装上,结果报错信息为 No rule to make target `/opt/libs/fftw-3.2.2/lib/libfftw3.a', needed by `vasp'.  Stop.
不是装上了么?难道我路径指示不正确?我把新的makefile再贴上来,大家帮忙好好看看呀!
8楼2011-05-08 22:37:34
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

wslnwzj

金虫 (正式写手)

路过BD
9楼2011-05-09 11:26:18
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mengfc

金虫 (正式写手)

【答案】应助回帖

★ ★
gmy1990(金币+5): 谢谢! 2011-05-09 14:12:23
franch(金币+2, 1ST强帖+1): 2011-05-09 17:23:28
sorry i cannot type chinese now.
OFLAG=-O3 -xW -tpp7 #delete '-tpp7' and have a try

#-----------------------------------------------------------------------
# fft libraries:
# VASP.4.6 can use fftw.3.0.X (http://www.fftw.org)
# since this version is faster on P4 machines, we recommend to use it
#-----------------------------------------------------------------------

#FFT3D   = fft3dfurth.o fft3dlib.o
FFT3D   = fftw3d.o fft3dlib.o   /opt/libs/fftw-3.2.2/lib/libfftw3.a #here i am not sure what the usage of the this option. i used to try to cancel this option using '#',and succeeded.

#FC=mpif77
#FCL=$(FC)

#-----------------------------------------------------------------------
# additional options for CPP in parallel version (see also above):
# NGZhalf               charge density   reduced in Z direction
# wNGZhalf              gamma point only reduced in Z direction
# scaLAPACK             use scaLAPACK (usually slower on 100 Mbit Net)
#-----------------------------------------------------------------------

#CPP    = $(CPP_) -DMPI  -DHOST=\"LinuxIFC\" -DIFC \
#     -Dkind8 -DNGZhalf -DCACHE_SIZE=4000 -DPGF90 -Davoidalloc \
#     -DMPI_BLOCK=500  \
##    -DRPROMU_DGEMV  -DRACCMU_DGEMV

#-----------------------------------------------------------------------
# location of SCALAPACK
# if you do not use SCALAPACK simply uncomment the line SCA
#-----------------------------------------------------------------------

BLACS=$(HOME)/archives/SCALAPACK/BLACS/
SCA_=$(HOME)/archives/SCALAPACK/SCALAPACK

#-----------------------------------------------------------------------
# libraries for mpi
#-----------------------------------------------------------------------

#LIB     = -L../vasp.4.lib -ldmy  \
#      ../vasp.4.lib/linpack_double.o $(LAPACK) \
#      $(SCA) $(BLAS)

# FFT: fftmpi.o with fft3dlib of Juergen Furthmueller
#FFT3D   = fftmpi.o fftmpi_map.o fft3dlib.o

# fftw.3.2.2 is slighly faster and should be used if available
#FFT3D   = fftmpiw.o fftmpi_map.o fft3dlib.o   /opt/libs/fftw-3.2.2/lib/libfftw3.a

as for these ,do you install mpi? if so, you should have some changes and i advise you to refer to my makefile http://muchong.com/bbs/viewthread.php?tid=3142492

good luck.
10楼2011-05-09 14:06:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 gmy1990 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 070300化学学硕求调剂 +6 太想进步了0608 2026-03-16 6/300 2026-03-16 16:13 by kykm678
[考研] 085600材料与化工 求调剂 +13 enenenhui 2026-03-13 14/700 2026-03-16 15:19 by 了了了了。。
[考研] 材料与化工一志愿南昌大学327求调剂推荐 +7 Ncdx123456 2026-03-13 8/400 2026-03-16 12:15 by karry wen
[考研] 311求调剂 +6 冬十三 2026-03-15 6/300 2026-03-16 08:00 by wang_dand
[考研] 288求调剂 +4 奇点0314 2026-03-14 4/200 2026-03-14 23:04 by JourneyLucky
[考研] 080500,材料学硕302分求调剂学校 +4 初识可乐 2026-03-14 5/250 2026-03-14 21:08 by peike
[考研] 一志愿哈工大材料324分求调剂 +5 闫旭东 2026-03-14 5/250 2026-03-14 14:53 by 木瓜膏
[考研] 一志愿湖师大化学289求调剂 +6 XMCMM3.14159 2026-03-10 6/300 2026-03-14 00:28 by JourneyLucky
[考研] 321求调剂 +3 CUcat 2026-03-10 3/150 2026-03-14 00:25 by JourneyLucky
[考研] 341求调剂 +4 番茄头--- 2026-03-10 4/200 2026-03-13 23:12 by JourneyLucky
[考研] 求调剂 +5 一定有学上- 2026-03-12 5/250 2026-03-13 18:31 by ms629
[考研] 材料专硕350 求调剂 +4 王金科 2026-03-12 4/200 2026-03-13 16:02 by ruiyingmiao
[考研] 土木第一志愿276求调剂,科研和技能十分丰富,求新兴方向的导师收留 +3 土木小天才 2026-03-12 3/150 2026-03-13 15:01 by JourneyLucky
[考研] 277求调剂 +4 anchor17 2026-03-12 4/200 2026-03-13 11:15 by 白夜悠长
[考研] 296求调剂 +3 大口吃饭 身体健 2026-03-13 3/150 2026-03-13 10:31 by 学员8dgXkO
[考研] 270求调剂 085600材料与化工专硕 +3 YXCT 2026-03-11 3/150 2026-03-13 10:13 by houyaoxu
[考博] 福州大学杨黄浩课题组招收2026年专业学位博士研究生,2026.03.20截止 +3 Xiangyu_ou 2026-03-12 3/150 2026-03-13 09:36 by duanwu655
[考研] 283求调剂,材料、化工皆可 +8 苏打水7777 2026-03-11 10/500 2026-03-13 09:06 by Linda Hu
[考研] 341求调剂 +4 捣蛋猪猪 2026-03-11 4/200 2026-03-12 14:47 by ruiyingmiao
[考研] 化工0817调剂 +8 灿若星晨 2026-03-10 8/400 2026-03-10 22:44 by 星空星月
信息提示
请填处理意见