现象描述:
运行configure时报错,报错信息为:“error: external libxc support does not work”。
可能原因:
--with-libxc-libs=未按照顺序写。
处理步骤:
在8后按顺序加:
--with-libxc-libs=-lxcf90 -lxc---
现象描述:
编译ABINIT时make报错,报错信息为:“Error: Line truncated at (1) [-Werror=line-truncation]”。
可能原因:
此错误是因为代码中未限制132个字符。
处理步骤:
需要在8的FCFLAGS="-g -O2 -ffree-line-length-none"中增加-ffree-line-length-none。
现象描述:
编译ABINIT时make报错,报错信息为:“File 'mpi.mod' opened at (1) is not a GNU Fortran module file”。
可能原因:
此错误是因为GCC和OpenMPI编译器版本不对应。
处理步骤:
在安装过程中OpenMPI,BLAS-LAPACK,NetCDF等都需要保持统一编译器,否则会出现各种错误。
现象描述:
编译ABINIT时make报错,报错信息为:“abinit-8.10.3/config/gnu/missing: line 81: automake-1.16: command not found”。
可能原因:
此错误是因为生成“Malefile”时制定了aclocal和automake版本为1.16。
处理步骤:
查看系统的automake版本在“Makefile”中替换成系统版本。
vi abinit-8.10.3/build/Makefile
AUTOMAKE = ${SHELL} /storage/softwares/TaiShan/abinit/abinit-8.10.3/config/gnu/missing automake-1.16
现象描述:
运行算例时报错,报错信息类似:段错误
可能原因:
诸如此类的段错误是由于编译ABINIT的编译器跟OpenMPI-4.0.1和BLAS使用的编译器不一致。
处理步骤:
安装Atompaw可优化数据的内存读写。
cd /path/to/ABINIT/extral
tar xvf atompaw-4.0.1.0.tar.gz
cd atompaw-4.0.1.0
./configure make make install