ocaml-llvm-tutorial
ocaml-llvm-tutorial copied to clipboard
Llvm_bitreader.Error while running tutorial01.byte
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