caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Andrew Warshaver" <awarshaver@janestcapital.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlbuild .cmxa
Date: Wed, 27 Jun 2007 15:16:54 +0200	[thread overview]
Message-ID: <cd67f63a0706270616n31d39235j913940e32b18e543@mail.gmail.com> (raw)
In-Reply-To: <46815F1D.2020001@janestcapital.com>

Remove the -linkpkg option, that is adding .cmxa behind your neck.

On 6/26/07, Andrew Warshaver <awarshaver@janestcapital.com> 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


      reply	other threads:[~2007-06-27 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-26 18:46 Andrew Warshaver
2007-06-27 13:16 ` Nicolas Pouillard [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd67f63a0706270616n31d39235j913940e32b18e543@mail.gmail.com \
    --to=nicolas.pouillard@gmail.com \
    --cc=awarshaver@janestcapital.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).