Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build interpreter (missing files or compiler flags?) #1479

Closed
osa1 opened this issue May 27, 2022 · 3 comments
Closed

Unable to build interpreter (missing files or compiler flags?) #1479

osa1 opened this issue May 27, 2022 · 3 comments

Comments

@osa1
Copy link

osa1 commented May 27, 2022

Interpreter README says simply run make to build the interpreter, but make (and make all, make opt etc.) fails with:

$ make
echo >_tags "true: bin_annot"
echo >>_tags "true: debug"
echo >>_tags "<{util,syntax,binary,text,valid,runtime,exec,script,host,main,tests}/*.cmx>: for-pack(Wasm)"
ocamlbuild -lexflags -ml -cflags '-w +a-4-27-42-44-45 -warn-error +a-3' -I util -I syntax -I binary -I text -I valid -I runtime -I exec -I script -I host -I main -I tests -libs bigarray -quiet main.native
+ /home/omer/.opam/default/bin/ocamlc.opt -c -w +a-4-27-42-44-45 -warn-error +a-3 -g -bin-annot -I exec -I main -I util -I script -I valid -I runtime -I tests -I syntax -I binary -I text -I host -o exec/ixx.cmo exec/ixx.ml
File "exec/ixx.ml", line 1:
Error (warning 70 [missing-mli]): Cannot find interface file.
Command exited with code 2.
make: *** [Makefile:70: main.native] Error 10
rm _tags

OCaml version:

$ ocamlc --version
4.13.1
@rossberg
Copy link
Member

The Wasm Makefile sets warnings to errors. But OCaml recently added additional warnings, which the code runs into. To fix this, you'll have to tweak the Makefile. I believe the following change to line 22 should do the trick:

FLAGS =         -lexflags -ml -cflags '-w +a-4-27-42-44-45-70 -warn-error +a-3'

(Please let me know if this works. I don't have OCaml 4.13 installed, so cannot test it right now.)

@osa1 osa1 changed the title Unable to build interpreter (misisng files or compiler flags?) Unable to build interpreter (missing files or compiler flags?) May 27, 2022
@osa1
Copy link
Author

osa1 commented May 27, 2022

It works, thanks. It seems like it's safe to make this change in the repo as with the flag I can build the interpreter with OCaml 4.08.0 too.

@rossberg
Copy link
Member

Closed via #1481.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants