24小时热门版块排行榜    

查看: 993  |  回复: 2

jaGer

新虫 (初入文坛)

[求助] 求职vasp.5.lib编译错误 已有1人参与

编译vasp.5.lib时
cp makefile.linux_ifc_P4 makefile
make
这步之后出现一大堆error,如下:
jager@jager-UX410UQK:~/vasp/vasp.5.lib$ make
mpif90 -O2 -FI -heap-arrays 64 -FR  -c diolib.f
diolib.f(13): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(14): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(87): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(88): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(143): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(144): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(200): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(201): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(222): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(223): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(245): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(246): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(269): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(270): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
diolib.f(299): error #7002: Error in opening the compiled module file.  Check INCLUDE paths.   [PRECLIB]
      USE preclib
----------^
diolib.f(300): error #6683: A kind type parameter must be a compile-time constant.   [Q]
      IMPLICIT REAL(q) (A-H,O-Z)
--------------------^
compilation aborted for diolib.f (code 1)
make: *** [diolib.o] 错误 1

请问各位大侠这是是咋回事。。。。
我是ubuntu14.04 64位,lib的makefile文件是按照CPP=gfortran FC=mpif90 FFLAGS= -O2 -FI -heap-arrays 64改的
make后就出现上述错误,我是小白一个,还望告知原因,感激不尽!
回复此楼

» 猜你喜欢

计算材料学 高熵合金
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

未岸亡灵

铁杆木虫 (著名写手)

暂时离开小木虫


【答案】应助回帖

感谢参与,应助指数 +1
尽量用ifort,而不用gfortran。网上有关于vasp编译的视频,可以看看
2楼2017-08-28 00:42:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

jaGer

新虫 (初入文坛)

引用回帖:
2楼: Originally posted by 未岸亡灵 at 2017-08-28 00:42:56
尽量用ifort,而不用gfortran。网上有关于vasp编译的视频,可以看看

改用ifort结果也是一样,出现这样的错误。。。但是我的ifort,openmpi和fftw都已经安装好了,测试也都没问题,真的不知道是哪里出了问题。。。
我是参照这位大神的帖子安装的(http://muchong.com/t-10070732-1-authorid-4979584)先感谢下~,他和我的系统也一样,前面都好好的,就是这里开始出问题
计算材料学 高熵合金
3楼2017-08-28 09:45:36
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 jaGer 的主题更新
信息提示
请填处理意见