From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id A2D38BC37 for ; Wed, 2 Sep 2009 22:04:36 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmEBAAdtnkrVJFBbkWdsb2JhbACbOQEBAQEJCwoHEwPBCIQbBYFX X-IronPort-AV: E=Sophos;i="4.44,320,1249250400"; d="scan'208";a="45870353" Received: from mx-out.libertysurf.net (HELO mail.libertysurf.net) ([213.36.80.91]) by mail4-smtp-sop.national.inria.fr with ESMTP; 02 Sep 2009 22:04:02 +0200 Received: from [192.168.1.2] (91.168.181.108) by mail.libertysurf.net (7.3.118.8) id 498AED5201E19AAF; Wed, 2 Sep 2009 23:03:02 +0200 From: Florent Monnier To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] batteries compilation error Date: Wed, 2 Sep 2009 22:02:11 +0200 User-Agent: KMail/1.9.10 References: <200909011114.50697.fmonnier@linux-nantes.fr.eu.org> <1251902967-sup-5247@peray> In-Reply-To: <1251902967-sup-5247@peray> Cc: Nicolas Pouillard X-Face: -0"dKXwF0PiXr]fa$^)NJY7$;waqUckGcM7&q,VU?Xv\[=CiVM]g]pDs^xmfU9+Q=Z,OdfMHUR-7Ao%evJh.=aiq,#r0Ux0dm'!l|zeAXj||$>1_(Lv4Hc",&F}sbHeK0`SBA$_|XP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200909022202.11907.fmonnier@linux-nantes.fr.eu.org> X-Spam: no; 0.00; compilation:01 ocaml:01 ocamlfind:01 ocamlc:01 syntax:01 libs:01 libs:01 camlzip:01 findlib:01 ocamlnet:01 syntax:01 cmi:01 mli:01 mli:01 camlp:01 > > Trying to compile batteries (version 20090405 on ocaml 3.11.1), > > I get this error: > > > > + ocamlfind ocamlc -c -g -I src/syntax/pa_strings -I src -I src/core -I > > src/main -I src/libs -I src/core/extlib_threads -I src/core/extlib -I > > src/core/baselib -I src/core/baselib_threads -I src/libs/common -I > > src/libs/camlzip -I src/libs/sexplib -I src/libs/findlib -I > > src/libs/compilers -I src/libs/ocamlnet -I build/optcomp -o > > src/syntax/pa_strings/pa_estring.cmi src/syntax/pa_strings/pa_estring.mli > > File "src/syntax/pa_strings/pa_estring.mli", line 12, characters 0-19: > > Error: Unbound module Camlp4.PreCast > > > > this line 12 is only: > > open Camlp4.PreCast > > > > > > Does someone have an idea of what could cause this error ? > > I don't see any "-I +camlp4" can you add it? if I run the command like this on the command line it passes right but when I run again the make command it doesn't continue because ocamlbuild complains about sanity violation Anyway as it is for packaging purpose I will need to patch the Makefile, the problem is that I don't see where to add this statement in the Makefile: http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=batteries/batteries.git;a=blob;f=Makefile.in;hb=HEAD (also I've search in the debian package, and it seems they haven't patch the Makefile at all)