Hi,<div><br></div><div>The Ocaml Kaleidoscope tutorial code stops compiling at chapter 3. I get</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>
<div>$ ocamlbuild toy.byte</div></div><div><div>Finished, 1 target (0 cached) in 00:00:00.</div></div><div><div>+ /usr/bin/ocamlc -c -o codegen.cmo <a href="http://codegen.ml">codegen.ml</a></div></div><div><div>File "<a href="http://codegen.ml">codegen.ml</a>", line 5, characters 0-9:</div>
</div><div><div>Error: Unbound module Llvm</div></div></blockquote><div><br></div><div>This is with Llvm 2.7 on ubuntu 10.10. I have the package libllvm-ocaml-2.7-dev installed. </div><div><br></div><div>The offending line is simply</div>
<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>open Llvm</div></blockquote><div><br></div>The top level OCaml interpreter gies by the same error when I enter this line, but does work when I launch it with<div>
<br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>$ ocaml -I +llvm-2.7</div></blockquote><div><br></div>However running ocamlbuild witht the same parameters has no effect. <div>
<br></div><div>Thanks for any help,</div><div><br></div><div>Alex</div>