Build fails on Fedora 12

ef57f9f
Opened by Vladimir G Ivanovic at 2010-10-22 15:47:33

I have an up-to-date Fedora 12 (Linux 2.6.33.5-124.fc13.x86_64 x86_64) with all the prerequisites, and the build fails with:

$ NO_VALGRIND=1 make check cfg: building on Linux x86_64 cfg: unix-y environment cfg: using gcc cfg: using ocaml native compiler cfg: building native compiler cfg: using LLVM version 2.8svn cfg: found llvm-config at /usr/local/llvm-2.8svn/bin/llvm-config check: formatting compile: boot/llvm/llasm.ml File "boot/llvm/llasm.ml", line 118, characters 4-30: Error: Unbound value Llvm.set_module_inline_asm make: *** [boot/llvm/llasm.cmx] Error 2

My path includes /usr/local/llvm-2.8svn/bin which I got from the LLVM svn repository, built, tested and installed today with 'make happiness'.

  1. Ah. The makefile autoconfigury is assuming that "having LLVM" means "having LLVM ocaml bindings", which is not true. As a short-term fix, I've disabled the LLVM backend by default (it's significantly more broken than the built-in one at present). I'll modify the logic later in the week to be more particular about sensing presence or absence of the ocaml bindings. Leaving this open for now.

    Graydon Hoare at 2010-07-11 03:02:32

  2. Thanks. Disabling the LLVM backend allowed the build to complete.

    Vladimir G Ivanovic at 2010-07-11 05:15:00

  3. There's now a check for the llvm bindings, so this issue should be resolved.

    Ralph Giles at 2010-10-22 15:47:33