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: ocamlbuild single quotes causing trouble
Date: Fri, 22 Jun 2007 10:53:05 -0400	[thread overview]
Message-ID: <467BE251.2090404@janestcapital.com> (raw)

Hi all,

I was trying to compile a project using ocamlbuild with an external 
library located distantly, so I did the following (I am also doing 
preprocessing on the file):

ocamlbuild -libs pcre -cflags -I,~/multi-oc/lib -pp "camlp4o 
~/multi-oc\/lib/pa_type_conv.cmo ~/multi-oc/lib/pa_sexp_conv.cmo" 
live_query.byte

Then ocamlbuild eventually runs the following command:

/usr/local/home/godi310/godi/bin/ocamlc.opt -c -I '~/multi-oc/lib' -pp 
'camlp4o ~/multi-oc/lib/pa_type_conv.cmo 
~/multi-oc/lib/pa_sexp_conv.cmo' -o id.cmi id.mli

and spits the error:

File "id.mli", line 1, characters 0-9:
Unbound module Jane
Command exited with code 2.

I noticed, however, if I remove the single quotes from the command -- 
like this --

/usr/local/home/godi310/godi/bin/ocamlc.opt -c -I ~/multi-oc/lib -pp 
'camlp4o ~/multi-oc/lib/pa_type_conv.cmo 
~/multi-oc/lib/pa_sexp_conv.cmo' -o id.cmi id.mli

it works just fine.  I also discovered that if I don't use the ~ abbrev. 
then everything is happy (although this took me a long time to 
discover!).  Is this a problem with ocamlbuild, or something deeper, or 
perhaps even expected behaviour?

Andrew


             reply	other threads:[~2007-06-22 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22 14:53 Andrew Warshaver [this message]
2007-06-22 17:10 ` [Caml-list] " Alain Frisch
2007-06-22 17:46   ` Andrew Warshaver
2007-06-22 20:38     ` Philippe Wang

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=467BE251.2090404@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).