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=1.8 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 67EF7BC37 for ; Thu, 3 Sep 2009 10:40:58 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArQBAPsdn0rRVdrRkGdsb2JhbACRP0KEc4QJPwEBAQEJCQwHEwOtEIEnkDgBAwIEhBcFgVc X-IronPort-AV: E=Sophos;i="4.44,324,1249250400"; d="scan'208";a="32126724" Received: from mail-bw0-f209.google.com ([209.85.218.209]) by mail2-smtp-roc.national.inria.fr with ESMTP; 03 Sep 2009 10:40:58 +0200 Received: by bwz5 with SMTP id 5so522069bwz.27 for ; Thu, 03 Sep 2009 01:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:cc:subject:from :to:in-reply-to:references:date:message-id:user-agent :content-transfer-encoding; bh=u7cT6MR0ZOB0irbW9TRwZMzFHz8HkbvgewLAmvW87VE=; b=H5cNIIfolD5iBQiqehe3MWA4clhc38oEhCL2du886bZvbTvThajouYLSoAq+NpL0hR P5iyVhopOU9ZbC9yDYYN+EzizE9ofuF+E3IjtQg7RcbApPoojqVWlf1AgwXqdpAo7KmV JQ5bmb8iVummT/fx5dmVrYoihGptFuwktLTRE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:cc:subject:from:to:in-reply-to:references:date :message-id:user-agent:content-transfer-encoding; b=Cj8eK9ESWuL4ni2LqzFRPc3iBVXnaWUMozWvivD768zN8WPiPlSsAQsPOlP+lE25vs xwdrPoyI8mh4NVxId3OPRPn5hTqwRihK2X8b79wqnAzxRwDhqMDJswmMx0bvJkb5H+C1 mHZp4N7yNRb6JBzfTUV7DCy9DNg0Yy5prZJQc= Received: by 10.103.85.12 with SMTP id n12mr4081447mul.29.1251967256709; Thu, 03 Sep 2009 01:40:56 -0700 (PDT) Received: from localhost (peray.inria.fr [128.93.8.98]) by mx.google.com with ESMTPS id 25sm306117mul.51.2009.09.03.01.40.55 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Sep 2009 01:40:55 -0700 (PDT) Content-Type: text/plain; charset=UTF-8 Cc: caml-list Subject: Re: [Caml-list] batteries compilation error From: Nicolas Pouillard To: Florent Monnier In-reply-to: <200909022202.11907.fmonnier@linux-nantes.fr.eu.org> References: <200909011114.50697.fmonnier@linux-nantes.fr.eu.org> <1251902967-sup-5247@peray> <200909022202.11907.fmonnier@linux-nantes.fr.eu.org> Date: Thu, 03 Sep 2009 10:41:05 +0200 Message-Id: <1251967200-sup-3000@peray> User-Agent: Sup/git Content-Transfer-Encoding: 8bit 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 Excerpts from Florent Monnier's message of Wed Sep 02 22:02:11 +0200 2009: > > > 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) If you are using ocamlbuild, then a -tag use_camlp4 could do the job. -- Nicolas Pouillard http://nicolaspouillard.fr