Skip to content
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

Closed
llvmbot opened this issue Feb 21, 2013 · 10 comments
Closed

CMake build does not contain the OCaml bindings #15697

llvmbot opened this issue Feb 21, 2013 · 10 comments
Assignees
Labels
bugzilla Issues migrated from bugzilla cmake Build system in general and CMake in particular

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Feb 21, 2013

Bugzilla Link 15325
Resolution FIXED
Resolved on Aug 11, 2015 17:26
Version trunk
OS All
Blocks llvm/llvm-bugzilla-archive#15732
Reporter LLVM Bugzilla Contributor
CC @whitequark

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.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Feb 21, 2013

assigned to @whitequark

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 13, 2015

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)
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.

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?

@whitequark
Copy link
Collaborator

LLVM actually supports OCaml bindings in the CMake builds since r223071.

It requires ocamlfind, ctypes >= 0.3, and OUnit 2 for unit tests.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 13, 2015

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?

@whitequark
Copy link
Collaborator

Yes. Consider using http://opam.ocaml.org/ to simplify the process.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 13, 2015

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!

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 13, 2015

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.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 13, 2015

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.

@llvmbot
Copy link
Collaborator Author

llvmbot commented Jan 13, 2015

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.

@sylvestre
Copy link
Collaborator

mentioned in issue llvm/llvm-bugzilla-archive#15732

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 4, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla cmake Build system in general and CMake in particular
Projects
None yet
Development

No branches or pull requests

3 participants