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

SpLA-1.5: FindBLAS missing in installed SPLA*Config*.cmake #18

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

SpLA-1.5: FindBLAS missing in installed SPLA*Config*.cmake #18

dev-zero opened this issue Jul 1, 2021 · 1 comment

Comments

@dev-zero
Copy link

dev-zero commented Jul 1, 2021

The installed CMake configs of SpLA-1.5 are missing a FindBLAS at some point. This is what we get in our Docker build environment when trying to build SIRIUS against SpLa-1.5 (upgrading from 1.4.0) and after fixing #17 by moving the modules/ directory manually:

[...]
-- Configuring done
�[91mCMake Error at src/CMakeLists.txt:98 (add_library):
  Target "sirius" links to target "BLAS::blas" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?


�[0m�[91mCMake Error at apps/atoms/CMakeLists.txt:1 (add_executable):
  Target "atom" links to target "BLAS::blas" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?


�[0m�[91mCMake Error at apps/hydrogen/CMakeLists.txt:1 (add_executable):
  Target "hydrogen" links to target "BLAS::blas" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


�[0m�[91mCMake Error at apps/dft_loop/CMakeLists.txt:1 (add_executable):
  Target "sirius.scf" links to target "BLAS::blas" but the target was not
  found.  Perhaps a find_package() call is missing for an IMPORTED target, or
  an ALIAS target is missing?


�[0m�[91mCMake Error at apps/utils/CMakeLists.txt:1 (add_executable):
  Target "unit_cell_tools" links to target "BLAS::blas" but the target was
  not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


�[0m-- Generating done
�[91mCMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_CXXFLAGS_RELEASE
    SCALAPACK_INCLUDE_DIR


CMake Generate step failed.  Build files cannot be regenerated correctly.
@AdhocMan
Copy link
Collaborator

AdhocMan commented Jul 1, 2021

Thanks for reporting this. The issue was, that the CMake provided FindBLAS only provides the target since 3.18.0. So the target is defined if not available for building, but that workaround was missing in the static library config file. Should be fixed by b0a3b3f.

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