【发布时间】:2016-05-02 20:51:49
【问题描述】:
我一直在学习 OCaml 的 LLVM Kaleidoscope 教程。在second part of the tutorial 上,我已经导航到文件夹中的示例代码
OCaml-Kaleidoscope\Chapter2
使用
编译时遇到问题ocamlbuild toy.byte
在 cygwin 上。这是教程中给出的编译代码。
我得到的错误是
''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
我正在使用来自 this link 的 llvm 3.8.0 版和 OCaml 4.02.3 版。
我需要做什么来解决这个问题?
【问题讨论】:
-
很难说到底发生了什么,但您似乎使用了多个 OCaml 编译器版本。
标签: compiler-errors ocaml llvm ocamlbuild