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=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id B1C89BC0A for ; Fri, 8 Jun 2007 13:51:06 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.224]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l58Bp5E5030979 for ; Fri, 8 Jun 2007 13:51:06 +0200 Received: by nz-out-0506.google.com with SMTP id s18so645240nze for ; Fri, 08 Jun 2007 04:51:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cG6tfzSBmMVBuZ/3/uqhDfnBZT3s6fynZCsEqgSv4ykI35I+By+P7eV+zelZ/7aVwxTp31NDKm7PxVK2+wtSiZQ/26A32qlBsbvPCBrN7PeitOUp+mcbjexBxeQRB5FiANCFfTAllbI/7rjPUdFcEKh7YxVxskt9DLriuggeRaw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XMhlfxnfalqTEdhd5iDj3iA09CmdzYSvU5dSv5QhLbHiZYMdv/vKwAMF92Gxy4s509xcl38SXHyuWX7XPyNQWOsSuLKAPcnFVGGVq9SM8PT3PjijthIBzxhRkIWDpPsMvJgyflt9UWCL5lZXu+lTzwUsJRyGK/+GVsMUWXlyrOI= Received: by 10.115.54.1 with SMTP id g1mr2493677wak.1181303464838; Fri, 08 Jun 2007 04:51:04 -0700 (PDT) Received: by 10.114.181.6 with HTTP; Fri, 8 Jun 2007 04:51:04 -0700 (PDT) Message-ID: Date: Fri, 8 Jun 2007 13:51:04 +0200 From: "Nicolas Pouillard" To: "Jaap Boender" Subject: Re: [Caml-list] ocamlbuild and ocaml(duce)find Cc: caml-list@inria.fr In-Reply-To: <200706081055.50934.Jaap.Boender@pps.jussieu.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200706081055.50934.Jaap.Boender@pps.jussieu.fr> X-j-chkmail-Score: MSGID : 466942A9.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 466942A9.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocamldep:01 uncaught:01 ocamlfind:01 gerd:01 mkdir:01 pointers:01 pointers:01 20,:98 unix:01 unix:01 wrote:01 workaround:01 complains:01 complains:01 On 6/8/07, Jaap Boender wrote: > 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") > [...] That's a problem that we already faced, there is two solutions: 1/ If I well remember the last version of ocamlfind no more complains about this since Gerd integrated our patch for this. 2/ Perform some mkdir _build/... as a workaround before running ocamlbuild [...] > 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. Any contribution too :) Documentation pointers (including a plugin example): http://gallium.inria.fr/~pouillar -- Nicolas Pouillard