Giter Site home page Giter Site logo

ocaml-llvm-tutorial's Introduction

ocaml-llvm-tutorial

ocaml-llvm-tutorial's People

Contributors

chifflier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ocaml-llvm-tutorial's Issues

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

Cannot compile tutorial01.ml

I follow your first tutorial but got this message when I ran make

  • ocaml version: 4.02.1
  • llvm version: 3.5

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
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.