|
编译时出了以下错误,请教楼主
xtb编译命令是按照社长写的编译xtb的教程:http://sobereva.com/521
[root@localhost xtb-master]# export FC=ifort CC=icc CXX=icpc
[root@localhost xtb-master]# meson setup build_intel --optimization=2
The Meson build system
Version: 0.52.1
Source dir: /mnt/hgfs/xtb_for_orca/xtb-master
Build dir: /mnt/hgfs/xtb_for_orca/xtb-master/build_intel
Build type: native build
Project name: xtb
Project version: 6.2.1
Fortran compiler for the host machine: ifort (intel 12.1.0 "ifort (IFORT) 12.1.0 20110811")
Fortran linker for the host machine: xild 12.1.0
C compiler for the host machine: icc (intel 12.1.0 "icc (ICC) 12.1.0 20110811")
C linker for the host machine: xild 12.1.0
C++ compiler for the host machine: icpc (intel 12.1.0 "icpc (ICC) 12.1.0 20110811")
C++ linker for the host machine: xild 12.1.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program git found: YES (/usr/bin/git)
Program date found: YES (/usr/bin/date)
Program whoami found: YES (/usr/bin/whoami)
Program hostname found: YES (/usr/bin/hostname)
Configuring xtb_version.fh using configuration
WARNING: Consider using the builtin option for language standard version rather than adding flags by hand.
WARNING: Consider using the builtin option for language standard version rather than adding flags by hand.
Library pthread found: YES
Library m found: YES
Library dl found: YES
Library mkl_intel_lp64 found: YES
Library mkl_intel_thread found: YES
Library mkl_core found: YES
Library iomp5 found: YES
Library mkl_rt found: YES
Run-time dependency threads found: YES
Program a2x found: NO
Program pytest found: NO
Program mypy found: NO
Program pylint found: NO
Program flake8 found: NO
Build targets in project: 5
Found ninja-1.7.2 at /usr/bin/ninja-build
[root@localhost xtb-master]# ninja -C build_intel
bash: ninja: command not found...
因为前面ninja的安装没有报错,所以我尝试将ninja改为ninja-build:会不会是这步的问题?
[root@localhost xtb-master]# ninja-build -C build_intel
ninja: Entering directory `build_intel'
[1/279] Compiling Fortran object 'xtb@sta/xtb_tbdef_param.f90.o'.
FAILED: xtb@sta/xtb_tbdef_param.f90.o
ifort -Ixtb@sta -I. -I.. -I../include -warn general -warn truncated_source -O2 -g -axAVX2 -r8 -traceback -qopenmp -D_FILE_OFFSET_BITS=64 -fPIC -module xtb@sta '-gen-dep='xtb@sta/xtb_tbdef_param.f90.o'' -gen-depformat=make -o 'xtb@sta/xtb_tbdef_param.f90.o' -c ../xtb/tbdef_param.f90
ifort: command line warning #10130: unknown extension 'A' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'V' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'X' ignored in option '-ax'
ifort: command line warning #10130: unknown extension '2' ignored in option '-ax'
ifort: command line warning #10006: ignoring unknown option '-qopenmp'
../xtb/tbdef_param.f90(79): error #8040: Invalid type-name in a derived type definition. [GFN_PARAMETER]
type gfn_parameter(nelem,nshell)
--------^
../xtb/tbdef_param.f90(80): error #6659: Not an attribute-spec keyword [LEN]
integer, len :: nelem = max_elem
---------------^
../xtb/tbdef_param.f90(81): error #6659: Not an attribute-spec keyword [LEN]
integer, len :: nshell = max_shell
---------------^
../xtb/tbdef_param.f90(83): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [EN]
real(wp) :: en(nelem)
------------------^
../xtb/tbdef_param.f90(84): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [MC]
real(wp) :: mc(nelem)
------------------^
../xtb/tbdef_param.f90(85): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [GAM]
real(wp) :: gam(nelem)
------------------^
../xtb/tbdef_param.f90(86): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [GAM3]
real(wp) :: gam3(nelem)
------------------^
../xtb/tbdef_param.f90(87): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [RAD]
real(wp) :: rad(nelem)
------------------^
../xtb/tbdef_param.f90(88): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [WLL]
real(wp) :: wll(nelem,nshell)
------------------^
../xtb/tbdef_param.f90(89): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [REP]
real(wp) :: rep(2,nelem)
------------------^
../xtb/tbdef_param.f90(90): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [POLYR]
real(wp) :: polyr(4,nelem)
------------------^
../xtb/tbdef_param.f90(91): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [CXB]
real(wp) :: cxb(nelem)
------------------^
../xtb/tbdef_param.f90(92): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [AO_EXP]
real(wp) :: ao_exp(nshell,nelem)
------------------^
../xtb/tbdef_param.f90(93): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [AO_LEV]
real(wp) :: ao_lev(nshell,nelem)
------------------^
../xtb/tbdef_param.f90(94): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [LPAR]
real(wp) :: lpar(0:2,nelem)
------------------^
../xtb/tbdef_param.f90(95): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [KPAIR]
real(wp) :: kpair(nelem,nelem)
------------------^
../xtb/tbdef_param.f90(96): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [KCNAT]
real(wp) :: kcnat(0:2,nelem)
------------------^
../xtb/tbdef_param.f90(97): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [RADAES]
real(wp) :: radaes(nelem)
------------------^
../xtb/tbdef_param.f90(98): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [DPOLC]
real(wp) :: dpolc(nelem)
------------------^
../xtb/tbdef_param.f90(99): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [QPOLC]
real(wp) :: qpolc(nelem)
------------------^
../xtb/tbdef_param.f90(100): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [AO_PQN]
integer :: ao_pqn(nshell,nelem)
------------------^
../xtb/tbdef_param.f90(101): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [AO_L]
integer :: ao_l(nshell,nelem)
------------------^
../xtb/tbdef_param.f90(102): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [AO_N]
integer :: ao_n(nelem)
------------------^
../xtb/tbdef_param.f90(103): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [AO_TYP]
integer :: ao_typ(nshell,nelem)
------------------^
../xtb/tbdef_param.f90(104): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [METAL]
integer :: metal(nelem)
------------------^
../xtb/tbdef_param.f90(105): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [CNVAL]
integer :: cnval(nelem)
------------------^
../xtb/tbdef_param.f90(106): error #6530: The array spec for this component must be of explicit shape and each bound must be an initialization expression. [TIMESTP]
character(len=30) :: timestp(nelem)
---------------------------^
../xtb/tbdef_param.f90(83): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NELEM]
real(wp) :: en(nelem)
---------------------^
../xtb/tbdef_param.f90(88): error #6279: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NSHELL]
real(wp) :: wll(nelem,nshell)
----------------------------^
compilation aborted for ../xtb/tbdef_param.f90 (code 1)
[2/279] Compiling Fortran object 'xtb@sta/xtb_tbdef_setvar.f90.o'.
ifort: command line warning #10130: unknown extension 'A' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'V' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'X' ignored in option '-ax'
ifort: command line warning #10130: unknown extension '2' ignored in option '-ax'
ifort: command line warning #10006: ignoring unknown option '-qopenmp'
[3/279] Compiling Fortran object 'xtb@sta/xtb_tbdef_data.f90.o'.
ifort: command line warning #10130: unknown extension 'A' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'V' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'X' ignored in option '-ax'
ifort: command line warning #10130: unknown extension '2' ignored in option '-ax'
ifort: command line warning #10006: ignoring unknown option '-qopenmp'
[4/279] Compiling Fortran object 'xtb@sta/xtb_tbdef_wavefunction.f90.o'.
ifort: command line warning #10130: unknown extension 'A' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'V' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'X' ignored in option '-ax'
ifort: command line warning #10130: unknown extension '2' ignored in option '-ax'
ifort: command line warning #10006: ignoring unknown option '-qopenmp'
[5/279] Compiling Fortran object 'xtb@sta/xtb_tbdef_basisset.f90.o'.
ifort: command line warning #10130: unknown extension 'A' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'V' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'X' ignored in option '-ax'
ifort: command line warning #10130: unknown extension '2' ignored in option '-ax'
ifort: command line warning #10006: ignoring unknown option '-qopenmp'
[6/279] Compiling Fortran object 'xtb@sta/xtb_tbdef_solvent.f90.o'.
ifort: command line warning #10130: unknown extension 'A' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'V' ignored in option '-ax'
ifort: command line warning #10130: unknown extension 'X' ignored in option '-ax'
ifort: command line warning #10130: unknown extension '2' ignored in option '-ax'
ifort: command line warning #10006: ignoring unknown option '-qopenmp'
ninja: build stopped: subcommand failed.
另外请教一下,网站直接打包下载的xtb-master.zip解压之后6.9MB,git clone下来的目录为8.5MB,而Grimme提供的编译好的xtb有30多MB,是不是不对?是不是两种方式下载的source code都不完整?(按理说编译成二进制可执行文件之后体积会大大缩小)
|
|