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.2 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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id EB900BC0A for ; Wed, 14 Mar 2007 13:43:41 +0100 (CET) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.236]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2EChcBx011888 for ; Wed, 14 Mar 2007 13:43:40 +0100 Received: by wr-out-0506.google.com with SMTP id 50so139286wra for ; Wed, 14 Mar 2007 05:43:38 -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=tObvsA2jEkojQd0juqqDby7zQhUaWiab59KZfErq0AS1ZATOTUs5vOwcUq9Qnkzebam7bHseO5Foz8JUvWY7gSKYQZ71cDMQYGytfiw8tQPKu2NsxkqpIrNy9M2giU7iJejlksdhTxQ5CSHDfBzWM49ldeENl9hcb+kJP9qBzMM= 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=Sl8UnvtOD0QwOZmPcExJBajuoUCUN5OPMhQqRsjdBApz9n+TBbxW3WFn5dk38wKM/dcNrkDW98wXA45YhS0/59tPGI8GFyb12wW8yRMf+KPxrGUMqVjRXmyr/eGTR30rHb9cHdlqB77ojQkmM9rI9llFJUSws/wDrcTb2v5pRic= Received: by 10.114.183.1 with SMTP id g1mr2872302waf.1173876217843; Wed, 14 Mar 2007 05:43:37 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Wed, 14 Mar 2007 05:43:37 -0700 (PDT) Message-ID: Date: Wed, 14 Mar 2007 13:43:37 +0100 From: "Nicolas Pouillard" To: "Joel Reymont" Subject: Re: [Caml-list] ocamlbuild and automatic dependencies Cc: "Caml List" In-Reply-To: <729DDA34-5FBE-4570-B10F-B2443B58A2F1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <80E2E3A7-2603-4706-8186-566C6DA14452@gmail.com> <729DDA34-5FBE-4570-B10F-B2443B58A2F1@gmail.com> X-j-chkmail-Score: MSGID : 45F7EDFA.001 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 45F7EDFA.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; dependencies:01 ocamldep:01 ocamldep:01 byte:01 ocamlfind:01 ocamlc:01 -package:01 -linkpkg:01 cmo:01 cmo:01 parser:01 util:01 symtab:01 parser:01 lexer:01 On 3/14/07, Joel Reymont wrote: > Nicolas, > > On Mar 14, 2007, at 12:24 PM, Nicolas Pouillard wrote: > > > ocamlbuild runs ocamldep -module on your file so you can experiment > > by yourself. > > generator.ml: > > open Ninja > module E = Easy > > ocamldep -modules generator.ml > generator.ml: Easy List Ninja String That's correct > ocamlbuild test.byte -- > + ocamlfind ocamlc -package ounit -linkpkg easy_code.cmo > generator.cmo parser_util.cmo symtab.cmo easy_parser.cmo > easy_lexer.cmo parser_test.cmo generator_test.cmo test.cmo -o test.byte > Error while linking generator.cmo: Reference to undefined global `Easy' That's strange easy.cmo is missing. Can you try "ocamlbuild easy.byte" ? > The warnings in the _log file are about OUnit which is an external > library. There are no other warnings. Everything builds fine if I > remove "module E = Easy" and replace all references to E.xxx with > Easy.xxx. That's strange since the only interaction is via ocamldep where the output is located in _build/xxx.ml.depends -- Nicolas Pouillard