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.0 required=5.0 tests=none 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 DE3A7BB84 for ; Mon, 22 Sep 2008 22:41:54 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokGAH6f10jAXQIniGdsb2JhbACNW4U+AQEBFSKkPQOBYw X-IronPort-AV: E=Sophos;i="4.32,448,1217800800"; d="scan'208";a="15235676" Received: from concorde.inria.fr ([192.93.2.39]) by mail2-smtp-roc.national.inria.fr with ESMTP; 22 Sep 2008 22:41:54 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m8MKfrve022642 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 22 Sep 2008 22:41:54 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkICAH6f10jUGypAmmdsb2JhbACNW4U+AQEBAQEICwoHEQOkOgOBYw X-IronPort-AV: E=Sophos;i="4.32,448,1217800800"; d="scan'208";a="29469541" Received: from smtp7-g19.free.fr ([212.27.42.64]) by mail4-smtp-sop.national.inria.fr with ESMTP; 22 Sep 2008 22:41:54 +0200 Received: from smtp7-g19.free.fr (localhost [127.0.0.1]) by smtp7-g19.free.fr (Postfix) with ESMTP id 950F7B01B5 for ; Mon, 22 Sep 2008 22:41:53 +0200 (CEST) Received: from erha (pat35-1-82-229-60-210.fbx.proxad.net [82.229.60.210]) by smtp7-g19.free.fr (Postfix) with ESMTP id 628C8B0135 for ; Mon, 22 Sep 2008 22:41:53 +0200 (CEST) Received: by erha (Postfix, from userid 1000) id 5BEBCD04CF; Mon, 22 Sep 2008 22:41:52 +0200 (CEST) To: caml-list@inria.fr Subject: Issue to compile a program with camlp4 in OCaml 3.10.0 From: David MENTRE Organization: none Date: Mon, 22 Sep 2008 22:41:52 +0200 Message-ID: <871vzbud4f.fsf@pat35-1-82-229-60-210.fbx.proxad.net> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 48D80311.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 ocaml:01 ocaml:01 compilation:01 ocamlopt:01 -pp:01 camlp:01 cmo:01 expr:01 gpg:01 ubuntu:98 compile:01 compile:01 preprocessor:01 heap:01 Hello, I'm trying to compile an OCaml program I haven't written. I'm compiling it on an Ubuntu 8.04, OCaml 3.10.0. The compilation fails with following error: """ ocamlopt -pp "camlp4o pa_op.cmo" -I src -c src/common.ml File "src/common.ml", line 5, characters 101-102: Parse error: "in" expected after [binding] (in [expr]) Preprocessor error """ Here is the beginning of the relevant file: """ (** Common utility functions. *) (* space *) let heap_size () : float = float_of_int (Gc.stat ()).Gc.heap_words *. float_of_int (Sys.word_size / 8) (* in bytes *) """ This expression seems correct to me. Is this issue related to one of the fixes on camlp4 that where made in 3.10.1? Any idea how to work around this issue (without recompiling latest ocaml and all the needed libraries)? Sincerly yours, david -- GPG/PGP key: A3AD7A2A David MENTRE 5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A