I have been working through the LLVM Kaleidoscope Tutorial for OCaml. On the second part of the tutorial, I have navigated to the example code in the folder
OCaml-Kaleidoscope\Chapter2
I am encountering an issue when compiling with
ocamlbuild toy.byte
on cygwin. This is the code given in the tutorial to compile.
The error I am getting is
''ocamlc.opt -c -I +camlp4 -pp camlp4of -o parser.cmo parser.ml
File "parser.ml", line 1:
Error: The files C:\OCaml\lib\pervasives.cmi and token.cmi
make inconsistent assumptions over interface Pervasives
Exit code 2 while executing this command:
''ocamlc.opt -c -I +camlp4 -pp camlp4of -o parser.cmo parser.ml
I am using version 3.8.0 of llvm and version 4.02.3 of OCaml from this link.
What do I need to do to fix this?