From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p99HGWYl000929 for ; Sun, 9 Oct 2011 19:16:32 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiwBAJ7VkU5KfVI0imdsb2JhbABDqBAIIgEBAQoJDQcSBiGBUwEBAQECARICLAEbHgMBCwYFBAc7IQEBEQEFARwGEwgah1yaKAqLUYJgg3Y9iG8CBAaHPQSTd4oqgns9hAs X-IronPort-AV: E=Sophos;i="4.68,512,1312149600"; d="scan'208";a="112237749" Received: from mail-ww0-f52.google.com ([74.125.82.52]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 09 Oct 2011 19:16:31 +0200 Received: by wwj40 with SMTP id 40so9187450wwj.9 for ; Sun, 09 Oct 2011 10:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=uInRc3GJXJ3m14fDyfCE0fltD5S7i1q9YpyxyHSZUAg=; b=cd7HujgDZbYfWPmSN3YXXoCgNSj7irAohCi6U5jFHRZtYqUQTH1lIn+GtM1762BWLZ VGkwopxmjDlHrsig8UFOMzrhOplfzBtjBoZgoA/Nzf0IGqX2Yf8QE5TULn+sE4/HDDyT buDg7DDeQkd5He+ndvsqe7n7IpWHdIhWWqqR0= Received: by 10.216.134.169 with SMTP id s41mr3398879wei.68.1318180591195; Sun, 09 Oct 2011 10:16:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.180.96.129 with HTTP; Sun, 9 Oct 2011 10:16:11 -0700 (PDT) In-Reply-To: <08B6940A-F74E-4D94-8CCB-03416258BD30@gmail.com> References: <08B6940A-F74E-4D94-8CCB-03416258BD30@gmail.com> From: Ashish Agarwal Date: Sun, 9 Oct 2011 13:16:11 -0400 Message-ID: To: Caml List Content-Type: multipart/alternative; boundary=0016e6ddfeb9e357b404aee0d597 Subject: Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set --0016e6ddfeb9e357b404aee0d597 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 erro= r. > 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 =E0 00:46, Ashish Agarwal a =E9crit : > > > 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 chang= e to >> ocamlbuild or ocamlfind that is causing this. The issue appears to be th= at >> -package camlp4 should be included in the ocamlfind command but it is no= t. >> >> 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 work= ing >> 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 cam= lp4o >> -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 =3D "netstring shell netclient batteries biocaml pgocaml" >> version =3D "0.0" >> archive(byte) =3D "sequme.cma" >> archive(native) =3D "sequme.cmxa" >> >> > --0016e6ddfeb9e357b404aee0d597 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for all the responses. The problem turned out to be the simple one m= entioned by Philippe. I just forgot to install PG'Ocaml. It would be ni= ce if findlib could give error messages about missing packages that are cle= arly in the dependency list.

On Sun, Oct 9, 2011 at 8:23 AM, Christophe P= apazian <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 c= amlp4o
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

=A0Christophe

Le 9 oct. 11 =E0 00:46, Ashish Agarwal a =E9crit :


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 t= o ocamlbuild or ocamlfind that is causing this. The issue appears to be tha= t -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 fig= ure 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 -module= s sequme/bowtie.mli > sequme/bowtie.mli.depends
ocamlfind: When using -syntax, the META variable 'preprocessor' mus= t be set
Command exited with code 2.

--- META ---
requires =3D "netstring shell netclient batteries biocaml pgocaml"= ;
version =3D "0.0"
archive(byte) =3D "sequme.cma"
archive(native) =3D "sequme.cmxa"



--0016e6ddfeb9e357b404aee0d597--