From mboxrd@z Thu Jan 1 00:00:00 1970 X-Sympa-To: caml-list@inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p99ASJGP024666 for ; Sun, 9 Oct 2011 12:28:19 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AigBAFN2kU7RVdQ2kGdsb2JhbABDqBgIIgEBAQEJCQ0HFAQhgVMBAQEDARICLAEbHQEDAQsGBQQHOyEBAREBBQEcBhMih1yaHwqLUYJgg3I9iG8CBAaHPQSTd4oqgns9g3E X-IronPort-AV: E=Sophos;i="4.68,511,1312149600"; d="scan'208";a="123361981" Received: from mail-vw0-f54.google.com ([209.85.212.54]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-SHA; 09 Oct 2011 12:28:13 +0200 Received: by vws11 with SMTP id 11so7137938vws.27 for ; Sun, 09 Oct 2011 03:28:12 -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 :cc:content-type; bh=r8EaoqfDmEOS0hK20Qv0uBSiQTIDotEnH9ZlawBjq04=; b=d0Begq6pPs9HejvuU6dB2qFI8a6Ph1fpgBpTd9MLEQ44CLpPij1AQ9sRM5oeQ9+RBq j1nWk08555BccwcgPky/dhH8CpAphcBAvPibvA2kRX8IqIPelTnZNFe61EOAOqGOkKS2 mbsuMjRuoaBnOpUA7aQoekUPfENTZkn6Oo7AM= Received: by 10.52.97.228 with SMTP id ed4mr9281040vdb.126.1318156092581; Sun, 09 Oct 2011 03:28:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.110.5 with HTTP; Sun, 9 Oct 2011 03:27:52 -0700 (PDT) In-Reply-To: References: From: Philippe Veber Date: Sun, 9 Oct 2011 12:27:52 +0200 Message-ID: To: Ashish Agarwal Cc: Caml List Content-Type: multipart/alternative; boundary=20cf307ac3c5a8264204aedb210f X-Validation-by: philippe.veber@gmail.com Subject: Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set --20cf307ac3c5a8264204aedb210f Content-Type: text/plain; charset=ISO-8859-1 Hi Ashish this often happens to me after reinstalling godi, if I forget to install one syntax extension used in my project. Instead of having a more meaningful message like 'missing package bidule', I've got the message you report. Maybe you could double check whether you installed all extensions used in sequme ? 2011/10/9 Ashish Agarwal > 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" > > --20cf307ac3c5a8264204aedb210f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Ashish

this often happens to me after reinstalling godi, if I for= get to install one syntax extension used in my project. Instead of having a= more meaningful message like 'missing package bidule', I've go= t the message you report. Maybe you could double check whether you installe= d all extensions used in sequme ?

2011/10/9 Ashish Agarwal &= lt;agarwal1975@gmail.com>
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 cha= nge to ocamlbuild or ocamlfind that is causing this. The issue appears to b= e that -package camlp4 should be included in the ocamlfind command but it i= s 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 wheth= er 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 =3D "netstring shell netclient = batteries biocaml pgocaml"
version =3D "0.0"
archive(byte) =3D "sequme.c= ma"
archive(native) =3D "sequme.cmxa"
<= div>

--20cf307ac3c5a8264204aedb210f--