From mboxrd@z Thu Jan 1 00:00:00 1970 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 p99L2poF005478 for ; Sun, 9 Oct 2011 23:02:51 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhsBABsLkk7U4xEJkGdsb2JhbABChHWjIyIBAQEBCQkNBxQDIoFTAQEFI1YQCxgCAiYCAiE2BhMJh3cFpRCQToEshQOBFASMQIIXAQGKR4UBhyk X-IronPort-AV: E=Sophos;i="4.68,513,1312149600"; d="scan'208";a="123393201" Received: from moutng.kundenserver.de ([212.227.17.9]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 Oct 2011 23:02:50 +0200 Received: from office1.lan.sumadev.de (dslb-188-097-012-003.pools.arcor-ip.net [188.97.12.3]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MDTuj-1RL1mu24HV-00Gbwj; Sun, 09 Oct 2011 23:02:49 +0200 Received: from [192.168.0.29] (dslb-084-058-058-094.pools.arcor-ip.net [84.58.58.94]) by office1.lan.sumadev.de (Postfix) with ESMTPSA id 14BE9C00C7; Sun, 9 Oct 2011 23:02:49 +0200 (CEST) From: Gerd Stolpmann To: Ashish Agarwal Cc: Caml List In-Reply-To: References: <08B6940A-F74E-4D94-8CCB-03416258BD30@gmail.com> Content-Type: text/plain; charset="UTF-8" Date: Sun, 09 Oct 2011 23:02:47 +0200 Message-ID: <1318194167.16477.196.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 X-Provags-ID: V02:K0:HX7dBaHqfWLaiioG0dKlGZbJ2rWkQFYcNcJlo1PYPoc rY5N4mUcG1qLywl11VujmslOwxzWndLLHkGjyph65PXPOqXT02 ICqHewttjZGbx83Ymz42g6yJzFFA3QmHyx0BLRDluW1ge7H9YS CBLBVyI42h3sEKo148y2mpi1YFPsTaDaAPwGJUH+gDZFr+KZbG jP1Q5GFKUHsmd5W0Gl+FHgd1TukLgxUJaZ5kVPy7pyVIlqqrcY +Sr23HHd0aMyYHjWtUc1SRFI0t1ty4xjORgbBlPEfw+/qbwE5t je6bANW1wT2hSuAiIyQ9ldJjmyspgnxS35ehYCf3sZKiRvSF88 Wr2r02el+GmzxHizUFQlrT0L7Jlm6NPoBqPFD2fii Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p99L2poF005478 Subject: Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set 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 > 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. ------------------------------------------------------------