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

* Re: [Caml-list] Loading of dynamic code works with older OCaml versions, but fails with recent versions (>= 4.02.0)
  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
  0 siblings, 1 reply; 3+ messages in thread
From: François Bobot @ 2017-08-01  9:15 UTC (permalink / raw)
  To: caml-list

Le 31/07/2017 à 18:37, Mohamed Iguernlala a écrit :
> 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.

Alt-Ergo is using pack, so in which way is it linked with 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).

Is satML-plugin compiled by looking only at Alt-Ergo packed library?

Best,

-- 
François


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

* Re: [Caml-list] Loading of dynamic code works with older OCaml versions, but fails with recent versions (>= 4.02.0)
  2017-08-01  9:15 ` François Bobot
@ 2017-08-01  9:58   ` Fabrice Le Fessant
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Le Fessant @ 2017-08-01  9:58 UTC (permalink / raw)
  To: François Bobot, caml-list

[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]

We found the reason: it looks like strings are included in the computation
of cmx hashes after 4.02, but not before. Removing a string containing the
time of build will probably solve the issue.
--Fabrice

On Tue, Aug 1, 2017 at 11:16 AM François Bobot <francois.bobot@cea.fr>
wrote:

> Le 31/07/2017 à 18:37, Mohamed Iguernlala a écrit :
> > 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.
>
> Alt-Ergo is using pack, so in which way is it linked with 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).
>
> Is satML-plugin compiled by looking only at Alt-Ergo packed library?
>
> Best,
>
> --
> François
>
>
> --
> 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
>

[-- Attachment #2: Type: text/html, Size: 1732 bytes --]

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