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

Compilation unsuccessful #1

Open
malthe opened this issue Nov 21, 2016 · 2 comments
Open

Compilation unsuccessful #1

malthe opened this issue Nov 21, 2016 · 2 comments

Comments

@malthe
Copy link

malthe commented Nov 21, 2016

mborch@wavel:~/co/mlsub$ make all
ocamlbuild -no-hygiene -r -cflag -bin-annot -cflag -g -lflag -g -pkg menhirLib -pkg str -use-menhir -yaccflag --explain main.byte
+ /Users/mborch/.opam/4.02.3/bin/ocamlc.opt -c -bin-annot -g -I /Users/mborch/.opam/4.02.3/lib/menhirLib -I /Users/mborch/.opam/4.02.3/lib/ocaml -o camlgen.cmo camlgen.ml
File "camlgen.ml", line 31, characters 16-1095:
Warning 8: this pattern-matching is not exhaustive.
Here is an example of a value that is not matched:
(_, None)
+ /Users/mborch/.opam/4.02.3/bin/ocamlc.opt -c -bin-annot -g -I /Users/mborch/.opam/4.02.3/lib/menhirLib -I /Users/mborch/.opam/4.02.3/lib/ocaml -o source.cmo source.ml
File "source.ml", line 17, characters 11-30:
Error: Unbound module P.MenhirInterpreter
Command exited with code 2.
Compilation unsuccessful after building 28 targets (0 cached) in 00:00:00.
make: *** [all] Error 10

Building build-js also fails:

mborch@wavel:~/co/mlsub$ make build-js
ocamlbuild -r -build-dir _build.js -use-ocamlfind -pkg menhirLib -use-menhir \
	  -package js_of_ocaml -package js_of_ocaml.syntax \
          -syntax camlp4o webpage.byte
+ ocamlfind ocamlc -c -syntax camlp4o -package js_of_ocaml.syntax -package js_of_ocaml -package menhirLib -o webpage.cmo webpage.ml
File "webpage.ml", line 26, characters 16-30:
Error: Unbound value Parser.modlist
Command exited with code 2.
Compilation unsuccessful after building 25 targets (24 cached) in 00:00:00.
make: *** [build-js] Error 10
@LPTK
Copy link

LPTK commented Jan 14, 2017

I also encounter the Unbound value Parser.modlist error (but not the other one). Not super familiar with OCaml, so I might have skipped something.

@stedolan
Copy link
Owner

stedolan commented Oct 3, 2017

Finally got around to looking at this! It turns out to be an incompatibility with certain versions of Menhir. I'll update the build to depend on the precise version it needs.

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

3 participants