[LLVMdev] OCaml bindings broken in trunk

Jonathan Ragan-Kelley jrk at csail.mit.edu
Fri Sep 7 14:41:06 PDT 2012


I've recently upgraded my project-local copy of LLVM from 3.1svn to the latest 3.2svn, and all hell broke loose in my attempts to build OCaml projects.

Trying to narrow it down, I tried testing examples/OCaml-Kaleidoscope and eventually test/Bindings, only to discover that literally nothing in the repository which uses the OCaml bindings seems to build in the current trunk:

- OCaml-Kaleidoscope/Chapter{2-6} fail early with apparent Makefile misconfigurations
- test/Bindings/OCaml/* fail to link for lack of `_LLVMConstInlineAsm`, which is also the first (of many) symbols I struggled to link correctly in my own project after upgrading and rebuilding.

Is this a known state of affairs?

This came up first on OS X 10.8.1, Homebrew OCaml 3.12.1, and a fresh bare checkout of trunk at 163420. I reproduced it exactly on Ubuntu 12.04 (with stock OCaml 3.12.1 and trunk at 163420).

Thanks.



More information about the llvm-dev mailing list