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.3 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 26838BBAF for ; Wed, 11 Jun 2008 21:28:27 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.27,626,1204498800"; d="asc'?scan'208";a="11906205" Received: from peray.inria.fr (HELO ausone.inria.fr) ([128.93.8.98]) by mail2-relais-roc.national.inria.fr with SMTP; 11 Jun 2008 21:28:26 +0200 Received: by ausone.inria.fr (sSMTP sendmail emulation); Wed, _d Jun 2008 21:28:04 +0200 From: "Nicolas Pouillard" Cc: Caml_mailing list Subject: Re: [Caml-list] ocamlopt, .cmxa and "not a compilation unit description" error Options To: Charles Hymans References: <676aba050806101115p2e7ffd35hfead041ff3f4af75@mail.gmail.com> In-Reply-To: <676aba050806101115p2e7ffd35hfead041ff3f4af75@mail.gmail.com> Date: Wed, 11 Jun 2008 21:28:04 +0200 Message-Id: <1213212479-sup-461@ausone.local> User-Agent: Sup/git Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1213212484-75504-418-7314-5-="; micalg="pgp-sha1" MIME-Version: 1.0 X-Spam: no; 0.00; ocamlopt:01 cmxa:01 compilation:01 ocamlc:01 lib:01 cmxa:01 ocamlopt:01 lib:01 compilation:01 byte-code:01 caml-list:01 cma:01 cma:01 nums:01 nums:01 X-Attachments: cset="UTF-8" type="application/pgp-signature" name="signature.asc" name="signature.asc" --=-1213212484-75504-418-7314-5-= Content-Type: text/plain; charset=UTF-8 Excerpts from Charles Hymans's message of Tue Jun 10 20:15:13 +0200 2008: > Hi, > > I'd like to generate a library from a file that uses the nums library > (in a way such that the final user of my library does not have to > specify that nums is necessary). > > I was able to generate a .cma with the following command: > ocamlc -a nums.cma file.ml -o lib.cma > > However to generate a .cmxa, the command: > ocamlopt -a nums.cmxa file.ml -o lib.cmxa > > fails and reports the error that "nums.cmxa is not a compilation unit > description." In byte-code libraries can contains libraries, but not in native code. -- Nicolas Pouillard aka Ertai --=-1213212484-75504-418-7314-5-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) iEYEARECAAYFAkhQJ0QACgkQj+FCNw9dwLnldQCfXv2QxikYH1Nx1yt1anTS/4zB BFoAoIqUrYOPqhRxPylfI5yfG5ia6ibb =0KkC -----END PGP SIGNATURE----- --=-1213212484-75504-418-7314-5-=--