当前位置: 首页 > 第一原理 >vasp的lib和vasp编译出了点问题,麻烦各位大神帮忙看看

vasp的lib和vasp编译出了点问题,麻烦各位大神帮忙看看

作者 lpfycbx
来源: 小木虫 200 4 举报帖子
+关注

这是vasp.lib的编译问题Lenovo-ideapad-720S-13ARR:~/Downloads/vasp.5.4.1/vasp.5.lib$ make
ifort -O0 -FI -FR  -c diolib.f
diolib.f(13): error #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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 #7013: This module file was not generated by any release of this compiler.   [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)
makefile:58: recipe for target 'diolib.o' failed
make: *** [diolib.o] Error 1


这是vasp5.4.1的编译过程Lenovo-ideapad-720S-13ARR:~/Downloads/vasp.5.4.1$ make all
mkdir build/std ; \
cp src/makefile src/.objects makefile.include build/std ; \
make -C build/std VERSION=std all
mkdir: cannot create directory ‘build/std’: File exists
make[1]: Entering directory '/home/worm/Downloads/vasp.5.4.1/build/std'
rsync -ru ../../src/lib .
cp makefile.include lib
make -C lib
make[2]: Entering directory '/home/worm/Downloads/vasp.5.4.1/build/std/lib'
mpif90 -O1 -free -names lowercase -c -o preclib.o preclib.f90
gfortran: error: lowercase: No such file or directory
gfortran: error: unrecognized command line option ‘-names’; did you mean ‘-maes’?
makefile:25: recipe for target 'preclib.o' failed
make[2]: *** [preclib.o] Error 1
make[2]: Leaving directory '/home/worm/Downloads/vasp.5.4.1/build/std/lib'
makefile:155: recipe for target 'lib' failed
make[1]: *** [lib] Error 2
make[1]: Leaving directory '/home/worm/Downloads/vasp.5.4.1/build/std'
makefile:10: recipe for target 'std' failed
make: *** [std] Error 2

两个都出现了点问题,各位大神能不能指导一下呀 返回小木虫查看更多

今日热帖
  • 精华评论
  • 未岸亡灵

    一个是mkl库的问题,一个是用gfortran编译的事。总的来说,都是intel编译器环境变量以及makefile.include文件没有书写正确的原因。

  • lpfycbx

    引用回帖:
    2楼: Originally posted by 未岸亡灵 at 2020-09-26 22:37:28
    一个是mkl库的问题,一个是用gfortran编译的事。总的来说,都是intel编译器环境变量以及makefile.include文件没有书写正确的原因。

    好的,谢谢

  • lpfycbx

    引用回帖:
    2楼: Originally posted by 未岸亡灵 at 2020-09-26 22:37:28
    一个是mkl库的问题,一个是用gfortran编译的事。总的来说,都是intel编译器环境变量以及makefile.include文件没有书写正确的原因。

    好的,谢谢!

  • lpfycbx

    引用回帖:
    2楼: Originally posted by 未岸亡灵 at 2020-09-26 22:37:28
    一个是mkl库的问题,一个是用gfortran编译的事。总的来说,都是intel编译器环境变量以及makefile.include文件没有书写正确的原因。

    好的,谢谢!

猜你喜欢
下载小木虫APP
与700万科研达人随时交流
  • 二维码
  • IOS
  • 安卓