Displaying 2 results from an estimated 2 matches for "myocamlbuild".
2010 Jun 27
0
[LLVMdev] ocaml bindings + ocamlbuild problem
...compile. Minimal
case:
(* FILE: minimal.ml *)
let main () =
let m = Llvm.create_module (Llvm.global_context ()) "test" in
ignore (Llvm_bitwriter.output_bitcode stdout m)
;;
main ()
(* FILE: _tags *)
<*.{byte,native}>: g++, use_unix, use_llvm, use_llvm_bitwriter
(* FILE: myocamlbuild.ml *)
open Ocamlbuild_plugin;;
ocaml_lib ~extern:true "llvm";;
ocaml_lib ~extern:true "llvm_bitwriter";;
flag ["link"; "ocaml"; "g++"] (S[A"-cc"; A"g++"]);;
I try to compile with the command line
ocamlbuild minimal.native
a...
2012 Dec 15
0
[LLVMdev] Kaleidoscope Build Problems - (OCaml)
...s deprecated
ld: library not found for -lllvm_scalar_opts
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
File "_none_", line 1:
Error: Error while building custom runtime system
Command exited with code 2.
I noticed that the make files provided do not use myocamlbuild.ml (and
hence the ocamlbuild tool), but quite frankly, I find it difficult to
follow exactly how they find the library files required in the OBJ_DIR tree
to do the build.
Any explicit attempt to include library paths gives me the following error.
ocamlbuild -I /usr/local/bin toy.byte
Failure:...