[OMake] Announcing OMake 0.9.8.5 - a substantial feature enhancements release

Mike Furr furr at cs.umd.edu
Thu Aug 9 09:28:54 PDT 2007


OMake 0.9.8.5 fails to build one of my projects in a couple of different 
ways.  In my OMakefile, I have

	USE_OCAMLFIND=true
	OCAMLDEP_MODULES_ENABLED = $(OCAMLDEP_MODULES_AVAILABLE)
	OCAMLDEP=$(OCAMLDEP_MODULES)

but this causes the build to fail because it tries to use ocamlfind to 
run ocamldep-omake:

[...]
+ ocamlfind ocamlrun /usr/local/bin/ocamldep-omake -modules bench.ml
      | Shell.ocamldep-postproc()
Usage: ocamlfind query        [-help | other options]
<package_name> ...

This is because build/OCaml.om seems to have changed its scanner rule to:

public.OCamlScanner(src_file) =
     if $(OCAMLDEP_MODULES_ENABLED)
         value $(OCAMLFIND) $(OCAMLDEP_MODULES) ...

Thus, its impossible to use the OMake supplied ocamldep-omake, (The 
$(OCAMLFIND) call was previously omitted on this line).

If I fix that by hand, I get a second problem which seems to be from (my 
requested!) change to the OCamlPackage function which I never got around 
to testing.... (oops):

$ omake
[...]
*** omake:
    These file are targeted separately, but appear as effects of a 
single rule.
    This is likely to lead to unpredictable behavior.
    targets:
       src/reins.cmi
          (File /home/furrm/om/dist/lib/omake/build/OCaml.om: line 882, 
characters 4-11)
       src/reins.cmo
          (File /home/furrm/om/dist/lib/omake/build/OCaml.om: line 857, 
characters 3-31)
*** omake: 353/464 targets are up to date
*** omake: blocked (1.00 sec, 0/73 scans, 0/128 rules, 0/497 digests)
*** omake: deadlock on src/reins.cmi
*** omake: is a dependency of src/reins.cmi
*** omake error:
    File /home/furrm/om/dist/lib/omake/build/OCaml.om: line 882, 
characters 4-11
    failed on target: src/reins.cmi

The build rule is pretty simple:

   $(OCamlPackage reins, $(FILES))

and the project does *not* include the file reins.mli.  However, if I 
"touch src/reins.mli", I also get the error:

*** omake error:
    File /home/furrm/om/dist/lib/omake/build/OCaml.om: line 882, 
characters 4-11
    Do not know how to build "<scanner src/scan-ocaml-reins.cmi.mli>" 
required for "src/reins.cmi"


-mike


More information about the Omake mailing list