我在往Linux系统的服务器里安装octopus,在make时显示:错误 (1)处的派生类型 xc_f90_pointer_t' 在定义前使用species/atomic.F90:299.26:
type(xc_f90_pointer_t) ::x_conf,c_conf
1
错误 (1)处的派生类型 xc_f90_pointer_t' 在定义前使用species/atomic.F90:300.26:
type(xc_f90_pointer_t) ::x_info,c_info
1

我安装时的步骤:解压后./configure CC="gcc" CFLAGS="-O3" FC="gfortran" FCFLAGS="-O3 -ffree-line-length-none" --prefix=/home/zhanghn/basedir --with-gsl-prefix=/home/zhanghn/basedir --with-libxc-prefix=/home/zhanghn/basedir --with-fftw-prefix=/home/zhanghn/basedir
make
gfortran -O3 -ffree-line-length-none -I ../external_libs/bpdn -I ../external_libs/dftd3 -I ../external_libs/spglib-1.9.9/src/ -I /home/zhanghn/basedir/include -I/home/zhanghn/basedir/include -c -o species/atomic.o species/atomic_oct.f90
species/atomic.F90:299.26:
type(xc_f90_pointer_t) :: x_conf, c_conf
1
错误: (1)处的派生类型‘xc_f90_pointer_t’在定义前使用
species/atomic.F90:300.26:
type(xc_f90_pointer_t) :: x_info, c_info
1
错误: (1)处的派生类型‘xc_f90_pointer_t’在定义前使用
species/atomic.F90:322.34:
call xc_f90_func_init(c_conf, c_info, XC_GGA_C_PBE, NSPIN)
1
错误: (1)处的符号‘c_conf’没有隐式类型
species/atomic.F90:322.42:
call xc_f90_func_init(c_conf, c_info, XC_GGA_C_PBE, NSPIN)
1
错误: (1)处的符号‘c_info’没有隐式类型
species/atomic.F90:321.34:
call xc_f90_func_init(x_conf, x_info, XC_GGA_X_PBE, NSPIN)
1
错误: (1)处的符号‘x_conf’没有隐式类型
species/atomic.F90:321.42:
call xc_f90_func_init(x_conf, x_info, XC_GGA_X_PBE, NSPIN)
1
错误: (1)处的符号‘x_info’没有隐式类型
make[2]: *** [species/atomic.o] 错误 1
make[2]: 离开目录“/home/zhanghn/octopus-9.1/src”
make[1]: *** [all-recursive] 错误 1
make[1]: 离开目录“/home/zhanghn/octopus-9.1”
make: *** [all] 错误 2
[zhanghn@localhost octopus-9.1]$
我安装过octopus3.0 、6.0.1、11.4版本的,都会出现类似的问题,都是某一个文件里出现格式错误
我也在网上没找着和我一样的问题