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

update crest to 3.0.2 #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

marcelmbn
Copy link
Member

...

@marcelmbn marcelmbn added the enhancement New feature or request label Nov 21, 2024
@marcelmbn marcelmbn self-assigned this Nov 21, 2024
@marcelmbn marcelmbn force-pushed the update/crest branch 3 times, most recently from d6479ce to 499ea81 Compare November 21, 2024 12:02
@marcelmbn
Copy link
Member Author

@pprcht, can you help with the brew formula for crest-3.0.2? If you're interested, please have a look at https://github.com/grimme-lab/homebrew-qc/blob/main/Formula/crest.rb and the proposed changes to the file in this PR.

@marcelmbn
Copy link
Member Author

marcelmbn commented Nov 21, 2024

Apparently, test-drive is not found by cmake even though it's among the crest dependencies in the formula and the installation does not produce any errors.

-- The C compiler identification is GNU 14.2.0
  -- The Fortran compiler identification is GNU 14.2.0
  -- Checking whether C compiler has -isysroot
  -- Checking whether C compiler has -isysroot - yes
  -- Checking whether C compiler supports OSX deployment target flag
  -- Checking whether C compiler supports OSX deployment target flag - yes
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/gcc-14 - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Checking whether Fortran compiler has -isysroot
  -- Checking whether Fortran compiler has -isysroot - yes
  -- Checking whether Fortran compiler supports OSX deployment target flag
  -- Checking whether Fortran compiler supports OSX deployment target flag - yes
  -- Detecting Fortran compiler ABI info
  -- Detecting Fortran compiler ABI info - done
  -- Check for working Fortran compiler: /opt/homebrew/bin/gfortran - skipped
  fatal: not a git repository (or any of the parent directories): .git
  -- Looking for Fortran sgemm
  -- Looking for Fortran sgemm - not found
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
  -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
  -- Found Threads: TRUE
  -- Looking for Fortran sgemm
  -- Looking for Fortran sgemm - found
  -- Found BLAS: /opt/homebrew/opt/openblas/lib/libopenblas.dylib
  -- Looking for Fortran cheev
  -- Looking for Fortran cheev - found
  -- Found LAPACK: /opt/homebrew/opt/openblas/lib/libopenblas.dylib;-lm;-ldl
  -- Found OpenMP_C: -fopenmp (found version "4.5")
  -- Found OpenMP_Fortran: -fopenmp (found version "4.5")
  -- Found OpenMP: TRUE (found version "4.5")
  -- OpenMP::OpenMP_Fortran is linking the following libraries:
  -- /opt/homebrew/opt/gcc/lib/gcc/14/libgomp.dylib
  -- libopenblas was found as part of LAPACK
  -- Could NOT find test-drive (missing: test-drive_DIR)
  -- Retrieving test-drive from https://github.com/fortran-lang/test-drive
  CMake Error at /opt/homebrew/Library/Homebrew/cmake/trap_fetchcontent_provider.cmake:12 (message):
    Refusing to populate dependency 'test-drive' with FetchContent while
    building in Homebrew, please use a formula dependency or add a resource to
    the formula.
  Call Stack (most recent call first):
    /opt/homebrew/opt/cmake/share/cmake/Modules/FetchContent.cmake:24[68](https://github.com/grimme-lab/homebrew-qc/actions/runs/11953094953/job/33320248571?pr=39#step:8:69):EVAL:1 (trap_fetchcontent_provider)
    /opt/homebrew/opt/cmake/share/cmake/Modules/FetchContent.cmake:2468 (cmake_language)
    /opt/homebrew/opt/cmake/share/cmake/Modules/FetchContent.cmake:2314 (__FetchContent_MakeAvailable_eval_code)
    config/modules/crest-utils.cmake:123 (FetchContent_MakeAvailable)
    config/modules/Findtest-drive.cmake:27 (crest_find_package)
    CMakeLists.txt:78 (find_package)
  
  
  -- Configuring incomplete, errors occurred!

@marcelmbn marcelmbn mentioned this pull request Nov 21, 2024
@pprcht
Copy link

pprcht commented Nov 21, 2024

Sorry, I have no experience with brew whatsoever. No idea who set up this recipe.

CMake seems to block the download of test-drive according to the message, if there is another way to let brew itself download the repo and put it to the right place before starting the cmake call that's probably necessary. We do this in the conda recipe as well.

@marcelmbn marcelmbn linked an issue Nov 21, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update crest formula
2 participants