24小时热门版块排行榜    

北京石油化工学院2026年研究生招生接收调剂公告
查看: 3069  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料求调剂 +8 一样YWY 2026-04-05 8/400 2026-04-05 20:41 by 南航~万老师
[硕博家园] 0856材料化工求调剂,一志愿211,初试成绩349 +3 江淮北月 2026-04-05 3/150 2026-04-05 20:31 by 啵啵啵0119
[考研] 考研生物与医药调剂 +8 铁憨憨123425 2026-03-31 8/400 2026-04-05 20:28 by lys0704
[考研] 275求调剂 +16 waltzh 2026-04-01 16/800 2026-04-05 17:14 by Hdyxbekcb
[考研] 320求调剂 +3 一样圆 2026-04-04 3/150 2026-04-04 22:29 by 啵啵啵0119
[考研] 一志愿沪9,求生物学调剂,326分 +6 刘墨墨 2026-04-04 6/300 2026-04-04 19:44 by 唐沐儿
[考研] 一志愿华东理工大学,080500学硕,317分,求调剂 +13 s1145 2026-03-31 15/750 2026-04-03 11:44 by msi123
[考研] 325分化学调剂 +5 15771691647 2026-04-02 5/250 2026-04-03 09:58 by ChemPharm
[考研] 312求调剂 +6 小小墨123 2026-04-02 7/350 2026-04-03 07:32 by jsw79
[考研] 296求调剂 +4 sdhu 2026-04-02 4/200 2026-04-02 21:29 by baoball
[考研] 一志愿山东大学,085600,344 +7 魏子per 2026-04-02 8/400 2026-04-02 21:12 by 百灵童888
[考研] 22408 266求调剂 +3 masss11222 2026-04-02 3/150 2026-04-02 18:11 by 笔落锦州
[考研] 调剂 +3 好好读书。 2026-04-01 6/300 2026-04-02 15:49 by liumengping
[考研] 求调剂推荐 +3 南山南@ 2026-04-01 3/150 2026-04-02 12:09 by xiaoranmu
[考研] 322求调剂 +5 熹僖XX 2026-03-31 6/300 2026-04-02 10:08 by 求调剂zz
[考研] 【求调剂】新能源材料本科,一志愿211,初试321 +6 求调剂学校, 2026-04-02 6/300 2026-04-02 09:41 by 晴空210210
[考研] 286求调剂 +5 Sa67890. 2026-04-01 7/350 2026-04-01 19:50 by 6781022
[考研] 301求调剂 +8 axibli 2026-04-01 8/400 2026-04-01 09:51 by 我的船我的海
[考研] 英一数一总分334求调剂 +4 陈阳坤 2026-03-31 4/200 2026-03-31 14:22 by 记事本2026
[考研] 274求调剂 +6 xiao爱同学 2026-03-30 6/300 2026-03-31 10:04 by cal0306
信息提示
请填处理意见