24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2010  |  回复: 26

浔荆

木虫 (正式写手)

[求助] 编译vasp.4.lib错误 make: *** 没有规则可以创建目标~已有1人参与

各位师兄师姐老师们你们好,我在ubuntu 14.04lts系统下安装vasp,安装了g++和ifotr编译器,数学库为ATLAS,然后对vasp.4.lib/makefile.linux_ifc_P4进行make,立刻提示:

make: *** 没有规则可以创建目标“/tmp/vasp.4.lib/makefile.linux_lfc_P4”。 停止。

试着将makefile中的FC=ifc修改为ifort,问题依旧,请问各位前辈问题出在哪里呢?不胜感激。
回复此楼

» 猜你喜欢

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

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
回帖支持 ( 显示支持度最高的前 50 名 )

mengfc

金虫 (正式写手)

cp  makefile.linux_lfc_P4 makefile
然后对makefile里面的编译参数进行修改
4楼2014-05-12 15:18:44
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
普通回帖

mywai520

铁杆木虫 (著名写手)


【答案】应助回帖

★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
浔荆: 金币+10, 有帮助 2014-05-12 19:40:35
makefile.linux_lfc_P4
你的这个文件中ifc写成了lfc 了
2楼2014-05-12 12:22:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

浔荆

木虫 (正式写手)

引用回帖:
2楼: Originally posted by mywai520 at 2014-05-12 12:22:56
makefile.linux_lfc_P4
你的这个文件中ifc写成了lfc 了

你好,谢谢你的提醒,不过这是我在发帖时的笔误,输入命令时输入的是ifc

[ 发自手机版 http://muchong.com/3g ]
3楼2014-05-12 13:58:54
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mywai520

铁杆木虫 (著名写手)


引用回帖:
3楼: Originally posted by 浔荆 at 2014-05-12 13:58:54
你好,谢谢你的提醒,不过这是我在发帖时的笔误,输入命令时输入的是ifc
...

一般这种错误都是直接复制过来,没想到你是自己手动打的。
5楼2014-05-12 17:16:05
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mywai520

铁杆木虫 (著名写手)


【答案】应助回帖

若是楼上说的过程你都没有做,建议你看看别人的编译过程。然后再自己去编译。
6楼2014-05-12 17:17:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

浔荆

木虫 (正式写手)

引用回帖:
4楼: Originally posted by mengfc at 2014-05-12 15:18:44
cp  makefile.linux_lfc_P4 makefile
然后对makefile里面的编译参数进行修改

谢谢提醒,的确是忘了复制文件。。。。
7楼2014-05-12 19:42:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

浔荆

木虫 (正式写手)

引用回帖:
6楼: Originally posted by mywai520 at 2014-05-12 17:17:14
若是楼上说的过程你都没有做,建议你看看别人的编译过程。然后再自己去编译。

你好,因为我自己是代培生暂时没人指导,所以只能自己摸索。网上的编译教材一大堆,按照教材来的时候确总是出现这样那样的问题。。。
8楼2014-05-12 19:46:15
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

mywai520

铁杆木虫 (著名写手)


引用回帖:
8楼: Originally posted by 浔荆 at 2014-05-12 19:46:15
你好,因为我自己是代培生暂时没人指导,所以只能自己摸索。网上的编译教材一大堆,按照教材来的时候确总是出现这样那样的问题。。。...

你先把lib编译好再继续下面的过程,按照前楼所说应该可以编译好了。
9楼2014-05-12 19:54:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

浔荆

木虫 (正式写手)

引用回帖:
9楼: Originally posted by mywai520 at 2014-05-12 19:54:40
你先把lib编译好再继续下面的过程,按照前楼所说应该可以编译好了。...

lib目前编译好了,请问lib能用icc编译吗?我在编译lib的时候把CPP     = gcc -E -P -C $*.F >$*.f改成了CPP     = icc -E -P -C $*.F >$*.f 。然后在编译vasp的时候出现了以下错误
./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 -  -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 warning #10006: ignoring unknown option '-sTdIn_'
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-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)
make: *** [base.o] 错误 1
10楼2014-05-12 19:57:47
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 浔荆 的主题更新
信息提示
请填处理意见