From 6471ac722e2ed247b997888a7786e72ad499f62f Mon Sep 17 00:00:00 2001 From: Frederick Stein <43850145+fstein93@users.noreply.github.com> Date: Fri, 16 Jul 2021 14:03:08 +0200 Subject: [PATCH] Do not compile fourth derivatives in LibXC (#1592) We do not use fourth derivatives in our code. Added a hint that "vanilla" LibXC is possible too. --- INSTALL.md | 2 ++ tools/toolchain/scripts/stage3/install_libxc.sh | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 8e85ba3f4f..7d3a6f52f6 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -197,6 +197,8 @@ the FFTW3 threading library libfftw3_threads (or libfftw3_omp) is required. ### 2k. libxc (optional, wider choice of xc functionals) - The version 5.1.0 (or later) of libxc can be downloaded from +- CP2K does not make use of fourth derivates such that libxc may be configured + with './configure --disable-lxc \'. - During the installation, the directories `$(LIBXC_DIR)/lib` and `$(LIBXC_DIR)/include` are created. - Add `-D__LIBXC` to DFLAGS, `-I$(LIBXC_DIR)/include` to FCFLAGS diff --git a/tools/toolchain/scripts/stage3/install_libxc.sh b/tools/toolchain/scripts/stage3/install_libxc.sh index 9578afd7b2..790cd1d71b 100755 --- a/tools/toolchain/scripts/stage3/install_libxc.sh +++ b/tools/toolchain/scripts/stage3/install_libxc.sh @@ -43,7 +43,8 @@ case "$with_libxc" in [ -d libxc-${libxc_ver} ] && rm -rf libxc-${libxc_ver} tar -xzf libxc-${libxc_ver}.tar.gz cd libxc-${libxc_ver} - ./configure --prefix="${pkg_install_dir}" --libdir="${pkg_install_dir}/lib" > configure.log 2>&1 + # CP2K does not make use of fourth derivatives, so skip their compilation with --disable-lxc + ./configure --prefix="${pkg_install_dir}" --libdir="${pkg_install_dir}/lib" --disable-lxc > configure.log 2>&1 make -j $(get_nprocs) > make.log 2>&1 make install > install.log 2>&1 cd ..