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 5A3DDBC6C for ; Wed, 27 Jun 2007 15:16:56 +0200 (CEST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5RDGtDm023410 for ; Wed, 27 Jun 2007 15:16:55 +0200 Received: by wa-out-1112.google.com with SMTP id j37so216750waf for ; Wed, 27 Jun 2007 06:16: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=EugYa4fABoO/jq4bWtY9OVS5Z8hWNOii7cW+ijkd1y+xwVZEGf6Nh/nudSNsuKjW0q3ruF0f4zMlSeHX3CzTEiWExxVxN+Euo9QVmJYWfSEY1HeSRcxY2se/0bLO69AR73r5oxutDMwyQqmqBPqEuFQFusgtJvrO7uAvHP65cGo= 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=ow5ve97TAjBQZFEw4LBxoXbfUvx166j8WNeZIHIF37k70gF1JbFxrZ0Ul+1LVIB1V0B7x1N00iKFYl3w02ems3KEyjXk0wAF0fX2qoKextTLgfjZTUEM2LwnqskIB8F6WPQffkX4IhYjt9iLura6A//N1Mpit4mFbqu+K61Or2M= Received: by 10.114.168.1 with SMTP id q1mr475548wae.1182950214613; Wed, 27 Jun 2007 06:16:54 -0700 (PDT) Received: by 10.114.181.8 with HTTP; Wed, 27 Jun 2007 06:16:54 -0700 (PDT) Message-ID: Date: Wed, 27 Jun 2007 15:16:54 +0200 From: "Nicolas Pouillard" To: "Andrew Warshaver" Subject: Re: [Caml-list] ocamlbuild .cmxa Cc: caml-list@yquem.inria.fr In-Reply-To: <46815F1D.2020001@janestcapital.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46815F1D.2020001@janestcapital.com> X-j-chkmail-Score: MSGID : 46826347.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 46826347.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; cmxa:01 -linkpkg:01 cmxa:01 sexp:01 lib:01 ocamlfind:01 -package:01 bigarray:01 pcre:01 netstring:01 camlp:01 -pp:01 camlp:01 -pp:01 lib:01 Remove the -linkpkg option, that is adding .cmxa behind your neck. On 6/26/07, Andrew Warshaver wrote: > I wish to compile a .cmxa library using ocamlbuild. I have no trouble > compiling to a .cma, but for .cmxa, I get the following error: > > [awarshaver@nyc-qws-029 multi-oc]$ ocamlbuild janebase/sexp/lib/sexplib.cmxa > + ocamlfind opt -package bigarray,pcre,res,netstring -I +camlp4 -pp > camlp4orf -pp 'camlp4o /home/awarshaver/multi-oc/lib/pa_type_conv.cmo > /home/awarshaver/multi-oc/lib/pa_sexp_conv.cmo' -a -linkpkg -thread > janebase/sexp/lib/type.cmx janebase/sexp/lib/parser.cmx > janebase/sexp/lib/lexer.cmx janebase/sexp/lib/sexp.cmx > janebase/sexp/lib/path.cmx janebase/sexp/lib/conv.cmx > janebase/sexp/lib/conv_error.cmx -o janebase/sexp/lib/sexplib.cmxa > /usr/local/home/godi310/godi/lib/ocaml/std-lib/unix.cmxa > is not a compilation unit description. > Command exited with code 2. > > The only guidance I have found is that there can by no .cmxa files > included in the library, this is not the case here. I have a .mllib and > .mlpack file (I'm not really sure what the difference is). > > Any insight would be appreciated. > > Andrew > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs > -- Nicolas Pouillard