<div><p>Dear users and develpers,</p></div><div><div><p> I enconutered an error while I was compiling CP2K-7.1 with "install_cp2k_toolchain.sh" script.  (GNU+intel MKL+openmpi)</p></div><div><p><br></p><p>The compiling command is:<br></p></div><div><p>./install_cp2k_toolchain.sh \</p></div><div><div><p>--math-mode=mkl \</p></div><div><p>--with-openmpi=install \</p></div><div><p>--with-scalapack=no</p></div><p><br>When it comes to the SIRIUS part, the error shows up like this: </p></div><div><p>==================== Installing SIRIUS ====================</p><div><p>sirius_6.4.1.tar.gz is found</p></div><div><p>Installing from scratch into /opt/cp2k-7.1/tools/toolchain/install/sirius-6.4.1</p></div><div><p>ERROR: (./scripts/install_sirius.sh, line 130) Non-zero exit code detected.</p></div><div><p>...</p></div><div><p> </p></div><div><p>The *.log files and all relevant files are attached. It seems that something was wrong with "vdwxc_init_mpi", because it said in complie.log and CMakeError.log that "Looking for vdwxc_init_mpi - not found".</p><p><br></p><div><i><b>This is the last part of compile.log:</b></i></div><div>...</div><div>-- Checking for one of the modules 'elpa;elpa_openmp'</div><div>-- Found Elpa: /opt/cp2k-7.1/tools/toolchain/install/elpa-2019.05.001/lib/libelpa.a  </div><div>-- Checking for one of the modules 'libvdwxc>=0.3.0'</div><div>-- Looking for vdwxc_init_mpi</div><div>-- Looking for vdwxc_init_mpi - not found</div><div>CMake Error at /opt/cp2k-7.1/tools/toolchain/install/cmake-3.15.1/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):</div><div>  Could NOT find LibVDWXC (missing: LIBVDWXC_LIBRARIES) (Required is at least</div><div>  version "0.3.0")</div><div>Call Stack (most recent call first):</div><div>  /opt/cp2k-7.1/tools/toolchain/install/cmake-3.15.1/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)</div><div>  cmake/modules/FindLibVDWXC.cmake:35 (find_package_handle_standard_args)</div><div>  CMakeLists.txt:198 (find_package)</div><div>...</div><div><br></div><div><b><i>This is the last part of CMakeError.log:</i></b></div><div>...</div><div>Linking C executable cmTC_1450c</div><div>/opt/cp2k-7.1/tools/toolchain/install/cmake-3.15.1/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1450c.dir/link.txt --verbose=1</div><div>/opt/cp2k-7.1/tools/toolchain/install/openmpi-4.0.1/bin/mpicc -O2 -ftree-vectorize -g -fno-omit-frame-pointer -march=native -m64     CMakeFiles/cmTC_1450c.dir/CheckSymbolExists.c.o  -o cmTC_1450c</div><div>CMakeFiles/cmTC_1450c.dir/CheckSymbolExists.c.o: In function `main':</div><div>/opt/cp2k-7.1/tools/toolchain/build/SIRIUS-6.4.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: undefined reference to `vdwxc_init_mpi'</div><div>collect2: error: ld returned 1 exit status</div><div>gmake[1]: *** [CMakeFiles/cmTC_1450c.dir/build.make:87: cmTC_1450c] Error 1</div><div>gmake[1]: Leaving directory '/opt/cp2k-7.1/tools/toolchain/build/SIRIUS-6.4.1/build/CMakeFiles/CMakeTmp'</div><div>gmake: *** [Makefile:121: cmTC_1450c/fast] Error 2</div><p><br></p><div>File /opt/cp2k-7.1/tools/toolchain/build/SIRIUS-6.4.1/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:</div><div>/* */</div><div>#include </opt/cp2k-7.1/tools/toolchain/install/libvdwxc-0.4.0/include/vdwxc_mpi.h></div><div><br></div><div>int main(int argc, char** argv)</div><div>{</div><div>  (void)argv;</div><div>#ifndef vdwxc_init_mpi</div><div>  return ((int*)(&vdwxc_init_mpi))[argc];</div><div>#else</div><div>  (void)argc;</div><div>  return 0;</div><div>#endif</div><div>}</div></div><div><p> Plz see more details in the attachments.</p><p>My system is Centos8: “Linux version 4.18.0-193.14.2.el8_2.x86_64 (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC))”.<br></p></div><div><p> Please let me if you guys have any thoughts, or should I provide more information.</p></div><div><p> Thanks for your time!</p></div><div><p>Haibei</p></div></div></div>