CP2K ONLY works with libxc versions 2.2.2 and above

328 views
Skip to first unread message

SaeeD PourasaD

unread,
Jan 7, 2016, 4:14:02 AM1/7/16
to cp2k
Dear CP2K users ,

I'd like to install cp2k 3.0 in my system .
when I use this command : make -j 4 ARCH=Linux-x86-64-gfortran VERSION=popt 
I get this error :   This version of CP2K ONLY works with libxc versions 2.2.2 and above.
make[3]: *** [xc_libxc_wrap.o] Error 1

I installed libxc versions 2.2.2 in my system but this error is not cancelled ! 

Can you please let me know what the problem is ? 

Regards,
Saeed.

Andreas Glöss

unread,
Jan 11, 2016, 6:31:38 AM1/11/16
to cp2k
Dear Saeed,

Due to the changes made in the LIBXC interface, CP2K requires the xc_version.h header file and the library itself needs to be compiled with the same compiler (to get compatible *.mod files).
You will need to add '-I[YOUR_LIBXC_DIR]/include' to the FCFLAGS in your CP2K arch-file.

Best regards,
Andreas

SaeeD PourasaD

unread,
Jan 12, 2016, 8:10:16 AM1/12/16
to cp2k
Dear Andreas , 

Thanks for your reply . 
I added libxc directory to the FCFLAGS : 
.......
FCFLAGS    = $(DFLAGS) -O2 -ffast-math -ffree-form -ffree-line-length-none\
             -ftree-vectorize -funroll-loops\
             -mtune=native\
             -I$(ACML_INC) -I$(FFTW_INC) -I$(LIBINT_INC) -I$(LIBXC_INC) -I[/home/saeed/libxc-2.2.2/]/INCLUDE
.....

But I get that error again . Do i make a mistake ? 
Thanks for your attention.
Regards,
Saeed.

Andreas Glöss

unread,
Jan 22, 2016, 3:38:37 AM1/22/16
to cp2k
Dear Saeed,

Sorry I missed your message. The libxc include line is wrong - you should leave out the '[' and '/]'. Please have a look at our dashboard (https://dashboard.cp2k.org/). The ARCH files used are included in each of the reports.

e.g.:
https://dashboard.cp2k.org/archive/gcc492-mkl1121-popt/rev_16540.txt

Best regards,
Andreas Gloess
Reply all
Reply to author
Forward
0 new messages