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 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 88BC2BC6C for ; Mon, 28 Jan 2008 11:21:41 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CANk7nUeBrw8EW2dsb2JhbACQHhUKKpl9 X-IronPort-AV: E=Sophos;i="4.25,258,1199660400"; d="scan'208";a="21877792" Received: from ext.lri.fr ([129.175.15.4]) by mail4-smtp-sop.national.inria.fr with ESMTP; 28 Jan 2008 11:21:41 +0100 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 0533EA480D for ; Mon, 28 Jan 2008 11:21:41 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IOvcMfHOvV1v for ; Mon, 28 Jan 2008 11:21:40 +0100 (CET) Received: from smtp.lri.fr (vhost3-23 [129.175.3.23]) by ext.lri.fr (Postfix) with ESMTP id DA5F4A45FC for ; Mon, 28 Jan 2008 11:21:40 +0100 (CET) Received: from [129.175.4.128] (lri4-128 [129.175.4.128]) by smtp.lri.fr (Postfix) with ESMTP id C4D32E0516 for ; Mon, 28 Jan 2008 11:21:40 +0100 (CET) Message-ID: <479DAD21.9040300@lri.fr> Date: Mon, 28 Jan 2008 11:23:29 +0100 From: Romain Bardou User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocamlbuild `Circular dependencies' References: <20080124142327.GC761@pc6197-c703.uibk.ac.at> In-Reply-To: <20080124142327.GC761@pc6197-c703.uibk.ac.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; lri:01 compile:01 caml-list:01 dependency:01 cma:01 cma:01 semantic:02 compiling:02 reproduce:03 library:03 library:03 file:11 directory:11 similar:12 otherwise:12 I tried to reproduce a similar set of directories as yours. I couldn't get the "circular dependency" error, but I had to compile everything in one command line, otherwise the file a.cma (which is in the _build/A directory) was deleted before compiling b.cma. The command which I used and which worked is: ocamlbuild -Is A,B a.cma b.cma I don't really understand how the -lib option works though. Where and when does it look for the library x.cma with the "-lib x" option? How and what's the semantic of the "+" you can add at the beginning of a library name?... -- Romain Bardou