-
Notifications
You must be signed in to change notification settings - Fork 39
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
Unable to specify a valid path for llvm installation #703
Comments
Thanks for the report! I see at https://github.com/clearlinux-pkgs/llvm/blob/main/cmake_args that Clear Linux does this by setting |
Technically yes, although the slightly better approach would be to initialize But I think it would be even better to eliminate these explicit checks and just let cmake do its thing and naturally find the needed cmake files, because you're going to end up with all kinds of corner cases like this if you're manually hunting them down. In other words, I think this error check is going to cause false failures more often than cmake itself will fail. As a distribution packager, I look at potential packages like this: If I drop this in a clean system that already satisfies all the dependencies system-wide, can I build it? As long as they're not hidden, I'm happy to chase down those dependencies and package them directly, so they're available for any other software that needs them too. |
I get where you're coming from, it would be nice if we could pick up the
I did have a look at that as well, but just doing it with We also have a third option, which is to use |
With #705 I have managed to build on Clear Linux with
I agree with you that this is not ideal. I will continue work on cleaning this up but am putting this up first to at least unblock you. |
Thank you! I'll pull the diff and try it once I get clspv built. |
I should point out that we do set a handful of top-level variables for cmake, including:
It would be handy if all the optional variables aren't set, the cmake config falls back to these system-level definitions. |
What I am working on, but don't have working correctly yet, is to do |
In Clear Linux, 64-bit libraries are installed under the standard location
/usr/lib64
. As a result, the system llvm installs files such as/usr/lib64/cmake/llvm/LLVMConfig.cmake
.The following cmake specification hard-codes
lib
, so we have no way to pass in a validCA_LLVM_INSTALL_DIR
.oneapi-construction-kit/cmake/ImportLLVM.cmake
Lines 47 to 63 in 538093a
The text was updated successfully, but these errors were encountered: