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
CMake build does not contain the OCaml bindings #15697
Comments
assigned to @whitequark |
I can also confirm that this is true for CMake 3.1.0 running under OS X 10.10.1 Yosemite. Should we contact the CMake mailing list about this? The specific error I'm seeing is this: -- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH) Does this just mean that users who want to set up and maybe use LLVM's OCaml bindings simply need to set some environment variables? If so, then what should the values of 'OCAMLFIND,' 'OCAML_VERSION,' and 'OCAML_STDLIB_PATH' be? |
LLVM actually supports OCaml bindings in the CMake builds since r223071. It requires ocamlfind, ctypes >= 0.3, and OUnit 2 for unit tests. |
Ah, thank you for clarifying that! I assume that I'll be able to find out how to install ocamlfind, ctypes, and OUnit 2 by performing a few simple Google searches, then? |
Yes. Consider using http://opam.ocaml.org/ to simplify the process. |
That's funny; I just installed OPAM since Google's first hit for 'ocamlfind' was its entry on the OPAM web site! |
No, wait, that's not what happened…ah, yes, now I remember! I was looking at https://ocaml.org/docs/install.html#Homebrew, and it said that I should probably run 'brew install opam,' so I did. |
Oh, duh! Both of my posts are right when you combine certain aspects of them: I did a Google search for 'install OCamlFind using Homebrew,' and this led me to https://ocaml.org/docs/install.html#Homebrew, which told me to install OPAM, which I will now use to install OCamlFind, ctypes, and OUnit. |
Sorry for all the confused posts, by the way; i just wanted to let you know how things were going so that you could see that your advice has helped me. |
mentioned in issue llvm/llvm-bugzilla-archive#15732 |
Extended Description
When building llvm with CMake, there is no option to install the OCaml bindings.
Please, allow building and installing the OCaml bindings with CMake.
The text was updated successfully, but these errors were encountered: