abacus-develop icon indicating copy to clipboard operation
abacus-develop copied to clipboard

FindBLAS.cmake and FindLAPACK.cmake cause infinite recursion with find_package

Open Liunosiki opened this issue 7 months ago • 1 comments

Describe the bug

I failed to make the code because of the error in findblas. cmake and findlapack. cmak. It confused me since I don not think it is your problem. But it did get wrong in WSL2 even with your toolchain to build the code.

Expected behavior

cmake/FindBlas.cmake:8 (find_package) cmake/FindLAPACK.cmake:9 (find_package) cmake/FindLAPACK.cmake:10 (find_package) CMakeLists.txt:458 (find_package)

To Reproduce

No response

Environment

System: WSL2 Ubuntu 22.04

Additional Context

No response

Task list for Issue attackers (only for developers)

  • [ ] Verify the issue is not a duplicate.
  • [ ] Describe the bug.
  • [ ] Steps to reproduce.
  • [ ] Expected behavior.
  • [ ] Error message.
  • [ ] Environment details.
  • [ ] Additional context.
  • [ ] Assign a priority level (low, medium, high, urgent).
  • [ ] Assign the issue to a team member.
  • [ ] Label the issue with relevant tags.
  • [ ] Identify possible related issues.
  • [ ] Create a unit test or automated test to reproduce the bug (if applicable).
  • [ ] Fix the bug.
  • [ ] Test the fix.
  • [ ] Update documentation (if necessary).
  • [ ] Close the issue and inform the reporter (if applicable).

Liunosiki avatar May 17 '25 06:05 Liunosiki

I had this issue when compiling on macOS, please see #4021. There is a workaround under "additional context" therein.

minyez avatar May 20 '25 08:05 minyez