> Fatal error: exception Cmi_format.Error(_)

I don't know how this exception escaped (it is supposed to be caught by the compiler) but it looks like you have some old .cmi files lying around that were compiled by your previous version of OCaml. You should remove them, and also the .cmo, .cmx, etc. and recompile everything (including any third-party libraries that you might have installed).

-- Damien

On Mon, Dec 1, 2014 at 5:27 AM, Alain Coste <coste@irit.fr> wrote:
Hello
My OS is windows XP SP3.
Two years ago, I installed OCaml.4.00.1 from the source code distribution, using MinGW Cygwin. Everything worked fine.
Yesterday I tried to install OCaml.4.02.1 in the same conditions (source
code,MinGW Cygwin).
The process seems to be exactly the same, following README.win32 (except for
the variable TK_ROOT in Makefile, no longer pertinent).
The system build with no fatal error. I got some (many!) warnings, but as I
remember, it was the same with version 4.00.1.
But, when I tried to launch ocaml.exe I got the message:

D:\OCaml-4.02.1-mgw-perso\bin>ocaml.exe
       OCaml version 4.02.1

Fatal error: exception Cmi_format.Error(_)

The exception Error is not listed (at least for the module Cmi_format) in
the index of exceptions of the manual. Perhaps a problem of Dynamic link,
but I don't know what to do.
And there is no description associated with the exception!
A search on the Web didn't give me informations I could understand.

Thanks in advance for your answers.

Alain Coste


---
Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active.
http://www.avast.com


--
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs