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=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 57A6ABC6B for ; Mon, 17 Sep 2007 18:20:44 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAFBG7kbLENaMnmdsb2JhbACOFQIHBAYPGA X-IronPort-AV: E=Sophos;i="4.20,265,1186351200"; d="scan'208";a="1317354" Received: from ipmail01.adl2.internode.on.net ([203.16.214.140]) by mail2-smtp-roc.national.inria.fr with ESMTP; 17 Sep 2007 18:21:42 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgAAAIdG7kZ5LHvc/2dsb2JhbAAM X-IronPort-AV: E=Sophos;i="4.20,265,1186324200"; d="scan'208";a="192898002" Received: from ppp121-44-123-220.lns10.syd6.internode.on.net (HELO [192.168.1.201]) ([121.44.123.220]) by ipmail01.adl2.internode.on.net with ESMTP; 18 Sep 2007 01:51:35 +0930 Subject: Re: [Caml-list] ocamlbuild From: skaller To: Nicolas Pouillard Cc: O'Caml Mailing List In-Reply-To: <1190029963-sup-259@ausone.inria.fr> References: <1188981406.28332.15.camel@rosella.wigram> <1190029963-sup-259@ausone.inria.fr> Content-Type: text/plain Date: Tue, 18 Sep 2007 02:21:34 +1000 Message-Id: <1190046094.6058.26.camel@rosella.wigram> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; 0200,:01 ocaml:01 sourceforge:01 wrote:01 unix:01 symbolic:01 symbolic:01 caml-list:01 dependency:01 checking:02 rebuild:03 module:03 library:03 library:03 repository:03 On Mon, 2007-09-17 at 13:56 +0200, Nicolas Pouillard wrote: > Excerpts from skaller's message of Wed Sep 05 10:36:46 +0200 2007: > > hi .. I've got an ocamlbuild project which is hanging > > forever. Top shows 100% CPU and 2% memory. Any ideas how > > this could happen? > > > > I have a suspicion ocamlbuild can't handle directories > > properly.. > > > > Are you on windows? If yes what kind of environment you have and what OCaml > you have. > > If it's Unix, have you symbolic links that make cycles (this case has been > handled, but I cannot see something else). > > Can you also try it with -no-sanitize. Our build system is portable, we need Ocamlbuild code to also be entirely portable. We know at present it doesn't work on Windows. But the problem is on Linux. Now, I have no idea what the problem was because I deleted the entire workspace and re-created it from the repository and it went away. We don't make any symbolic links because the script is portable, and you can't make them on Windows. So just keep an eye out for someone having a similar problem. Erick reports another issue: ocamlbuild tries to rebuild libraries a code depends on -- but not the system libraries. The idea of building a library is to *avoid* having to do any dependency checking on the module level. Is there some way to fix this? I.e, to 'make' a library, and then have it treated as a 'system' library. -- John Skaller Felix, successor to C++: http://felix.sf.net