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.1 required=5.0 tests=AWL,UNPARSEABLE_RELAY autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 65355BBAF for ; Mon, 15 Sep 2008 15:11:37 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwCAIj7zUiTIFAHiGdsb2JhbACSdgEBAQ8gRKIxgWQ X-IronPort-AV: E=Sophos;i="4.32,401,1217800800"; d="scan'208";a="16958072" Received: from relay.felk.cvut.cz ([147.32.80.7]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 15 Sep 2008 15:11:36 +0200 X-FELK-MailScanner-Watermark: 1222089009.98931@1XgPMvRL5bcsgBJO58pIvQ Received: from k333.felk.cvut.cz (k333.felk.cvut.cz [147.32.87.5]) by relay.felk.cvut.cz (8.14.2/8.14.2) with ESMTP id m8FDA11d073359; Mon, 15 Sep 2008 15:10:01 +0200 (CEST) (envelope-from kybic@fel.cvut.cz) Received: from K333/SpoolDir by k333.felk.cvut.cz (Mercury 1.48); 15 Sep 08 15:10:01 +0100 Received: from SpoolDir by K333 (Mercury 1.48); 15 Sep 08 15:09:32 +0100 Received: from localhost (147.32.84.19) by k333.felk.cvut.cz (Mercury 1.48) with ESMTP; 15 Sep 08 15:09:30 +0100 To: Maxence Guesdon Cc: Caml Subject: Re: [Caml-list] Another question on OcamlDoc Reply-To: Jan Kybic From: Jan Kybic In-Reply-To: <20080903084850.22daa88d@alcazar.inria.fr> (Maxence Guesdon's message of "Wed, 3 Sep 2008 08:48:50 +0200") References: <1220356028.6406.33.camel@Blefuscu> <1220357131.6406.38.camel@Blefuscu> <8763pe7lxp.fsf_-_@fel.cvut.cz> <20080903084850.22daa88d@alcazar.inria.fr> Date: Mon, 15 Sep 2008 15:09:29 +0200 Message-ID: <871vzlimie.fsf@fel.cvut.cz> User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (relay.felk.cvut.cz [147.32.80.7]); Mon, 15 Sep 2008 15:10:01 +0200 (CEST) X-FELK-MailScanner-Information: X-MailScanner-ID: m8FDA11d073359 X-FELK-MailScanner: Found to be clean X-FELK-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.599, required 5, autolearn=not spam, BAYES_00 -2.60) X-FELK-MailScanner-From: kybic@fel.cvut.cz X-FELK-MailScanner-To: caml-list@yquem.inria.fr, maxence.guesdon@inria.fr X-Spam: no; 0.00; ocamldoc:01 ocamldoc:01 dependencies:01 compilation:01 -rectypes:01 ocamlc:01 ocamlc:01 mli:01 ocamlfind:01 mli:01 cmi:01 cmx:01 ocamlfind:01 unbound:01 caml-list:01 >> Let me add another couple of questions about OcamlDoc. I am sorry if >> this is a common knowledge. >> >> - how can I tell OcamlDoc to only process some files? >> Actually, the question is rather how to make OcamlDoc ignore the >> unresolved dependencies and "Unbound type constructor" errors. > > Does it stop ocamldoc or does is end in elements not linked in the final > doc ? > If it stops ocamldoc, then this is a compilation problem. Make sure you > give the same options (-I, -rectypes, ...) to ocamldoc than to ocamlc. > In th second case, you can use the -hide-warnings option. I think I know what the problem was. I was compiling a program with some of the source files in subdirectories, like ocalmfind ocamlc bootstrap/parallel.mli Now when running ocamldoc like ocamlfind ocamldoc bootstrap/parallel.mli it was capable of reading the source *.mli file but apparently it also needs the *.cmi (or *.cmx ?) files which it could not find. So the solution was to add the "include" option: ocamlfind ocamldoc -I bootstrap bootstrap/parallel.mli So now everything is working well. Thank you for your help. Jan P.S. I am using the source files from subdirectories as a means of sharing a source code between projects. It works but it is kind of fragile. Does anyone have a better method? -- ------------------------------------------------------------------------- Jan Kybic tel. +420 2 2435 5721 http://cmp.felk.cvut.cz/~kybic ICQ 200569450