Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation of CMake modules/ into different directory leads to configuration error with SIRIUS #46

Open
dev-zero opened this issue Jun 30, 2021 · 1 comment

Comments

@dev-zero
Copy link

no matter what I set for CMAKE_PREFIX_PATH or CMAKE_MODULE_PATH, SIRIUS is unable to locate FindFFTW.cmake required by SpFFT:

[...]
-- Found LibXC: /data/tiziano/cp2k/tools/toolchain/install/libxc-5.1.4/lib/libxc.a (Required is at least version "4.0.0")
-- Found LibSPG: /data/tiziano/cp2k/tools/toolchain/install/spglib-1.16.0/lib/libsymspg.a
-- Found HDF5: /data/tiziano/cp2k/tools/toolchain/install/hdf5-1.12.0/lib/libhdf5.a;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found version "1.12.0") found components: C
CMake Error at /data/tiziano/cp2k/tools/toolchain/install/cmake-3.18.5/share/cmake-3.18/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  By not providing "FindFFTW.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "FFTW", but
  CMake did not find one.

  Could not find a package configuration file provided by "FFTW" with any of
  the following names:

    FFTWConfig.cmake
    fftw-config.cmake

  Add the installation prefix of "FFTW" to CMAKE_PREFIX_PATH or set
  "FFTW_DIR" to a directory containing one of the above files.  If "FFTW"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /data/tiziano/cp2k/tools/toolchain/install/SpFFT-1.0.3/lib/cmake/SpFFT/SpFFTStaticConfig.cmake:24 (find_dependency)
  /data/tiziano/cp2k/tools/toolchain/install/SpFFT-1.0.3/lib/cmake/SpFFT/SpFFTConfig.cmake:5 (include)
  CMakeLists.txt:138 (find_package)


-- Configuring incomplete, errors occurred!
See also "/data/tiziano/cp2k/tools/toolchain/build/SIRIUS-7.2.5/build/CMakeFiles/CMakeOutput.log".
ERROR: (./scripts/stage8/install_sirius.sh, line 139) Non-zero exit code detected.

Moving the modules/ directory from spfft/ to SpFFT/ where SpFFTTargets.cmake and friends are fixes the build error.

@AdhocMan
Copy link
Collaborator

AdhocMan commented Jul 1, 2021

You are right, the installation path for modules was incorrect. Wasn't a problem I noticed with a case-insensitive filesystem (macOS) 😅 .
Fixed by 22b16cc.
I'll create a new release with several CMake fixes today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants