From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: Ashish Agarwal <agarwal1975@gmail.com>
Cc: Caml List <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set
Date: Sun, 09 Oct 2011 23:02:47 +0200 [thread overview]
Message-ID: <1318194167.16477.196.camel@thinkpad> (raw)
In-Reply-To: <CAMu2m2LD7n5XYEtoDET8q68NPk_fDiZ8vSZSW7570kmXE8Wb_g@mail.gmail.com>
I'm a bit surprised. Please, can you try to isolate the problem, and
send me a bug report?
Gerd
Am Sonntag, den 09.10.2011, 13:16 -0400 schrieb Ashish Agarwal:
> Thanks for all the responses. The problem turned out to be the simple
> one mentioned by Philippe. I just forgot to install PG'Ocaml. It would
> be nice if findlib could give error messages about missing packages
> that are clearly in the dependency list.
>
> On Sun, Oct 9, 2011 at 8:23 AM, Christophe Papazian
> <christophe.papazian@gmail.com> wrote:
> I got this problem a few days ago, and need a quick fix.
> Everything was installed but after an upgrade I got the same
> kind of error.
> To avoid the problem, i drop the "-syntax" parameter and
> replace it with "-pp" :
>
> What *should* work for me : ocamlfind ocamlc -package
> js_of_ocaml -syntax camlp4o
> What's *really* work for me : ocamlfind ocamlc -package
> js_of_ocaml -pp "camlp4o -I /path/to/js_of_ocaml pa_js.cmo"
>
> Hope this help
>
> Christophe
>
> Le 9 oct. 11 à 00:46, Ashish Agarwal a écrit :
>
>
>
> I get the error below after reinstalling OCaml with
> the latest version with GODI. My code has not changed,
> so I'm wondering if there is a change to ocamlbuild or
> ocamlfind that is causing this. The issue appears to
> be that -package camlp4 should be included in the
> ocamlfind command but it is not.
>
> The section "Does Findlib support camlp4" in the
> findlib User's Guide discusses the 'preprocessor'
> variable, but I can't figure out how exactly how to
> adjust my META file or whether I really need to since
> it was working before.
>
> ocamlbuild sequme.cma sequme.cmxa sequme.cmxs
> Finished, 0 targets (0 cached) in 00:00:00.
> + ocamlfind ocamldep -package batteries -package
> biocaml -package netclient -package netstring -package
> shell -package sqlite3 -syntax camlp4o -modules
> sequme/bowtie.mli > sequme/bowtie.mli.depends
> ocamlfind: When using -syntax, the META variable
> 'preprocessor' must be set
> Command exited with code 2.
>
> --- META ---
> requires = "netstring shell netclient batteries
> biocaml pgocaml"
> version = "0.0"
> archive(byte) = "sequme.cma"
> archive(native) = "sequme.cmxa"
>
>
>
>
--
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany gerd@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details: http://www.camlcity.org/contact.html
Company homepage: http://www.gerd-stolpmann.de
*** Searching for new projects! Need consulting for system
*** programming in Ocaml? Gerd Stolpmann can help you.
------------------------------------------------------------
next prev parent reply other threads:[~2011-10-09 21:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-08 22:46 Ashish Agarwal
2011-10-09 8:08 ` Gerd Stolpmann
2011-10-09 9:03 ` ygrek
2011-10-09 10:27 ` Philippe Veber
2011-10-09 12:23 ` Christophe Papazian
2011-10-09 17:16 ` Ashish Agarwal
2011-10-09 21:02 ` Gerd Stolpmann [this message]
2011-10-11 16:19 ` Ashish Agarwal
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=1318194167.16477.196.camel@thinkpad \
--to=info@gerd-stolpmann.de \
--cc=agarwal1975@gmail.com \
--cc=caml-list@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