[Omake] OCAMLPACKS broken?

Francois Pottier Francois.Pottier at inria.fr
Wed Jun 14 02:11:43 PDT 2006


Hello,

I am attempting to enable the use ocamlfind with omake, but I am
running up against a problem. If I set

  USE_OCAMLFIND = true
  OCAMLPACKS = alphaLib

then I get an error message:

  - build . tarjan.cmi
  + ocamlfind ocamlc -package "alphaLib" -warn-error A -dtypes -g -g -I . -c tarjan.mli
  ocamlfind: Package `"alphaLib"' not found
  *** omake: 28/208 targets are up to date
  *** omake: failed (0.2 sec, 1/10 scans, 1/1 rules, 0/151 digests)
  *** omake: targets were not rebuilt because of errors:
     tarjan.cmi
	depends on: tarjan.mli

It looks as if ocamlfind could not find the package alphaLib, but
the package is there -- in fact, if I copy and paste the above
command into the shell, it works fine:

  $ ocamlfind ocamlc -package "alphaLib" -warn-error A -dtypes -g -g -I . -c tarjan.mli
  $ echo $?
  0

If I set

  OCAMLPACKS =
  OCAMLFLAGS += -package alphaLib
  OCAML_BYTE_LINK_FLAGS += -linkpkg

then everything works fine, but that seems to defeat the purpose of
having OCAMLPACKS in the first place. (I am using 0.9.8.ocamldep
which I just checked out using svn.)

-- 
François Pottier
Francois.Pottier at inria.fr
http://cristal.inria.fr/~fpottier/


More information about the Omake mailing list