-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Record the absolute path of llvm-config when found in PATH #19229
Conversation
Thanks for the update @kit-ty-kate! This LGTM, though I haven't tested the old versions. |
The few that we can test, llvm 9 10 and 11 are failing as follows
i think they used to work, are you sure about the fix? |
I have been using conf-llvm pinned to this change without trouble. It seems that no llvm_config is being found at all for you, but there isn't enough info in the error message to know why. What do you see from running e.g. |
@kit-ty-kate, there are extra quote characters that prevent |
@mseri if you wanted to test to see if this resolves the failure you observed, it would be very helpful. |
@jberdine might you have a view on how to progress this? The opam-repo maintainers are all a bit overloaded with PRs at the moment... |
In the projects I am involved in that use llvm, a vendored version of conf-llvm using this change is used with no trouble. As far as I understand, @mseri saw some issues with just the first commit ea11b7e of this PR after it was force-pushed, but I am unaware of any issue with the PR including both commits. For how to proceed, I would merge unless someone volunteers more testing. |
Shouldn’t the quotes be removed from all the configuree.sh files? I would imagine the same failure may happen with the others on certain systems (cannot check the logs anynlonger unfortunately) |
Oh yes, you are right. I forgot that I only removed them in the latest version to get feedback from @kit-ty-kate as I was changing her code. This makes me realize that a few versions have been released in the meantime that also need updating. |
Hello! I hope this isn't an unwelcome ping, but I wonder if we can either mover this PR forward or close it. WDYT? |
I’d be fine for merging it if it is fixed and the new patches are moved to the opam-source-archive in agreement with the new policy |
I am going to close this issue, provisionally. Given the accrued merge conflicts, and the fact that it has been stalled for 2 years, it seems pretty clear no one has the motivation or bandwidth to land this as is. If I am in error, please re-open, open will an alternative fix, or open an issue to track the unmet need here. Thanks! |
When conf-llvm finds the llvm-config executable in PATH, currently the config var only records the basename of the executable. If the PATH later changes, dependent packages can fail to build, or be built with the wrong
llvm-config
. This patch adds the absolute path the the found llvm-config executable to the config var to avoid this instability.Cc: @kit-ty-kate