m2ym / ocaml-pythonlib

OCaml library for parsing and pretty printing Python code
39 stars 11 forks source link

Build fails #3

Open superbobry opened 12 years ago

superbobry commented 12 years ago
$ 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 commented 12 years ago

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

superbobry commented 12 years ago

Oh, have you considered using oasis instead of omake?

mmonaco commented 12 years ago

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

m2ym commented 12 years ago

Fixed. Please try it again.