Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocamlc -pack and ocamlopt -pack produce different cmi files!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] ocamlc -pack and ocamlopt -pack produce different cmi files!
> I have some (inherited) code which has a build script doing this:
> ocamlc -pack -g -o bin/c/simlib.cmo -I $SUB/zkit -I $SUB/model -I $SUB/cjs2 $FILESLIB $FILESMODEL $FILESCJS2
> ocamlopt -pack -o bin/opt/simlib.cmx -I $SUB/zkit -I $SUB/model -I $SUB/cjs2 $FILESLIB $FILESMODEL $FILESCJS2
> It turns out that the two simlib.cmi files built by these two steps
> have different MD5 digests. Why is this, and is there some way to
> ensure they have the same digest?

The two .cmi files should be identical, so it looks like a bug.  I
can't reproduce it here on a simple example.  What version of OCaml
are you using, and could you send me a set of source files that
reproduce the problem?

- Xavier Leroy

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: