Dear Tiziano,<div>thanks a lot. </div><div>I'm actually using version 4.3.4 and libint-cp2k (version 2.6). </div><div>I removed the not-necessary flags and linked to the correct libxc.</div><div>But now I get many other errors that I'm attaching in the log file.</div><div>Thanks a lot and best regards,</div><div>Mauro.<br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">Il giorno mercoledì 13 gennaio 2021 alle 13:04:18 UTC+1 tiz...@chem.uzh.ch ha scritto:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Mauro,
<br>
<br>CP2K-8.1 only builds with libxc-4.3.x, we are testing against
<br>libxc-4.3.4. If you've installed libxc-5 before please make sure that
<br>the currently referenced path actually contains libxc-4.3.4.
<br>
<br>For libint, please note that CP2K needs a custom configuration of it,
<br>rather than a standard libint. To get a preconfigured libint for this
<br>purpose, please use libint-v2.6.0-cp2k-lmax-5.tgz from here:
<br><a href="https://github.com/cp2k/libint-cp2k/releases" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=it&q=https://github.com/cp2k/libint-cp2k/releases&source=gmail&ust=1610629726902000&usg=AFQjCNEAqTpkutCL38JE87vYhBCgZCEYRA">https://github.com/cp2k/libint-cp2k/releases</a>
<br>
<br>Furthermore your DFLAGS contain flags which are not used anymore, like
<br>__FFTSG. Also '-lgsl' should not be necessary.
<br>
<br>Hope this helps,
<br>Best regards,
<br>Tiziano
<br>
<br>On 1/13/21 12:03 PM, Mauro Sgroi wrote:
<br>> Dear all,
<br>> My name is Mauro Sgroi and I work at Centro Ricerche FIAT in Italy.
<br>>
<br>> I'm compiling CP2K version 8.1 on Cygwin using libxc (I've tried with
<br>> version 4.3.4 and 5.0) and libint (2.6).
<br>>
<br>> My arch file is:
<br>> CC = mpicc
<br>> CPP =
<br>> FC = mpif90
<br>> LD = mpif90
<br>> AR = ar -r
<br>>
<br>> FFTW_INC = /usr/include
<br>> FFTW_LIB = /usr/lib
<br>>
<br>> SPGLIB_INC = /usr/local/include
<br>> SPGLIB_LIB = /usr/local/lib
<br>>
<br>> LIBXC_LIB = /home/sgroi/apps/libxc/lib
<br>> LIBXC_INC = /home/sgroi/apps/libxc/include
<br>>
<br>> LIBINT_LIB = /usr/local/lib
<br>> LIBINT_INC = /usr/local/include
<br>>
<br>> CPPFLAGS =
<br>> CFLAGS = -O2 -fopenmp -fexceptions
<br>> DFLAGS = -D__FFTSG -D__SPGLIB -D__FFTW3_UNALIGNED -D__MPI_VERSION=3
<br>> -D__LIBXC -D__LIBINT
<br>>
<br>> FCFLAGS = $(CFLAGS) -funroll-loops -ftree-vectorize -ffree-form
<br>> FCFLAGS += $(DFLAGS) -std=f2008 -ffree-line-length-none
<br>> FCFLAGS += -I$(FFTW_INC) -I$(SPGLIB_INC) -I$(LIBXC_INC) -I$(LIBINT_INC)
<br>>
<br>> LDFLAGS = $(FCFLAGS) -Wl,--image-base -Wl,0x10000000
<br>>
<br>> LIBS += $(LIBXC_LIB)/libxcf03.a
<br>> LIBS += $(LIBXC_LIB)/libxc.a
<br>> LIBS += -L$(FFTW_LIB) -lfftw3 -lfftw3_threads
<br>> LIBS += -L$(SPGLIB_LIB) -lsymspg
<br>> LIBS += /usr/local/lib/libint2.a
<br>> LIBS += -llapack -lblas -lgfortran
<br>> LIBS += -ldl -lpthread -lstdc++ -lgsl -lz
<br>>
<br>> I get the following error:
<br>>
<br>> mpif90 -c -O2 -fopenmp -fexceptions -funroll-loops -ftree-vectorize
<br>> -ffree-form -D__FFTSG -D__SPGLIB -D__FFTW3_UNALIGNED -D__MPI_VERSION=3
<br>> -D__LIBXC -D__LIBINT -std=f2008 -ffree-line-length-none -I/usr/include
<br>> -I/usr/local/include -I/home/sgroi/apps/libxc/include
<br>> -I/usr/local/include -D__COMPILE_ARCH="\"cygwin_lib\""
<br>> -D__COMPILE_DATE="\"Wed Jan 13 11:38:16 CET 2021\""
<br>> -D__COMPILE_HOST="\"LT0308779\"" -D__COMPILE_REVISION="\"git:0b61f2f\""
<br>> -D__DATA_DIR="\"/home/sgroi/apps/cp2k-8.1/data\""
<br>> -D__SHORT_FILE__="\"domain_submatrix_methods.F\""
<br>> -I'/home/sgroi/apps/cp2k-8.1/src/'
<br>> -I'/home/sgroi/apps/cp2k-8.1/obj/cygwin_lib/exe/exts/dbcsr'
<br>> domain_submatrix_methods.F90
<br>> /home/sgroi/apps/cp2k-8.1/src/xc/xc_libxc_wrap.F:75:42:
<br>>
<br>> 75 | XC_FAMILY_MGGA, &
<br>> | 1
<br>> Error: Symbol ‘xc_family_hyb_gga’ referenced at (1) not found in module
<br>> ‘xc_f03_lib_m’
<br>> /home/sgroi/apps/cp2k-8.1/src/xc/xc_libxc_wrap.F:76:45:
<br>>
<br>> 76 | XC_FAMILY_HYB_GGA, &
<br>> | 1
<br>> Error: Symbol ‘xc_family_hyb_mgga’ referenced at (1) not found in module
<br>> ‘xc_f03_lib_m’
<br>> /home/sgroi/apps/cp2k-8.1/src/xc/xc_libxc_wrap.F:113:30:
<br>>
<br>> 113 | XC_FAMILY_HYB_GGA, XC_FAMILY_HYB_MGGA
<br>> | 1
<br>> Error: Symbol ‘xc_family_hyb_gga’ at (1) has no IMPLICIT type; did you
<br>> mean ‘xc_family_gga’?
<br>> /home/sgroi/apps/cp2k-8.1/src/xc/xc_libxc_wrap.F:113:50:
<br>>
<br>> 113 | XC_FAMILY_HYB_GGA, XC_FAMILY_HYB_MGGA
<br>> | 1
<br>> Error: Symbol ‘xc_family_hyb_mgga’ at (1) has no IMPLICIT type; did you
<br>> mean ‘xc_family_mgga’?
<br>> make[3]: *** [/home/sgroi/apps/cp2k-8.1/Makefile:505: xc_libxc_wrap.o]
<br>> Error 1
<br>> make[3]: *** Waiting for unfinished jobs....
<br>> make[2]: *** [/home/sgroi/apps/cp2k-8.1/Makefile:144: all] Error 2
<br>> make[1]: *** [/home/sgroi/apps/cp2k-8.1/Makefile:126: exe] Error 2
<br>> make: *** [Makefile:121: all] Error 2
<br>>
<br>> Could you advice me on how to proceed? With version 7.1 I compile with
<br>> no problems using the same arch file and libraries.
<br>>
<br>> Thanks a lot and best regards,
<br>>
<br>> Mauro Sgroi.
<br>> Centro Ricerche FIAT
<br>>
<br>> --
<br>> You received this message because you are subscribed to the Google
<br>> Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it, send
<br>> an email to <a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>
<br>> <mailto:<a href data-email-masked rel="nofollow">cp...@googlegroups.com</a>>.
<br>> To view this discussion on the web visit
<br>> <a href="https://groups.google.com/d/msgid/cp2k/e238f174-6fcb-4e2f-a29a-3ad33a71c9fen%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=it&q=https://groups.google.com/d/msgid/cp2k/e238f174-6fcb-4e2f-a29a-3ad33a71c9fen%2540googlegroups.com&source=gmail&ust=1610629726903000&usg=AFQjCNENv5b3YJZs-vYXEoFTGg0HJZZayQ">https://groups.google.com/d/msgid/cp2k/e238f174-6fcb-4e2f-a29a-3ad33a71c9fen%40googlegroups.com</a>
<br>> <<a href="https://groups.google.com/d/msgid/cp2k/e238f174-6fcb-4e2f-a29a-3ad33a71c9fen%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=it&q=https://groups.google.com/d/msgid/cp2k/e238f174-6fcb-4e2f-a29a-3ad33a71c9fen%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1610629726903000&usg=AFQjCNF3NuUVIxWrQGbXdKBVSp_3jEeNmw">https://groups.google.com/d/msgid/cp2k/e238f174-6fcb-4e2f-a29a-3ad33a71c9fen%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br>
<br>--
<br>Tiziano Müller
<br>University of Zurich
<br>Department of Chemistry
<br>Winterthurerstrasse 190
<br>CH-8057 Zürich
<br>
<br>Tel: +41 44 63 54234
<br><a href="http://www.chem.uzh.ch" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=it&q=http://www.chem.uzh.ch&source=gmail&ust=1610629726903000&usg=AFQjCNFLp0Nz0uq5Pa4jdVjRDNevmqFi-w">www.chem.uzh.ch</a>
<br><a href data-email-masked rel="nofollow">tiz...@chem.uzh.ch</a>
<br></blockquote></div>