-
Notifications
You must be signed in to change notification settings - Fork 61
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
adding to the package managers? #153
Comments
Agreed, but this is something that will require external contributors who have experience with these package managers to do (as I personally have neither the experience nor the time right now). I think @athas was looking at writing a homebrew formula at some point but not sure if that went anywhere. |
I did try writing a Homebrew formula, but encountered weird LLVM-related errors that I did not understand. Maybe I should try again. |
I can't even figure out how to compile oclgrind on macOS in the first place, apparently. First, I have installed LLVM via Homebrew. It appears to be version 6.0.1. The oclgrind build instructions state that I should run cmake with LLVM_ROOT set to the "path to the LLVM installation". Where is that? cmake complains that it cannot find a package configuration file unless I set LLVM_ROOT to a directory containing LLVM's CMakeLists.txt, but when I set it to e.g.
|
Are you using CMake version older than 3.0 by any chance? Looks like |
If I use the following simple formula for Homebrew, then apparently the environment magic gets set up correctly and Homebrew can start compilation:
But the build fails for terrifying reasons (external link due to size): https://paste.fedoraproject.org/paste/LIHFJ-ycqtWgV0V9OnbNNg |
My cmake is 3.12. |
Weird, same formula seems to work fine for me. Those linker errors look bizarre, haven't seen anything like that before... |
It's possible my Homebrew setup is broken. I seem to recall having a messed up LLVM before (from having multiple versions installed simultaneously - and while my C++-fu has weakened, that could look like stale object files). |
Alright, after reinstalling everything, the formula works. I'll submit it to Homebrew later tonight. |
It's in Homebrew now. |
I'm now also trying to add it to NixOS. However, the latest release of Oclgrind does not work with LLVM 7. Could we have a new release soon, please? (NixOS is fortunately flexible enough that it's trivial to have different LLVMs installed concurrently, but it's a waste of disk space.) |
Sure. I'll aim to release shortly after the LLVM branches for the 9.0 release (in ~1 month) so that we can support that as well. |
I just checked the Repology page of this project. Unfortunately there are none of the package managers for windows and mac have this library. It would be a great help if it could be added to some, for example Chocolatey and/or Scoop for Windows, and HomeBrew and/or MacPorts for macOS.
The text was updated successfully, but these errors were encountered: