24小时热门版块排行榜    

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

MilchR

捐助贵宾 (小有名气)

[求助] QE5.2.0make出错 已有1人参与

[新入行,欢迎各路大神指点]
我在使用
- Linux Mint 17.1
- Intel Fortran and C/C++ compilers
- OpenMPI 1.6.5, icc compiled
对QE5.2.0编译时发生了错误(安装openmpi之前是可以正常串行编译的,安装之后无论并行,串行都编译不了,可以成功configure),最后几行是这样的:

fft_custom.f90(501): error #6404: This name does not have a type, and must have an explicit type.   [MPI_MAX]
    CALL MPI_ALLREDUCE( ngwl1, ngwl1_max, 1, MPI_INTEGER, MPI_MAX, gid, IERR )
----------------------------------------------------------^
fft_custom.f90(542): error #6404: This name does not have a type, and must have an explicit type.   [MPI_DOUBLE_COMPLEX]
          CALL MPI_GATHER( pw1_tmp, npw1_max, MPI_DOUBLE_COMPLEX,&
----------------------------------------------^
compilation aborted for fft_custom.f90 (code 1)
make[1]: *** [fft_custom.o] 错误 1
make[1]:正在离开目录 `/home/xxx/公共的/QE/Modules'
make: *** [mods] 错误 1

我的.bashrc文件如下:
source /opt/intel/composer_xe_2015.0.090/bin/compilervars.sh intel64
source /opt/intel/composer_xe_2015.0.090/bin/ifortvars.sh ia32
source /opt/intel/composer_xe_2015.0.090/bin/ifortvars.sh intel64
source /opt/intel/composer_xe_2015.0.090/bin/iccvars.sh ia32
source /opt/intel/composer_xe_2015.0.090/bin/iccvars.sh intel64
source /opt/intel/composer_xe_2015.0.090/bin/compilervars.sh ia32
source /opt/intel/composer_xe_2015.0.090/bin/compilervars.sh intel64
source /opt/intel/impi/5.1.0.079/bin64/mpivars.sh
source /opt/intel/composer_xe_2015.0.090/mkl/bin/intel64/mklvars_intel64.sh

export PATH=$PATH:/home/ricardo/公共的/QE/bin
export PATH=$PATH:/opt/intel/impi/5.1.0.079/intel64/bin
export MPI_HOME=/opt/openmpi-1.6.5
export PATH=$MPI_HOME/bin:$PATH
export LD_LIBRARY_PATH=$MPI_HOME/lib:$LD_LIBRARY_PATH

前几天看到一个类似的帖子是关于编译VASP的,不过没有看懂回复...请各位大神帮忙看看应该如何解决(make.sys已上传)
回复此楼

» 猜你喜欢

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

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

MilchR

捐助贵宾 (小有名气)

引用回帖:
5楼: Originally posted by yyyu200 at 2015-09-05 23:44:57
错误的最初几行能看出什么吗?

这是输入make all之后显示的所有行:
test -d bin || mkdir bin
cd install ; make -f extlibs_makefile libiotk
make[1]: 正在进入目录 `/home/ricardo/common/QE/install'
if test ! -d ../S3DE; then \
        (gzip -dc ../archive/iotk-1.2.beta.tar.gz | (cd ../; tar -xvf -)) ; \
        if test -e Makefile_iotk; then \
        (cp Makefile_iotk ../S3DE/iotk/src/Makefile); fi; \
        if test -e iotk_config.h; then \
        (cp iotk_config.h ../S3DE/iotk/include/iotk_config.h); fi; fi
cd ../S3DE/iotk/src; make lib+util;
make[2]: 正在进入目录 `/home/ricardo/common/QE/S3DE/iotk/src'
make[2]: 没有什么可以做的为 `lib+util'。
make[2]:正在离开目录 `/home/ricardo/common/QE/S3DE/iotk/src'
cd ../bin; ln -fs ../S3DE/iotk/tools/iotk .; \
        ln -fs ../S3DE/iotk/src/iotk.x .; \
        ln -fs ../S3DE/iotk/src/iotk_print_kinds.x .; \
        cd ../; ln -fs S3DE/iotk iotk
make[1]:正在离开目录 `/home/ricardo/common/QE/install'
cd install ; make -f extlibs_makefile libelpa
make[1]: 正在进入目录 `/home/ricardo/common/QE/install'
touch fake_libelpa.a
rm fake_libelpa.a
make[1]:正在离开目录 `/home/ricardo/common/QE/install'
( cd Modules ; make TLDEPS= all || exit 1 )
make[1]: 正在进入目录 `/home/ricardo/common/QE/Modules'
( if test -x ../install/update_version ; then \
        ../install/update_version; \
        else if test ! -f version.f90 ; then \
        cat version.f90.in > version.f90 ; fi ; fi )       
mpif90 -O2 -assume byterecl -g -traceback -nomodule -fpp -D__INTEL -D__FFTW -D__MPI -D__PARA -D__SCALAPACK   -I../include -I../iotk/src -I../ELPA/src -I. -c fft_scalar.f90
mpif90 -O2 -assume byterecl -g -traceback -nomodule -fpp -D__INTEL -D__FFTW -D__MPI -D__PARA -D__SCALAPACK   -I../include -I../iotk/src -I../ELPA/src -I. -c fft_custom.f90
fft_custom.f90(501): error #6404: This name does not have a type, and must have an explicit type.   [MPI_INTEGER]
    CALL MPI_ALLREDUCE( ngwl1, ngwl1_max, 1, MPI_INTEGER, MPI_MAX, gid, IERR )
---------------------------------------------^
fft_custom.f90(501): error #6404: This name does not have a type, and must have an explicit type.   [MPI_MAX]
    CALL MPI_ALLREDUCE( ngwl1, ngwl1_max, 1, MPI_INTEGER, MPI_MAX, gid, IERR )
----------------------------------------------------------^
fft_custom.f90(542): error #6404: This name does not have a type, and must have an explicit type.   [MPI_DOUBLE_COMPLEX]
          CALL MPI_GATHER( pw1_tmp, npw1_max, MPI_DOUBLE_COMPLEX,&
----------------------------------------------^
compilation aborted for fft_custom.f90 (code 1)
make[1]: *** [fft_custom.o] 错误 1
make[1]:正在离开目录 `/home/ricardo/common/QE/Modules'
make: *** [mods] 错误 1
6楼2015-09-06 07:20:12
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 12 个回答

yyyu200

金虫 (小有名气)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
liliangfang: 金币+1, 谢谢交流 2015-09-05 18:24:21
MilchR: 金币+1, 有帮助, 第一个回答,虽然感觉没说对,但是还是很感谢啊! 2015-09-05 20:22:21
感觉目录有中文会有问题

发自小木虫Android客户端
2楼2015-09-05 17:58:15
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

MilchR

捐助贵宾 (小有名气)

引用回帖:
2楼: Originally posted by yyyu200 at 2015-09-05 17:58:15
感觉目录有中文会有问题

这里应该没有问题,因为以前没装openmpi的时候目录也是中文,但是可以make.提示的错误(如上)是fft有问题,感觉是openmpi的问题.
3楼2015-09-05 20:20:59
已阅   关注TA 给TA发消息 送TA红花 TA的回帖

MilchR

捐助贵宾 (小有名气)

引用回帖:
2楼: Originally posted by yyyu200 at 2015-09-05 17:58:15
感觉目录有中文会有问题

目录改为英文,仍然有同样的错误
4楼2015-09-05 20:28:30
已阅   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 294求调剂 +8 淡然654321 2026-04-15 8/400 2026-04-15 21:47 by lbsjt
[考研] 一志愿A区211,22408 321求调剂 +6 随心所欲☆ 2026-04-15 7/350 2026-04-15 21:45 by lbsjt
[考研] 297,工科调剂?河南农业大学本科 +11 河南农业大学-能 2026-04-14 11/550 2026-04-15 15:03 by 学员JpLReM
[考研] 化学070300 求调剂 +23 哈哈哈^_^ 2026-04-12 23/1150 2026-04-14 16:30 by zhouxiaoyu
[考研] 085404 298分求调剂 +11 呼啦呼啦呼呼呼 2026-04-10 12/600 2026-04-14 08:38 by wfj257
[考研] 考研英一数一338分 +9 长江大学东校区 2026-04-13 10/500 2026-04-14 00:41 by 王珺璞
[考研] 0856专硕求调剂 希望是a区院校 +24 好好休息好不好 2026-04-09 27/1350 2026-04-13 22:22 by pies112
[考研] 一志愿浙大生物325分求调剂 +9 zysheng 2026-04-12 9/450 2026-04-12 22:31 by yuyin1233
[考研] 296求调剂 +14 汪!?! 2026-04-10 16/800 2026-04-12 10:48 by zhouyuwinner
[考研] 电气工程专硕320求调剂 +5 小麻子111 2026-04-10 5/250 2026-04-12 10:47 by zhouyuwinner
[考研] 085410 273求调剂 +10 X1999 2026-04-09 10/500 2026-04-12 09:24 by 逆水乘风
[找工作] 山东高校教师考核超级无底线,员工过不下去啦 +4 qut2026 2026-04-09 9/450 2026-04-12 00:54 by qut2026
[考研] 280求调剂 +13 wzzz王 2026-04-09 13/650 2026-04-12 00:31 by 勇攀高峰0126
[考研] 288求调剂 +15 代fish 2026-04-09 16/800 2026-04-11 10:26 by wwj2530616
[考研] 0854调剂 +8 950824he@ 2026-04-09 8/400 2026-04-11 10:11 by zhq0425
[考研] 289 分105500药学专硕求调剂(找B区学校) +6 白云123456789 2026-04-09 8/400 2026-04-10 21:13 by zhouxiaoyu
[考研] 一志愿矿大,材料工程专硕314分,0856可调都可以 +15 无懈可击的巨人 2026-04-09 15/750 2026-04-10 18:10 by hmn_wj
[考研] 298求调剂 +13 钉叮咚冬瓜 2026-04-09 13/650 2026-04-10 15:49 by jiajinhpu
[考研] 求调剂 材料与工程 324分 专硕 +19 翩翩一书生 2026-04-10 21/1050 2026-04-10 11:41 by wp06
[考研] 材料专硕初试分332一志愿西北工业大学, +12 故人?? 2026-04-09 12/600 2026-04-09 18:34 by Ccclqqq
信息提示
请填处理意见