caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] inconsistent assumptions over implementation Printf
@ 2015-06-23 19:52 Richard W.M. Jones
  2015-06-23 20:41 ` Török Edwin
  0 siblings, 1 reply; 4+ messages in thread
From: Richard W.M. Jones @ 2015-06-23 19:52 UTC (permalink / raw)
  To: caml-list

This seems like a rather basic question, but here goes.

For a long time in Fedora we've used RPM dependencies to enforce that
the "inconsistent assumptions" error does not occur for end users.
This means encoding the OCaml version + MD5 hash of each interface.
For example:

  $ rpm -q --provides ocaml-runtime
  ...
  ocaml(Printf) = eb49a17645c5ea2dd298430a3c986186
  ...
  ocaml(runtime) = 4.02.2

With the move from 4.02.2+rc1 to 4.02.2 final, we've suddenly started
to see:

  Error: Files /usr/lib64/ocaml/gettext/gettextBase.cmxa
       and /usr/lib64/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Printf

The ocaml(runtime) version string didn't change, so we're relying
solely on the ocaml(Printf) dependency to prevent this.  According to
my understanding the above error "cannot" happen, not least because
Printf didn't change its interface between -rc1 and final.

ocamlobjinfo from the relevant libraries:

  http://oirase.annexia.org/tmp/stdlib.cmxa.txt
  http://oirase.annexia.org/tmp/gettextBase.cmxa.txt

Can someone explain where my understanding is wrong?

Also - could we *please* make the error message more explanatory.
Printing out the mismatching MD5 hashes would be a good start.

Thanks,

Rich.

-- 
Richard Jones
Red Hat

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

end of thread, other threads:[~2015-06-26 21:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 19:52 [Caml-list] inconsistent assumptions over implementation Printf Richard W.M. Jones
2015-06-23 20:41 ` Török Edwin
2015-06-25  7:58   ` Richard W.M. Jones
2015-06-26 21:27     ` Török Edwin

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