Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.

Build fails #3

Open
superbobry opened this issue Mar 12, 2012 · 4 comments
Open

Build fails #3

superbobry opened this issue Mar 12, 2012 · 4 comments

Comments

@superbobry
Copy link

$ omake -debug-deps --verbose
Removing .omakedb
Removing .omakedb.lock
Removing OMakefile.omc
Removing OMakeroot.omc
Removing src/OMakefile.omc
Removing src/lexer.ml
Removing src/parser.ml
Removing src/parser.mli
*** omake: reading OMakefiles
--- Checking for ocamlfind... (found /Users/bobry/.homebrew/bin/ocamlfind)
--- Checking for ocamlc.opt... (found /Users/bobry/.homebrew/bin/ocamlc.opt)
--- Checking for ocamlopt.opt... (found /Users/bobry/.homebrew/bin/ocamlopt.opt)
--- Checking whether ocamlc understands the "z" warnings... (yes)
*** omake: finished reading OMakefiles (0.03 sec)
- build src lexer.ml
+ ocamllex -q lexer.mll
- exit src lexer.ml, 0.05 sec, code 0
--- Checking if ocamldep understands -modules... (yes)
- scan src scan-ocaml-lexer.ml
+ <compute 2 value dependencies>
- scan src scan-ocaml-lexer.ml
+ ocamlfind ocamldep -modules lexer.ml | Shell.ocamldep-postproc()
- exit src scan-ocaml-lexer.ml, 0.03 sec, code 0
Scanner: /var/folders/kf/2qxhhnpn57z45cxwpztz5zg00000gn/T/omake951dc2.deps
   targets = lexer.cmo sources = lexer_state.cmi parser.cmi
   targets = lexer.cmx lexer.o sources = lexer_state.cmi parser.cmi lexer_state.cmx parser.cmx lexer_state.o parser.o
- scan src scan-ocaml-parse.ml
+ <compute 2 value dependencies>
- scan src scan-ocaml-parse.ml
+ ocamlfind ocamldep -modules parse.ml | Shell.ocamldep-postproc()
- exit src scan-ocaml-parse.ml, 0.03 sec, code 0
Scanner: /var/folders/kf/2qxhhnpn57z45cxwpztz5zg00000gn/T/omake4ebf38.deps
   targets = parse.cmo sources = ast.cmi lexer.cmi lexer_state.cmi parser.cmi
   targets = parse.cmx parse.o sources = ast.cmi lexer.cmi lexer_state.cmi parser.cmi ast.cmx lexer.cmx lexer_state.cmx parser.cmx ast.o lexer.o lexer_state.o parser.o
- build src parser.ml
+ ocamlyacc -bgen_parser parser.mly
1 shift/reduce conflict.
- build src parser.ml
+ Shell.mv(gen_parser.ml src/parser.ml)
- build src parser.ml
+ Shell.rm(gen_parser.mli)
- exit src parser.ml, 0.03 sec, code 0
- build src parser.mli
+ ocamlc -i parser.ml > src/parser.mli
File "parser.mly", line 2, characters 19-28:
Error: Unbound module Ast
- exit src parser.mli, 0.12 sec, code 2
*** omake: 19/73 targets are up to date
*** omake: failed (0.33 sec, 2/2 scans, 3/3 rules, 12/75 digests)
*** omake: targets were not rebuilt because of errors:
   src/parser.mli
@mmonaco
Copy link

mmonaco commented Mar 15, 2012

This is a PITA that I don't understand. To fix it, just delete parser.mli immediately after ocamlyacc is run.

@superbobry
Copy link
Author

Oh, have you considered using oasis instead of omake?

@mmonaco
Copy link

mmonaco commented Mar 15, 2012

I just use my own Makefile actually, so it was easy to through a RM line in where needed.

@m2ym
Copy link
Owner

m2ym commented Mar 21, 2012

Fixed. Please try it again.

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

No branches or pull requests

3 participants