Abinit 7.4.3 with libxc on CentOS
Posted: Wed Jan 15, 2014 3:00 pm
Hello,
I try to build abinit with libxc but it fails. I think the reason is trivial but I can't spot it :/
My configuration is (that's the part of spec):
I'm getting:
(...)
Relating to it:
I found I have that files on my system:
But I don't know how to include it and if it is a right way.
I use:
Thank you for any help.
---
Mixer
I try to build abinit with libxc but it fails. I think the reason is trivial but I can't spot it :/
My configuration is (that's the part of spec):
Code: Select all
%configure CC=mpicc FC=mpif90 CXX=mpiCC \
--enable-mpi=yes \
--enable-mpi-io=yes \
--with-linalg-flavor=mkl \
--enable-64bit-flags=yes \
--with-linalg-libs="-L/opt/users/intel/composer_xe_2013/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_blacs_lp64 -lmkl_lapack -lmkl_intel_thread -lmkl_core -liomp5 -lpthread"\
--prefix=/opt/users/abinit/7.4.3 \
--with-dft-flavor=libxc
I'm getting:
(...)
Code: Select all
rm -f lib56_recipspace.a
ar rc lib56_recipspace.a getcut.o getkgrid.o getkpgnorm.o getmpw.o getng.o getph.o get_full_kgrid.o initylmg.o irrzg.o kpgio.o laplacian.o m_ab6_kpoints.o m_bz_mesh.o m_gsphere.o m_nesting.o mkkin.o setmqgrid.o setsym.o smpbz.o symkchk.o symg.o testkgrid.o interfaces_56_recipspace.o
ranlib lib56_recipspace.a
make[3]: Entering directory `/tmp/rpmbuild/BUILD/abinit-7.4.3/src/56_recipspace'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/tmp/rpmbuild/BUILD/abinit-7.4.3/src/56_recipspace'
make[2]: Leaving directory `/tmp/rpmbuild/BUILD/abinit-7.4.3/src/56_recipspace'
Making install in 56_xc
make[2]: Entering directory `/tmp/rpmbuild/BUILD/abinit-7.4.3/src/56_xc'
mpif90 -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/tmp/rpmbuild/BUILD/abinit-7.4.3/fallbacks/exports/include -I/tmp/rpmbuild/BUILD/abinit-7.4.3/fallbacks/exports/include -free -module /tmp/rpmbuild/BUILD/abinit-7.4.3/src/mods -O2 -xHost -g -extend-source -vec-report0 -noaltparam -nofpscomp -c -o m_electronpositron.o m_electronpositron.F90
mpif90 -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/tmp/rpmbuild/BUILD/abinit-7.4.3/fallbacks/exports/include -I/tmp/rpmbuild/BUILD/abinit-7.4.3/fallbacks/exports/include -free -module /tmp/rpmbuild/BUILD/abinit-7.4.3/src/mods -O2 -xHost -g -extend-source -vec-report0 -noaltparam -nofpscomp -c -o interfaces_56_xc.o interfaces_56_xc.F90
mpif90 -DHAVE_CONFIG_H -I. -I../.. -I../../src/incs -I../../src/incs -I/tmp/rpmbuild/BUILD/abinit-7.4.3/fallbacks/exports/include -I/tmp/rpmbuild/BUILD/abinit-7.4.3/fallbacks/exports/include -free -module /tmp/rpmbuild/BUILD/abinit-7.4.3/src/mods -O2 -xHost -g -extend-source -vec-report0 -noaltparam -nofpscomp -c -o m_libxc_functionals.o m_libxc_functionals.F90
m_libxc_functionals.F90(40): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [XC_F90_TYPES_M]
use xc_f90_types_m
-----^
m_libxc_functionals.F90(41): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [LIBXC_FUNCS_M]
use libxc_funcs_m
-----^
m_libxc_functionals.F90(42): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [XC_F90_LIB_M]
use xc_f90_lib_m
-----^
m_libxc_functionals.F90(54): error #6457: This derived type name has not been declared. [XC_F90_POINTER_T]
type(xc_f90_pointer_t) :: conf ! the pointer used to call the library
---------^
m_libxc_functionals.F90(55): error #6457: This derived type name has not been declared. [XC_F90_POINTER_T]
type(xc_f90_pointer_t) :: info ! information about the functional
---------^
m_libxc_functionals.F90(119): error #6457: This derived type name has not been declared. [XC_F90_POINTER_T]
type(xc_f90_pointer_t) :: str
---------^
m_libxc_functionals.F90(138): error #6404: This name does not have a type, and must have an explicit type. [XC_F90_FAMILY_FROM_ID]
funcs(ii)%family = xc_f90_family_from_id(funcs(ii)%id)
-------------------------^
m_libxc_functionals.F90(140): error #6404: This name does not have a type, and must have an explicit type. [XC_FAMILY_LDA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
------------^
m_libxc_functionals.F90(140): error #6601: In a CASE statement, the case-value must be a constant expression. [XC_FAMILY_LDA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
------------^
m_libxc_functionals.F90(140): error #6612: In a CASE statement, the case-value must be of type INTEGER, CHARACTER, or LOGICAL. [XC_FAMILY_LDA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
------------^
m_libxc_functionals.F90(140): error #6611: The case-value must be of the same type as the case-expr. [XC_FAMILY_LDA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
------------^
m_libxc_functionals.F90(140): error #6404: This name does not have a type, and must have an explicit type. [XC_FAMILY_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
---------------------------^
m_libxc_functionals.F90(140): error #6601: In a CASE statement, the case-value must be a constant expression. [XC_FAMILY_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
---------------------------^
m_libxc_functionals.F90(140): error #6612: In a CASE statement, the case-value must be of type INTEGER, CHARACTER, or LOGICAL. [XC_FAMILY_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
---------------------------^
m_libxc_functionals.F90(140): error #6611: The case-value must be of the same type as the case-expr. [XC_FAMILY_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
---------------------------^
m_libxc_functionals.F90(140): error #6404: This name does not have a type, and must have an explicit type. [XC_FAMILY_HYB_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------^
m_libxc_functionals.F90(140): error #6601: In a CASE statement, the case-value must be a constant expression. [XC_FAMILY_HYB_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------^
m_libxc_functionals.F90(140): error #6612: In a CASE statement, the case-value must be of type INTEGER, CHARACTER, or LOGICAL. [XC_FAMILY_HYB_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------^
m_libxc_functionals.F90(140): error #6611: The case-value must be of the same type as the case-expr. [XC_FAMILY_HYB_GGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------^
m_libxc_functionals.F90(140): error #6404: This name does not have a type, and must have an explicit type. [XC_FAMILY_MGGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------------------------^
m_libxc_functionals.F90(140): error #6601: In a CASE statement, the case-value must be a constant expression. [XC_FAMILY_MGGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------------------------^
m_libxc_functionals.F90(140): error #6612: In a CASE statement, the case-value must be of type INTEGER, CHARACTER, or LOGICAL. [XC_FAMILY_MGGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------------------------^
m_libxc_functionals.F90(140): error #6611: The case-value must be of the same type as the case-expr. [XC_FAMILY_MGGA]
case (XC_FAMILY_LDA, XC_FAMILY_GGA,XC_FAMILY_HYB_GGA,XC_FAMILY_MGGA)
-----------------------------------------------------------^
m_libxc_functionals.F90(141): error #6460: This is not a field name that is defined in the encompassing structure. [CONF]
call xc_f90_func_init(funcs(ii)%conf,funcs(ii)%info,funcs(ii)%id,nspden_eff)
----------------------------------------^
m_libxc_functionals.F90(141): error #6460: This is not a field name that is defined in the encompassing structure. [INFO]
call xc_f90_func_init(funcs(ii)%conf,funcs(ii)%info,funcs(ii)%id,nspden_eff)
-------------------------------------------------------^
m_libxc_functionals.F90(142): error #6404: This name does not have a type, and must have an explicit type. [XC_F90_INFO_FLAGS]
funcs(ii)%has_fxc=(iand(xc_f90_info_flags(funcs(ii)%info),XC_FLAGS_HAVE_FXC)>0)
--------------------------------^
m_libxc_functionals.F90(142): error #6404: This name does not have a type, and must have an explicit type. [XC_FLAGS_HAVE_FXC]
funcs(ii)%has_fxc=(iand(xc_f90_info_flags(funcs(ii)%info),XC_FLAGS_HAVE_FXC)>0)
------------------------------------------------------------------^
m_libxc_functionals.F90(142): warning #7319: This argument's data type is incompatible with this intrinsic procedure; procedure assumed EXTERNAL. [IAND]
funcs(ii)%has_fxc=(iand(xc_f90_info_flags(funcs(ii)%info),XC_FLAGS_HAVE_FXC)>0)
--------------------------------^
m_libxc_functionals.F90(142): error #6404: This name does not have a type, and must have an explicit type. [IAND]
funcs(ii)%has_fxc=(iand(xc_f90_info_flags(funcs(ii)%info),XC_FLAGS_HAVE_FXC)>0)
---------------------------^
m_libxc_functionals.F90(153): error #6404: This name does not have a type, and must have an explicit type. [XC_LDA_C_XALPHA]
if (funcs(ii)%id == XC_LDA_C_XALPHA) then
--------------------------^
m_libxc_functionals.F90(161): error #6404: This name does not have a type, and must have an explicit type. [STR]
call xc_f90_info_refs(funcs(ii)%info,jj,str,message)
----------------------------------------------^
/tmp/mm/ifortKbs3gR.i90(1664): catastrophic error: Too many errors, exiting
compilation aborted for m_libxc_functionals.F90 (code 1)
make[2]: *** [m_libxc_functionals.o] Error 1
make[2]: Leaving directory `/tmp/rpmbuild/BUILD/abinit-7.4.3/src/56_xc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/tmp/rpmbuild/BUILD/abinit-7.4.3/src'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.Gn9XIW (%install)
Relating to it:
Code: Select all
m_libxc_functionals.F90(40): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [XC_F90_TYPES_M]
use xc_f90_types_m
-----^
m_libxc_functionals.F90(41): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [LIBXC_FUNCS_M]
use libxc_funcs_m
-----^
m_libxc_functionals.F90(42): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [XC_F90_LIB_M]
use xc_f90_lib_m
I found I have that files on my system:
Code: Select all
[mm@c SPECS]$ rpm -ql libxc-devel
/usr/include/xc.h
/usr/include/xc_config.h
/usr/include/xc_funcs.h
/usr/include/xc_version.h
/usr/lib64/gfortran/modules/libxc_funcs_m.mod
/usr/lib64/gfortran/modules/xc_f90_lib_m.mod
/usr/lib64/gfortran/modules/xc_f90_types_m.mod
/usr/lib64/libxc.so
/usr/lib64/pkgconfig/libxc.pc
[mm@c build]$ rpm -ql libxc
/usr/lib64/libxc.so.1
/usr/lib64/libxc.so.1.0.2
/usr/share/doc/libxc-2.0.2
/usr/share/doc/libxc-2.0.2/AUTHORS
/usr/share/doc/libxc-2.0.2/COPYING
/usr/share/doc/libxc-2.0.2/ChangeLog
/usr/share/doc/libxc-2.0.2/NEWS
/usr/share/doc/libxc-2.0.2/README
/usr/share/doc/libxc-2.0.2/TODO
But I don't know how to include it and if it is a right way.
I use:
Code: Select all
[mm@c build]$ mpicc --version
icc (ICC) 13.1.0 20130121
Copyright (C) 1985-2013 Intel Corporation. All rights reserved.
[mm@c build]$ mpif90 --version
ifort (IFORT) 13.1.0 20130121
Copyright (C) 1985-2013 Intel Corporation. All rights reserved.
Thank you for any help.
---
Mixer