From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p9QDMP64022618 for ; Wed, 26 Oct 2011 15:22:25 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkwDADMJqE5ZELGagWdsb2JhbABCqVsBARYmJYFuAQEFOj8QCxguFEmIFbUHiAlhBJQKkWA X-IronPort-AV: E=Sophos;i="4.69,409,1315173600"; d="scan'208";a="126104136" Received: from recoil.dh.bytemark.co.uk (HELO dark.recoil.org) ([89.16.177.154]) by mail1-smtp-roc.national.inria.fr with SMTP; 26 Oct 2011 15:22:14 +0200 Received: (qmail 16877 invoked by uid 10000); 26 Oct 2011 13:22:14 -0000 Date: Wed, 26 Oct 2011 14:22:14 +0100 From: Anil Madhavapeddy To: Guillaume Yziquel Cc: caml-list@inria.fr Message-ID: <20111026132214.GA31354@dark.recoil.org> References: <20111026125804.GP2061@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111026125804.GP2061@localhost> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: [Caml-list] ocamlbuild circular dependencies On Wed, Oct 26, 2011 at 02:58:04PM +0200, Guillaume Yziquel wrote: > Hi. > > I have some weird circular dependencies build issue using ocamlbuild. > Something like: > > Circular dependencies: "A.cmo" already seen in > [ "A/C.cmi"; "A.cmo"; "B/D.cmo" ] > > I haven't been able to trim it down to a simpler reproducible example. > How are circular dependencies determined and how are dependency > information managed inside the _build/ folder? > > More specifically, A and B are module packs (for-pack tag in _tags) and > I do not see a .depends file for the top pack module, so I'd like to > know where this information is kept. I see this happen if I forget to specify a sub-module in an .mlpack file, but use it anyway (so it's pulled in as a dependency to the pack, but not actually explicitly part of the pack). So just try listing all the modules you use explicitly in the .mlpack and see if the issue goes away. -- Anil Madhavapeddy http://anil.recoil.org