-
Notifications
You must be signed in to change notification settings - Fork 47
LAPACKE build on macOS is not compatible with CMake 4 #1726
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
Comments
I guess reference lapack repo has since upgraded to a higher version |
You can't simply pull in a more recent version of Reference LAPACK, because it contains v3.12.1. The LAPACKE library from v3.12.1 could require symbols, that Mac OS 15 Sequoia's Accelerate doesn't provide, causing linking errors. I discussed this here lepus2589/accelerate-lapacke#4 and also provided a workaround here lepus2589/accelerate-lapacke#5. Unfortunately, CMake v4 has introduced quite some incompatibilities and as the CMake version is not available in presets, you also can't use conditional presets to fix this. |
I see you're directly including my project via The initial project was not intended for direct inclusion. But I'm happy to support alternative approaches or additional changes, that make direct inclusion more convenient. Let me know what would help the most. |
@lepus2589 Thanks for the fast update on this! I don't have a good idea right now on how to best approach it, but if I think of something I'll get back to you, appreciate the support :) |
I did some refactoring to the project and integrated the CMake v4 check into the code. Nothing else should have changed for you as a consumer. Unfortunately, I can't really do anything about |
Building the runtime on macOS with cmake 4 installed produces the following error:
The upstream project in question uses the following line, which is no longer compatible with cmake 4:
In the meantime, we might have to require CMake < 4 in Catalyst to warn users early about the incompatibility.
Eventually, we'll have to find a way to update the dependency to use a more recent CMake version 🤔
The text was updated successfully, but these errors were encountered: