24小时热门版块排行榜    

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

Zepiou

铜虫 (初入文坛)

[求助] 安装vasp时,出现如下错误,应该怎么解决,求助? 已有2人参与

[zepiou@localhost vasp.4.6]$ make -f makefile.linux_ifc_P4
./preprocess <base.F | /usr/bin/cpp -P -C -traditional >base.f90  -DHOST=\"LinuxIFC\" -Dkind8 -DNGXhalf -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc
ifort -FR -lowercase -assume byterecl  -O3 -xW -tpp7  -c base.f90
ifort: command line remark #10010: option '-lowercase' is deprecated and will be removed in a future release. See '-help deprecated'
ifort: command line remark #10279: option '-xW' is deprecated and will be removed in a future release. See '-help deprecated'
ifort: command line remark #10148: option '-tpp7' not supported
base.f90(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK BLOCKDATA PROGRAM MODULE TYPE INTEGER REAL ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
base.f90(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
base.f90(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
base.f90(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
base.f90(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
base.f90(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
base.f90(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for base.f90 (code 1)
make: *** [base.o] 错误 1
回复此楼

» 猜你喜欢

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

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

magicmonk

至尊木虫 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★
Zepiou: 金币+5, 有帮助 2014-08-18 10:53:04
楼主的Makefile有点乱,你是要并行编译吗?如果是的话,前面串行部分的FC=ifort以及数学库(lapack,sca,fftw,blas,lib)路径注释掉就好;编译优化选项OFLAG不需要做修改;并行编译器最好选mpiifort,这个不容易出错;数学库都在并行部分引用,最好按照Makefile默认格式,引用好mkl的路径
我们最深的恐惧不是我们能力不够,我们最深的恐惧是能力超越了极限。
6楼2014-08-15 17:23:21
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 6 个回答

jpchou

专家顾问 (著名写手)

【答案】应助回帖

★ ★
感谢参与,应助指数 +1
fzx2008: 金币+2, 谢谢指导 2014-08-27 13:40:40
最快的解決方法
不要用 intel compiler 2013 (我猜你應該是用 2013 吧)
想辦法裝 intel compiler 2011
用 2011 應該可以解決你目前的困擾
2楼2014-08-13 15:52:31
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

magicmonk

至尊木虫 (著名写手)

【答案】应助回帖

感谢参与,应助指数 +1
最好把Makefile贴出来
我们最深的恐惧不是我们能力不够,我们最深的恐惧是能力超越了极限。
3楼2014-08-14 08:53:06
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Zepiou

铜虫 (初入文坛)

引用回帖:
3楼: Originally posted by magicmonk at 2014-08-14 08:53:06
最好把Makefile贴出来

.SUFFIXES: .inc .f .f90 .F
#-----------------------------------------------------------------------
# Makefile for Intel Fortran compiler for P4 systems
#
# The makefile was tested only under Linux on Intel platforms
# (Suse 5.3- Suse 9.0)
# the followin compiler versions have been tested
# 5.0, 6.0, 7.0 and 7.1 (some 8.0 versions seem to fail compiling the code)
# presently we recommend version 7.1 or 7.0, since these
# releases have been used to compile the present code versions
#
# it might be required to change some of library pathes, since
# LINUX installation vary a lot
# Hence check ***ALL**** options in this makefile very carefully
#-----------------------------------------------------------------------
#
# BLAS must be installed on the machine
# there are several options:
# 1) very slow but works:
#   retrieve the lapackage from ftp.netlib.org
#   and compile the blas routines (BLAS/SRC directory)
#   please use g77 or f77 for the compilation. When I tried to
#   use pgf77 or pgf90 for BLAS, VASP hang up when calling
                                                              1,1          顶端
4楼2014-08-15 16:38:32
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
信息提示
请填处理意见