caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild .cmxa
@ 2007-06-26 18:46 Andrew Warshaver
  2007-06-27 13:16 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Warshaver @ 2007-06-26 18:46 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ocamlbuild .cmxa
  2007-06-26 18:46 ocamlbuild .cmxa Andrew Warshaver
@ 2007-06-27 13:16 ` Nicolas Pouillard
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2007-06-27 13:16 UTC (permalink / raw)
  To: Andrew Warshaver; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-06-27 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-26 18:46 ocamlbuild .cmxa Andrew Warshaver
2007-06-27 13:16 ` [Caml-list] " Nicolas Pouillard

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).