Version française
Home     About     Download     Resources     Contact us    
Browse thread
ocamlbuild and ocaml(duce)find
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jaap Boender <Jaap.Boender@p...>
Subject: ocamlbuild and ocaml(duce)find
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