chifflier / ocaml-llvm-tutorial Goto Github PK
View Code? Open in Web Editor NEWOCaml LLVM bindings tutorial
OCaml LLVM bindings tutorial
I followed your tutorial and installed all packages you mentioned except clang. The last one I have installed with llgo things like in this readme. Thus, I have clang 5.0.0.
So, this clang produced me hello.bc file and when I do
LD_LIBRARY_PATH=/usr/lib/ocaml/llvm-3.5/ ./build/tutorial01/src/tutorial01.byte ./hello.bc
I get error:
Fatal error: exception Llvm_bitreader.Error("Invalid type for value")
Thanks in advance,
Kseniia
I follow your first tutorial but got this message when I ran make
ocamlbuild -classic-display -j 0 -cflags -w,@a-4 -use-ocamlfind -pkgs llvm,llvm.bitreader -I src -build-dir build/tutorial1 tutorial1.byte
ocamlfind ocamldep -package llvm.bitreader -package llvm -modules src/tutorial1.ml > src/tutorial1.ml.depends
ocamlfind ocamlc -c -w @a-4 -package llvm.bitreader -package llvm -I src -o src/tutorial1.cmo src/tutorial1.ml
ocamlfind ocamlc -c -w @a-4 -package llvm.bitreader -package llvm -I src -o src/tutorial1.cmo src/tutorial1.ml
File "src/tutorial1.ml", line 1:
Error: /usr/lib/ocaml/llvm-3.5/./llvm.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
Command exited with code 2.
Hint: Recursive traversal of subdirectories was not enabled for this build,
as the working directory does not look like an ocamlbuild project (no
'_tags' or 'myocamlbuild.ml' file). If you have modules in subdirectories,
you should add the option "-r" or create an empty '_tags' file.
To enable recursive traversal for some subdirectories only, you can use the
following '_tags' file:
true: -traverse
<dir1> or <dir2>: traverse
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.