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.1 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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 14185BC0A for ; Mon, 18 Jun 2007 21:25:56 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.236]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5IJPtlZ028210 for ; Mon, 18 Jun 2007 21:25:55 +0200 Received: by nz-out-0506.google.com with SMTP id s18so1384673nze for ; Mon, 18 Jun 2007 12:25:54 -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=UyPcjNXBXSKLKDDF9t9CWuw6Ac2thPuPZh2ZAov6d8dq4cfEXRt5vmnFV6FeggHObRmI0jT4ieViv4gSEEfSmkxNnVZajo5hkJUeGRIXzWBd3nlgSOtgQceb84I34Qk4PYj59YlaHyahM3J8w8Po+v0ergJWq0ofgMAyK72VzHk= 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=WpoNcM+PcnEExrGnjCcq5OaVJs01Ua34/eIsjTIoNxnGrvqhy9+ce0zVnP9c9DYOBf/QoF3zj111rEcxT0f6P2odU4U75C3oW808T0Vr7mgWzbz9nSUmSMB6bd15yzSmOOWTzIb8U0zGwHfKKjEJkz/BF0kh9KV8O2jzc30NCs0= Received: by 10.114.37.1 with SMTP id k1mr6558468wak.1182194754393; Mon, 18 Jun 2007 12:25:54 -0700 (PDT) Received: by 10.114.181.9 with HTTP; Mon, 18 Jun 2007 12:25:54 -0700 (PDT) Message-ID: Date: Mon, 18 Jun 2007 21:25:54 +0200 From: "Nicolas Pouillard" To: seanmcl@cmu.edu Subject: Re: [Caml-list] ocamlbuild with pack Cc: "Caml List" In-Reply-To: <6579f8680706170536g534c9577qa5fb73384ce7eb27@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6579f8680706170536g534c9577qa5fb73384ce7eb27@mail.gmail.com> X-j-chkmail-Score: MSGID : 4676DC43.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4676DC43.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; -pack:01 bytecode:01 cmx:01 -for-pack:01 lib':01 exited:01 -for-pack:01 cmx:01 lib:01 wrote:01 caml-list:01 native:02 compiled:04 problem:05 nicolas:08 On 6/17/07, Sean McLaughlin wrote: > Hello > > I've run into a problem with ocamlbuild and -pack. > It will build bytecode packages, but not native ones. > E.g., > [...] > File a.cmx was not compiled with the `-for-pack Lib' option > Command exited with code 1. > > > What am I doing wrong? ocamlbuild does not keep track of -for-pack options. There is way to provide the architecture of your project in order to give for-pack option nicely but that worth only for big projects. The easy way is: $ cat _tags "a.cmx": for-pack(Lib) Regards, -- Nicolas Pouillard