caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild and ocaml(duce)find
@ 2007-06-08  8:55 Jaap Boender
  2007-06-08 11:51 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Jaap Boender @ 2007-06-08  8:55 UTC (permalink / raw)
  To: caml-list

Hello,

I'm trying to build with ocamlbuild a project that is divided over multiple 
directories and uses ocamlducefind. So, as indicated before on this list, I 
run ocamlbuild with the options -ocamldep="ocamlducefind ocamldep" etc. and 
in order to get all directories compiled, I'm adding include tags for all 
directories. So far so good, but now Ocamlbuild complains:

Uncaught exception: Unix.Unix_error(20, "stat", "io")

and indeed, the io directory (which contains a module of my project) is 
missing from the _build directory.

What seems to happen is that during the compilation of a module A, the io 
module is not necessary, so it doesn't get copied to the _build directory (?) 
but ocamlbuild nonetheless passes -I options to the compiler for all the 
flags that I've included. Vanilla ocaml doesn't mind if a directory passed 
with -I doesn't exist, but apparently ocaml(duce)find does.

Could anybody give me some pointers as to how to solve this problem? Write an 
ocamlbuild plugin (how? documentation is somewhat scanty...)? Pass some more 
options? Any advice would be welcome.

  Jaap Boender
-- 
Groupe PPS, Université Paris VII
Bureau 5C01, tél. 01 44 27 85 04


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-08 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08  8:55 ocamlbuild and ocaml(duce)find Jaap Boender
2007-06-08 11:51 ` [Caml-list] " Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).