Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "David Allsopp" <dra-news@metastack.com>
To: "'michel levy'" <michel.levy@imag.fr>, <caml-list@inria.fr>
Subject: RE: [Caml-list] Compatibility 3.11.1 and 3.09.3
Date: Mon, 18 Jan 2010 14:59:24 -0000	[thread overview]
Message-ID: <006101ca984e$d3407b90$79c172b0$@romulus.metastack.com> (raw)
In-Reply-To: <4B5470B4.3040201@imag.fr>

Michel Levy wrote:
> I have byte-code produced by ocamlc  version 3.11.1 which does not work
> with ocamlrun version 3.09.3.
> Is this situation normal ?

Afraid so.

> Must I have exactly the same version for the compiler producing the
> byte-code and the ocamlrun executing this code ?

Yes - even releases within the same minor version number are not guaranteed
to have binary compatibility. 

>     Sincerely yours.
> 
> PS : this problem occurs to me because I compile on my machine (ocaml
> 3.11.1) and I send the byte code
> to a web server with an other version (ocaml 3.09.3) and I am not in
> charge of this server.

It is (reasonably) easy to compile a local copy of OCaml 3.09.3 and switch
to that for bytecode compilation on your server
(http://caml.inria.fr/pub/distrib/ocaml-3.09/). If you're using camlp4, then
you'll need a slightly screwy Makefile to ensure that you pre-process using
camlp4 from 3.11.1 and compile using ocamlc from 3.09.3 but that's far from
impossible...

Hope that helps inasmuch as it confirms your fears!



David


      reply	other threads:[~2010-01-18 14:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-18 14:31 michel levy
2010-01-18 14:59 ` David Allsopp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006101ca984e$d3407b90$79c172b0$@romulus.metastack.com' \
    --to=dra-news@metastack.com \
    --cc=caml-list@inria.fr \
    --cc=michel.levy@imag.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox