[Omake] menhir --infer + ocamldep -natives

Michael Furr furr at cs.umd.edu
Thu May 24 18:22:21 PDT 2007


On Thu, 24 May 2007, Aleksey Nogin wrote:

> Try also using -debug-deps -debug-scanner - this should give more
> information.

$ omake  --print-dependencies --depend -debug-deps -debug-scanner
parser.ml
[...]
Scanner: /tmp/omakeffc02b.deps
   targets = parser.cmo sources = ast.cmi
   targets = parser.cmx parser.o sources = ast.cmi ast.cmx ast.o
   targets = parser.cmi sources = ast.cmi
Saving dependencies: <scanner src/parser/scan-ocamlyacc-parser.mly>
   scanned deps: src/parser/parser.cmi: src/parser/ast.cmi
      src/parser/parser.cmo: src/parser/ast.cmi
      src/parser/parser.o: src/parser/ast.cmi src/parser/ast.o
         src/parser/ast.cmx
      src/parser/parser.cmx: src/parser/ast.cmi src/parser/ast.o
         src/parser/ast.cmx
finish_scanner <scanner src/parser/scan-ocamlyacc-parser.mly>:
   src/parser/parser.cmi: src/parser/ast.cmi
   src/parser/parser.cmo: src/parser/ast.cmi
   src/parser/parser.o: src/parser/ast.cmi src/parser/ast.o
src/parser/ast.cmx
   src/parser/parser.cmx: src/parser/ast.cmi src/parser/ast.o
src/parser/ast.cmx
dependencies:
   target: src/parser/parser.ml
      scanner dependencies: <scanner
src/parser/scan-ocamlyacc-parser.mly>
      static dependencies: src/parser/parser.mly
      build dependencies: <scanner
src/parser/scan-ocamlyacc-parser.mly>
         src/parser/parser.mly
      dependencies are merged from: src/parser/parser.mli
         src/parser/parser.ml
      targets that depend on this node at this point:
- build src/parser parser.mli
+ menhir --infer --explain --dump --ocamlc 'ocamlfind ocamlc -warn-error A
-g -I .' parser.mly
File "parser.mly", line 3, characters 2-10:
Unbound module Ast

So the dep is showing up for the .cm* files, but not for the .ml, which is
required for menhir --infer.  Unfortunately, I don't quite grok the
scanner rules in OCaml.om, so I'm not sure how to track this down :-/

-m



More information about the Omake mailing list