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 p9988n6K021810 for ; Sun, 9 Oct 2011 10:08:49 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: At4AAItVkU7U4xEIkGdsb2JhbABDhHWjKyIBAQEBCQkNBxQDIoFTAQEEASNWBQsLGgImAgJXBhMJh3UCBaVbkDyBLIUDgRQEjECCFwEBikeMKg X-IronPort-AV: E=Sophos;i="4.68,511,1312149600"; d="scan'208";a="123354943" Received: from moutng.kundenserver.de ([212.227.17.8]) by mail1-smtp-roc.national.inria.fr with ESMTP; 09 Oct 2011 10:08:44 +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=mrbap1) with ESMTP (Nemesis) id 0MPZs9-1R87bu2GOH-004oSJ; Sun, 09 Oct 2011 10:08:43 +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 0C988C00C7; Sun, 9 Oct 2011 10:08:43 +0200 (CEST) From: Gerd Stolpmann To: Ashish Agarwal Cc: Caml List In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Sun, 09 Oct 2011 10:08:41 +0200 Message-ID: <1318147721.16477.195.camel@thinkpad> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ymXuFW0PFLGvQKwuWuMw9K8A/eca/xIa+pYvYy0dVVU Pvb388HaEVpJd83JcpinN3PRf27n2hmZjoBwSoHyPNOttf9p06 FEVkIuDc54rZMbyC62K4vHVs4eFwYSvWAKRRNsVKJB/7zKQNwo VwJ0yS2PqLuBX0xNvxZtzXQ733fFgz1MXQCUD7GuU3QeJSwiWi MaFqauAH94UtzJ7xehgbXIdfFuOe+HpQpteA2TVv59rIWQV25I 1q6QbH8z6f4yhcygxQe5ePH3BCk8PFfXW2wtpx7RsBuDIcPfzt tuivzSAOlrTryyQO/4O17HEukXE0rQP4BX8/SCc2GMfbYtxZzy SWwjmQSC5VX7bLav6GC5pGkI1FCSTwIMQn8F5+6pr Subject: Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set Am Samstag, den 08.10.2011, 18:46 -0400 schrieb 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. camlp4 can also be a dependency of another package. Maybe camlp4 was removed from one of the dependency lists as another result of the update? > 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. This section is about including custom preprocessors. If you just want plain camlp4, just set "-package camlp4 -syntax camlp4o". > 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. Well, the meaning is that there must be at least one package definition setting how to call camlp4, in one of the listed packages or in a dependency of these. As a user of camlp4, you don't need to do this in your own META. The package "camlp4" includes the most basic way of calling camlp4. Hope this helps, Gerd > > > --- 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. ------------------------------------------------------------