caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Loading of dynamic code works with older OCaml versions, but fails with recent versions (>= 4.02.0)
@ 2017-07-31 16:37 Mohamed Iguernlala
  2017-08-01  9:15 ` François Bobot
  0 siblings, 1 reply; 3+ messages in thread
From: Mohamed Iguernlala @ 2017-07-31 16:37 UTC (permalink / raw)
  To: caml-list

Hello,

I'm facing an issue[1] with OCaml versions >= 4.02.0 when
building/using dynamically loaded plugins for/with Alt-Ergo. I
think this is probably due to module aliases. In fact, I'm able
to install and use Alt-Ergo + satML-plugin on OCaml 4.01.0, but
not on OCaml 4.02.0 (or higher).

$ opam sw 4.01.0
$ eval `opam config env`
$ opam remove alt-ergo satML-plugin
$ opam install alt-ergo satML-plugin
$ echo "goal g: 1 + 1 = 2" > foo.why
$ alt-ergo -sat-plugin satML-plugin.cmxs foo.why
File "foo.why", line 1, characters 9-18:Valid (0.0000) (0 steps)

$ opam sw 4.02.0
$ eval `opam config env`
$ opam remove alt-ergo satML-plugin
$ opam install alt-ergo satML-plugin
$ echo "goal g: 1 + 1 = 2" > foo.why
$ alt-ergo -sat-plugin satML-plugin.cmxs foo.why
...
 >> Failure message: implementation mismatch on Options

Is this a known issue (or is it an issue) ? I know that if I
build the binary and the plugin from the same compiled files,
things work well. I was wondering if there is a better solution
that allows to build things separately.

Regards,

Mohamed.

[1] https://github.com/OCamlPro/alt-ergo/issues/22


-- 
Mohamed IGUERNLALA
Senior R&D Engineer, OCamlPro SAS
Research Associate, VALS team, LRI
Webpage: http://www.iguer.xyz
LinkedIn: https://fr.linkedin.com/in/mohamed-iguernlala-71515979


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

end of thread, other threads:[~2017-08-01  9:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-31 16:37 [Caml-list] Loading of dynamic code works with older OCaml versions, but fails with recent versions (>= 4.02.0) Mohamed Iguernlala
2017-08-01  9:15 ` François Bobot
2017-08-01  9:58   ` Fabrice Le Fessant

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