24小时热门版块排行榜    

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

nanost

木虫 (知名作家)

Dr.

[求助] VASP安装求助 已有1人参与

本人笔记本安装vasp出现以下问题,采用ifort2015编译器
$ make
./preprocess <base.F | /usr/bin/cpp -P -C -traditional >base.f90  -DHOST=\"LinuxIFC\" -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf
ifort  -FR -lowercase -assume byterecl  -O3  -c base.f90
ifort: command line remark #10148: option '-lowercase' not supported
base.f90(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK PROGRAM BLOCKDATA MODULE INTEGER REAL COMPLEX ...
/* Copyright (C) 1991-2014 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(27): error #5120: Unterminated character constant
/* glibc's intent is to support the IEC 559 math functionality, real
--------^
base.f90(27): error #5144: Invalid character_kind_parameter. No underscore
/* glibc's intent is to support the IEC 559 math functionality, real
--------------------------------------------------------------------^
base.f90(28): error #5145: Invalid blank/tab
   and complex.  If the GCC (4.9 and later) predefined macros
---------------^
base.f90(30): error #5277: Syntax error, found ',' following statement keyword
   whether the overall intent is to support these features; otherwise,
----------------------------------------------------------------------^
base.f90(32): error #5145: Invalid blank/tab
   define these macros by default.  */
----------------------------------^
base.f90(36): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
base.f90(37): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
base.f90(39): 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)
makefile:306: recipe for target 'base.o' failed
make: *** [base.o] Error 1
wjx@wjx-G480:~/vasp/vasp.5.2$ make
./preprocess <base.F | /usr/bin/cpp -P -C -traditional >base.f90  -DHOST=\"LinuxIFC\" -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf
ifort  -FR -lowercase -assume byterecl  -O3  -c base.f90
ifort: command line remark #10148: option '-lowercase' not supported
base.f90(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK PROGRAM BLOCKDATA MODULE INTEGER REAL COMPLEX ...
/* Copyright (C) 1991-2014 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(27): error #5120: Unterminated character constant
/* glibc's intent is to support the IEC 559 math functionality, real
--------^
base.f90(27): error #5144: Invalid character_kind_parameter. No underscore
/* glibc's intent is to support the IEC 559 math functionality, real
--------------------------------------------------------------------^
base.f90(28): error #5145: Invalid blank/tab
   and complex.  If the GCC (4.9 and later) predefined macros
---------------^
base.f90(30): error #5277: Syntax error, found ',' following statement keyword
   whether the overall intent is to support these features; otherwise,
----------------------------------------------------------------------^
base.f90(32): error #5145: Invalid blank/tab
   define these macros by default.  */
----------------------------------^
base.f90(36): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
base.f90(37): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
base.f90(39): 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)
makefile:306: recipe for target 'base.o' failed
make: *** [base.o] Error 1
wjx@wjx-G480:~/vasp/vasp.5.2$ make
./preprocess <base.F | /usr/bin/cpp -P -C -traditional >base.f90  -DHOST=\"LinuxIFC\" -Dkind8 -DCACHE_SIZE=12000 -DPGF90 -Davoidalloc -DNGXhalf
ifort  -FR -lowercase -assume byterecl  -O3  -c base.f90
ifort: command line remark #10148: option '-lowercase' not supported
base.f90(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; BLOCK PROGRAM BLOCKDATA MODULE INTEGER REAL COMPLEX ...
/* Copyright (C) 1991-2014 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(27): error #5120: Unterminated character constant
/* glibc's intent is to support the IEC 559 math functionality, real
--------^
base.f90(27): error #5144: Invalid character_kind_parameter. No underscore
/* glibc's intent is to support the IEC 559 math functionality, real
--------------------------------------------------------------------^
base.f90(28): error #5145: Invalid blank/tab
   and complex.  If the GCC (4.9 and later) predefined macros
---------------^
base.f90(30): error #5277: Syntax error, found ',' following statement keyword
   whether the overall intent is to support these features; otherwise,
----------------------------------------------------------------------^
base.f90(32): error #5145: Invalid blank/tab
   define these macros by default.  */
----------------------------------^
base.f90(36): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
base.f90(37): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
base.f90(39): 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)
makefile:306: recipe for target 'base.o' failed
make: *** [base.o] Error 1
wjx@wjx-G480:~/vasp/vasp.5.2$
回复此楼

» 猜你喜欢

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

合成硫化锆、硫化钛、Al2S3、Li2S及Li6PS5Cl等固体电解质,稀土硫化物:硫化钆、硫化铥、硫化钬、硫化镱、硫化铕、硫化铽、硫化镨、硫化钕、硫化钐、硫化镝等
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ifmc1234

木虫 (著名写手)

【答案】应助回帖

★ ★ ★ ★ ★
nanost: 金币+5, 有帮助, 谢谢提示。我现在改用MedeA了 2015-05-31 11:40:57
貌似是ifort15的版本对f90的支持不一样,上来就把*.f90中的注释部分/*认为是变量而非注释语言
可以加一些参数来支持旧的f90文档
4楼2015-05-29 20:41:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

ifmc1234

木虫 (著名写手)

【答案】应助回帖

在CPP上一行加上

CPP_=fpp -f_com=no -free -w0 $*.F $*$(SUFFIX)
5楼2015-05-30 15:32:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 nanost 的主题更新
信息提示
请填处理意见