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 p99CNIfs027058 for ; Sun, 9 Oct 2011 14:23:19 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiwBAJmRkU5KfVI0imdsb2JhbABDqBgIIgEBAQoJDQcSBiGBUwEBAQECARICJAgBGx0BAwELBgULOyMRAQUBHAY1h1wCmWEKi1GCYIN5PYhvAgQGhlxhBJN3hSmBK4ZRPYNx X-IronPort-AV: E=Sophos;i="4.68,512,1312149600"; d="scan'208";a="112224836" 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 14:23:13 +0200 Received: by wwj40 with SMTP id 40so8967496wwj.9 for ; Sun, 09 Oct 2011 05:23:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=dp4oyYqKHFIlJ12DqJyowhoBbzn6VHiaAOD/rF3GY+I=; b=vR+6/zL9KW1qnQpMFVwgUW7FekPdtuMl3IbBZsAHfmjdtWUzXw4nGZuv0PFKNdEhK3 hGpDjWo2mrLbiEClrK8WtN8HzSpszfXleae24EmQjOpiVSURwxsCX7G6id4t4BxWlp4i +k8H5OLsPoitafXZR+2NRHYdXL1CY0Zk4hdFc= Received: by 10.216.134.33 with SMTP id r33mr1329848wei.107.1318162993277; Sun, 09 Oct 2011 05:23:13 -0700 (PDT) Received: from [192.168.0.10] (lau06-5-88-176-33-221.fbx.proxad.net. [88.176.33.221]) by mx.google.com with ESMTPS id o7sm26817287wbh.8.2011.10.09.05.23.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 09 Oct 2011 05:23:12 -0700 (PDT) Cc: Caml List Message-Id: <08B6940A-F74E-4D94-8CCB-03416258BD30@gmail.com> From: Christophe Papazian To: Ashish Agarwal In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v936) Date: Sun, 9 Oct 2011 14:23:09 +0200 References: X-Mailer: Apple Mail (2.936) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by walapai.inria.fr id p99CNIfs027058 Subject: Re: [Caml-list] ocamlfind: When using -syntax, the META variable 'preprocessor' must be set 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" >