caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Issue to compile a program with camlp4 in OCaml 3.10.0
@ 2008-09-22 20:41 David MENTRE
  2008-09-23  6:53 ` [Caml-list] " Gabriel Kerneis
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: David MENTRE @ 2008-09-22 20:41 UTC (permalink / raw)
  To: caml-list

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 <dmentre@linux-france.org>
 5996 CC46 4612 9CA4 3562  D7AC 6C67 9E96 A3AD 7A2A


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-09-24  6:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-22 20:41 Issue to compile a program with camlp4 in OCaml 3.10.0 David MENTRE
2008-09-23  6:53 ` [Caml-list] " Gabriel Kerneis
2008-09-23 16:22   ` David MENTRE
2008-09-23  8:08 ` Сергей Плаксин
2008-09-23 16:29   ` David MENTRE
2008-09-24  6:56   ` Michel Mauny
2008-09-23 10:18 ` Richard Jones
2008-09-23 16:31   ` David MENTRE

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).