<div dir="ltr"><div>Well, I solved the problem, but I had to use libxc-4.2.3 instead libxc-4.3.3, it looks that this version is not compatible with cp2k-6.1.<br></div><div><br></div><br>El jueves, 21 de febrero de 2019, 12:40:26 (UTC+1), ar2...@gmail.com escribió:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr"><br><div>Hi,<br><br>I have exactly the same problem, but your suggestion doesn't seems to work for me. I compiled both programs with the same Intel 2017.4.056 compiler but I still get the same error.<br><br>This is the configuration script to install libxc:<br><br><br>            module load intel/2017.4.056<br><br>                ./configure --prefix=/users/ar612/<wbr>programs/intel/2017.4.056/<wbr>libxc/4.3.3 --enable-shared CFLAGS='-fPIC' CXX="mpiicpc" CC="mpiicc" FC="mpiifort"<br>                <br>                <br> And this is my arch file for cp2k. I'm using a template of a previous installation in my cluster:<br> <br> <br> <br>              CC       = mpiicc -qopenmp<br>              CXX      = mpiicpc -qopenmp<br>              CPP       =<br>              FC       = mpiifort -qopenmp<br>              LD       = mpiifort -qopenmp<br>              AR       = ar -r<br><br>              export OMP_STACKSIZE="50M"<br><br>              LIBXC_DIR = $(HOME)/programs/intel/2017.4.<wbr>056/libxc/4.3.3<br>              LIBINT_DIR = /cluster/libraries/libint/<wbr>intel/1.1.6<br>              LIBXSMM_DIR = /cluster/libraries/libxsmm/<wbr>intel/1.8.1<br>              ELPA_DIR = /cluster/libraries/elpa/intel/<wbr>2017.05.003<br>              MKL_DIR = /cluster/compiler/intel/mkl<br>              MPI_DIR = /cluster/compiler/intel/<wbr>compilers_and_libraries_2017.<wbr>4.196/linux/mpi<br><br>              CPPFLAGS =<br><br>              DFLAGS   = -D__MKL -D__FFTW3 -D__ELPA=201705 -D__LIBINT -D__LIBXC -D__parallel \<br>                         -D__SCALAPACK -D__BLACS -D__LIBINT_MAX_AM=6 -D__LIBDERIV_MAX_AM1=5 \<br>                         -D__LIBXSMM<br><br>              CFLAGS   = $(DFLAGS)<br><br>              FCFLAGS  = $(DFLAGS) -O2 -g -traceback -fpp -free -no-ipo \<br>                       -I$(MKL_DIR)/include -I$(MKL_DIR)/include/fftw -I$(LIBINT_DIR)/include \<br>                       -I$(LIBXC_DIR)/include -I$(LIBXSMM_DIR)/include -I$(ELPA_DIR)/include/elpa_<wbr>openmp-2017.05.003/elpa \<br>                       -I$(ELPA_DIR)/include/elpa_<wbr>openmp-2017.05.003/modules<br><br>              LDFLAGS  = $(FCFLAGS) -L$(ELPA_DIR) -static-intel<br><br>              LDFLAGS_C = $(FCFLAGS) -L$(ELPA_DIR) -static-intel -nofor_main<br><br>              LIBS     = -L$(ELPA_DIR)/lib -lelpa_openmp \<br>                       $(MKL_DIR)/lib/intel64/libmkl_<wbr>scalapack_lp64.a \<br>                       $(MKL_DIR)/lib/intel64/<wbr>libfftw3xf_intel.a \<br>                       -Wl,--start-group  $(MKL_DIR)/lib/intel64/libmkl_<wbr>intel_lp64.a \<br>                       $(MKL_DIR)/lib/intel64/libmkl_<wbr>sequential.a \<br>                       $(MKL_DIR)/lib/intel64/libmkl_<wbr>core.a \<br>                       $(MKL_DIR)/lib/intel64/libmkl_<wbr>blacs_intelmpi_lp64.a -Wl,--end-group \<br>                       -lpthread -lm -ldl \<br>                       $(LIBINT_DIR)/lib/libderiv.a $(LIBINT_DIR)/lib/libint.a -lstdc++ \<br>                       $(LIBXC_DIR)/lib/libxcf03.a $(LIBXC_DIR)/lib/libxc.a \<br>                       $(LIBXSMM_DIR)/lib/libxsmm.a $(LIBXSMM_DIR)/lib/libxsmmf.a<br><br>              # Required due to memory leak that occurs if high optimisations are used<br>              mp2_optimize_ri_basis.o: mp2_optimize_ri_basis.F<br>                      ../../../tools/build_utils/<wbr>fypp -n $< $*.F90<br>                      $(FC) -c $(FCFLAGS2) $<<br>              #        $(MKL_DIR)/lib/intel64/libmkl_<wbr>intel_thread.a<br><br>              <br>In both cases I'm using Intel fortran compiler mpiifort of the same version (unless there I'm messing some detail) and these are the errors I get:<br><br><br><br>            mpiifort -qopenmp -c -D__MKL -D__FFTW3 -D__ELPA=201705 -D__LIBINT -D__LIBXC -D__parallel -D__SCALAPACK -D__BLACS -D__LIBINT_MAX_AM=6 -D__LIBDERIV_MAX_AM1=5 -D__LIBXSMM -O2 -g -traceback -fpp -free -no-ipo -I/cluster/compiler/intel/mkl/<wbr>include -I/cluster/compiler/intel/mkl/<wbr>include/fftw -I/cluster/libraries/libint/<wbr>intel/1.1.6/include -I/users/ar612/programs/intel/<wbr>2017.4.056/libxc/4.3.3/include -I/cluster/libraries/libxsmm/<wbr>intel/1.8.1/include -I/cluster/libraries/elpa/<wbr>intel/2017.05.003/include/<wbr>elpa_openmp-2017.05.003/elpa -I/cluster/libraries/elpa/<wbr>intel/2017.05.003/include/<wbr>elpa_openmp-2017.05.003/<wbr>modules  -D__COMPILE_ARCH="\"intel_mkl_<wbr>blas_init_xsmm_xc_elpa\"" -D__COMPILE_DATE="\"Do 21. Feb 12:22:07 CET 2019\"" -D__COMPILE_HOST="\"<a href="http://titan1.hpc.uni-rostock.de" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftitan1.hpc.uni-rostock.de\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuqBPL_vh9ldfS31OT2eHGxt5nGg';return true;" onclick="this.href='http://www.google.com/url?q\x3dhttp%3A%2F%2Ftitan1.hpc.uni-rostock.de\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFuqBPL_vh9ldfS31OT2eHGxt5nGg';return true;">titan1.<wbr>hpc.uni-rostock.de</a>\"" -D__COMPILE_REVISION="\"svn:<wbr>18464\"" -D__DATA_DIR="\"/users/ar612/<wbr>programs/intel/2017.4.056/<wbr>cp2k/6.1.0/data\"" -D__SHORT_FILE__="\"common/<wbr>bibliography.F\"" -I'/users/ar612/programs/<wbr>intel/2017.4.056/cp2k/6.1.0/<wbr>src/common/' bibliography.F90 <br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(31): error #7013: This module file was not generated by any release of this compiler.   [XC_F03_LIB_M]<br>                           USE xc_f03_lib_m, ONLY: xc_f03_func_end, &<br>                        -------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(133): error #6406: Conflicting attributes or multiple declaration of name.   [XC_F03_FUNC_INFO_T]<br>                              TYPE(xc_f03_func_info_t), INTENT(IN)               :: xc_info<br>                        -----------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(146): error #6406: Conflicting attributes or multiple declaration of name.   [XC_F03_FUNC_REFERENCE_T]<br>                              TYPE(xc_f03_func_reference_t) <wbr>                     :: xc_ref<br>                        -----------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(280): error #6406: Conflicting attributes or multiple declaration of name.   [XC_F03_FUNC_INFO_T]<br>                              TYPE(xc_f03_func_info_t)      <wbr>                     :: xc_info<br>                        -----------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(281): error #6406: Conflicting attributes or multiple declaration of name.   [XC_F03_FUNC_T]<br>                              TYPE(xc_f03_func_t)           <wbr>                     :: xc_func<br>                        -----------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(321): error #6406: Conflicting attributes or multiple declaration of name.   [XC_F03_FUNC_T]<br>                              TYPE(xc_f03_func_t), INTENT(INOUT)                 :: xc_func<br>                        -----------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(322): error #6406: Conflicting attributes or multiple declaration of name.   [XC_F03_FUNC_INFO_T]<br>                              TYPE(xc_f03_func_info_t), INTENT(IN)               :: xc_info<br>                        -----------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(31): error #6580: Name in only-list does not exist.   [XC_F03_FUNC_END]<br>                           USE xc_f03_lib_m, ONLY: xc_f03_func_end, &<br>                        ---------------------------^<br>                        /users/ar612/programs/intel/<wbr>2017.4.056/cp2k/6.1.0/src/xc/<wbr>xc_libxc_wrap.F(32): error #6580: Name in only-list does not exist.   [XC_F03_FUNC_INIT]<br>                              xc_f03_func_init, &<br>                        ------^<br> <br> Any kind of suggestion will be welcome. Regards,<br> <br> Alejandro<br></div><div><br></div><div><br></div><br>El domingo, 8 de julio de 2018, 10:48:15 (UTC+2), <a>ela...@ucsd.edu</a> escribió:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Yingchun<div><br></div><div>Thanks for the help! I tried that but it didn't seem to fix the error.. I did find the problem though! I think the issue was that I did not compile my libxc library with the same fortran compiler as CP2K. When I switched my libxc fortan compiler to mpifort and re-compiled libxc, the CP2K compilation worked!</div><div><br>Thanks,</div><div>Teri</div></div></blockquote></div></blockquote></div>