caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Compatibility 3.11.1 and 3.09.3
@ 2010-01-18 14:31 michel levy
  2010-01-18 14:59 ` [Caml-list] " David Allsopp
  0 siblings, 1 reply; 2+ messages in thread
From: michel levy @ 2010-01-18 14:31 UTC (permalink / raw)
  To: caml-list

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 ?
Must I have exactly the same version for the compiler producing the
byte-code and the ocamlrun
executing this code ?

    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.

-- 
Michel Levy
LIG, ENSIMAG D105, 681 rue de la passerelle, Domaine Universitaire,
BP72-38402 Saint Martin d'Hères Cedex
Tel:(33)476827246   e.mail : Michel.Levy@imag.fr   
http://membres-liglab.imag.fr/michel.levy 


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

* RE: [Caml-list] Compatibility 3.11.1 and 3.09.3
  2010-01-18 14:31 Compatibility 3.11.1 and 3.09.3 michel levy
@ 2010-01-18 14:59 ` David Allsopp
  0 siblings, 0 replies; 2+ messages in thread
From: David Allsopp @ 2010-01-18 14:59 UTC (permalink / raw)
  To: 'michel levy', caml-list

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


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

end of thread, other threads:[~2010-01-18 14:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-18 14:31 Compatibility 3.11.1 and 3.09.3 michel levy
2010-01-18 14:59 ` [Caml-list] " David Allsopp

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).