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=3.7 required=5.0 tests=DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id D72EFBC69; Thu, 12 Apr 2007 08:39:04 +0200 (CEST) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3C6d4Q7006994; Thu, 12 Apr 2007 08:39:04 +0200 Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id 13ADE216C41; Thu, 12 Apr 2007 02:39:05 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Thu, 12 Apr 2007 02:39:04 -0400 X-Sasl-enc: DoSEg7HPacJrnMVNrnOQe4Zk+mtRrYECiWOIjYlB3VCG 1176359943 Received: from [192.168.0.4] (70-56-65-228.tukw.qwest.net [70.56.65.228]) by mail.messagingengine.com (Postfix) with ESMTP id 993F230E0; Thu, 12 Apr 2007 02:39:03 -0400 (EDT) Message-ID: <461DD4D7.2050703@yahoo.com> Date: Wed, 11 Apr 2007 23:42:31 -0700 From: Jeff Henrikson User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Alain Frisch , caml-list@inria.fr Subject: Re: [Caml-list] nonresolved .cma files and errors References: <461C50C7.6090802@yahoo.com> <461C967A.6000007@inria.fr> In-Reply-To: <461C967A.6000007@inria.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-j-chkmail-Score: MSGID : 461DD408.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 461DD408.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; henrikson:01 jehenrik:01 cmo:01 compilation:01 assertion:01 inlining:01 cmo:01 inlining:01 henrikson:01 frisch:01 compilation:01 -pack:01 compiler:01 camlp:01 camlp:01 > .cma and .cmo files are not used during compilation. Ah, of course. Rechecking my commands, your assertion is still consistent. I thought I had counterintuitively gotten errors without the .cma, and had subconsciously filed in my brain under "weird inlining or something . . ." Well nice to know axiomatically that .cmo / .cma is mutually exclusive with -c. Yes if that's the case then I definitely think it should at least be a warning to include such a file with -c. OTOH, I see from the list archive that I'm not making up this inlining across files thing . . . http://caml.inria.fr/pub/old_caml_site/caml-list/0117.html So if I understand correctly then, cross-file function inlining must by design be delayed until link time? Regards, Jeff Henrikson Alain Frisch wrote: > .cma and .cmo files are not used during compilation. They make sense > only for link operations (including -pack and -a). One might argue that > the compiler should issue a warning when useless .cma and .cmo are given > on the command line. > > -- Alain > Jeff Henrikson wrote: > I recently had a shocking realization about why some of my experiments > with camlp4 weren't compiling. I had been linking camlp4.cma, which was > the old name of the library. Now camlp4.cma doesn't exist and there are > multiple flavors Camlp4xxx.cma where the xxx is the same flavor notation > of the the preprocessor binaries. So the trouble is, why was linking > such a library not a fatal? Apparently all missing .cma and .cmo files > passed on the command line are considered non-errors. >