From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 44945BC6B for ; Fri, 8 Jun 2007 10:55:57 +0200 (CEST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l588tugc017973 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 8 Jun 2007 10:55:57 +0200 Received: from hydrogene.pps.jussieu.fr (hydrogene.pps.jussieu.fr [134.157.168.1]) by shiva.jussieu.fr (8.13.8/jtpda-5.4) with ESMTP id l588tuEU065789 for ; Fri, 8 Jun 2007 10:55:56 +0200 (CEST) X-Ids: 164 Received: from [192.168.0.25] ([192.168.0.25]) by hydrogene.pps.jussieu.fr (8.13.4/jtpda-5.4) with ESMTP id l588ttiR021686 for ; Fri, 8 Jun 2007 10:55:55 +0200 From: Jaap Boender Organization: =?iso-8859-1?q?Universit=E9_Paris?= 7 To: caml-list@inria.fr Subject: ocamlbuild and ocaml(duce)find Date: Fri, 8 Jun 2007 10:55:50 +0200 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200706081055.50934.Jaap.Boender@pps.jussieu.fr> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.164]); Fri, 08 Jun 2007 10:55:56 +0200 (CEST) X-Virus-Scanned: ClamAV 0.88.7/3377/Thu Jun 7 22:20:29 2007 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at concorde with ID 4669199C.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Miltered: at shiva.jussieu.fr with ID 4669199C.004 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocaml:01 ocamldep:01 uncaught:01 compilation:01 compiler:01 flags:01 ocaml:01 pointers:01 20,:98 unix:01 unix:01 complains:01 exception:01 pps:01 pps:01 Hello, I'm trying to build with ocamlbuild a project that is divided over multiple= =20 directories and uses ocamlducefind. So, as indicated before on this list, I= =20 run ocamlbuild with the options -ocamldep=3D"ocamlducefind ocamldep" etc. a= nd=20 in order to get all directories compiled, I'm adding include tags for all=20 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=20 missing from the _build directory. What seems to happen is that during the compilation of a module A, the io=20 module is not necessary, so it doesn't get copied to the _build directory (= ?)=20 but ocamlbuild nonetheless passes -I options to the compiler for all the=20 flags that I've included. Vanilla ocaml doesn't mind if a directory passed= =20 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=20 ocamlbuild plugin (how? documentation is somewhat scanty...)? Pass some mor= e=20 options? Any advice would be welcome. Jaap Boender =2D-=20 Groupe PPS, Universit=C3=A9 Paris VII Bureau 5C01, t=C3=A9l. 01 44 27 85 04