caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Andrew Warshaver <awarshaver@janestcapital.com>
To: caml-list@yquem.inria.fr
Subject: extraneous -pp options with myocamlbuild
Date: Mon, 25 Jun 2007 11:36:52 -0400	[thread overview]
Message-ID: <467FE114.1060607@janestcapital.com> (raw)

Hi Folks,

I'm trying to use a myocamlbuild file with ocamlbuild.  It appears to me 
that by my specifying a -pp option, an extra -pp option gets thrown in 
and I'm not sure why.  Here is my myocamlbuild.ml (which I stole mostly 
from another email):

$ cat myocamlbuild.ml
open Ocamlbuild_plugin;;
open Command;;

let packages = "pcre,netstring,jane,lbm"

let pp = "camlp4o /home/awarshaver/multi-oc/lib/pa_type_conv.cmo 
/home/awarshaver/multi-oc/lib/pa_sexp_conv.cmo";;

let ocamlfind cmd =
S [A "ocamlfind"; A cmd; A "-thread"; A "-package"; A packages];;

flag ["ocaml"] (S[A "-pp"; A pp]);;
flag ["ocaml"; "link"] (A"-linkpkg");;

dispatch begin function
   | After_options ->
       Options.ocamlc := ocamlfind "c";
       Options.ocamlopt := ocamlfind "opt";
   | _ -> ()
end

And here is what happens at the terminal...

$ ./make.sh
+ /usr/local/home/godi310/godi/bin/ocamldep.opt -pp 'camlp4o 
/home/awarshaver/multi-oc/lib/pa_type_conv.cmo 
/home/awarshaver/multi-oc/lib/pa_sexp_conv.cmo' -pp '-pp '\''camlp4o 
/home/awarshaver/multi-oc/lib/pa_type_conv.cmo 
/home/awarshaver/multi-oc/lib/pa_sexp_conv.cmo'\''' -modules 
live_query.ml > live_query.ml.depends
sh: - : invalid option

As you can see, after the first -pp '..' there is another -pp, and then 
another '-pp ...', completely unexpected.

Thanks,
Andrew


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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25 15:36 Andrew Warshaver [this message]
2007-06-25 15:40 ` Andrew Warshaver
2007-06-26  6:55   ` [Caml-list] " Nicolas Pouillard

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=467FE114.1060607@janestcapital.com \
    --to=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).