caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Ocamldebugging custom runtime executables
@ 2012-11-02  1:14 Valentin ROBERT
  2012-11-04 23:06 ` Nicolas Braud-Santoni
  0 siblings, 1 reply; 3+ messages in thread
From: Valentin ROBERT @ 2012-11-02  1:14 UTC (permalink / raw)
  To: caml-list

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

Dear caml-list,

I have been annoyed by a feature I was not quite familiar with, as I had
compiled a library with the -custom option and was oblivious to the fact
that the option would be passed to client code of that library, resulting
in a "custom runtime" for any program linking to that library.

Now, I am under the impression that the ocaml 4.00 debugger can load such
custom runtime executables, while my ocaml 3.12 debugger does not like
them: "... is not a bytecode file.".

I did not find this mentioned in the 4.00 changelog though. And looking at
the manual for 3.12 makes it look as if it should have been able to load
such files:

http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12-refman.html#htoc199
"Rarely useful; moreover it prevents the debugging of programs compiled in
“custom runtime” mode."

I would therefore be interested in knowing whether ocaml 3.12 debugger
should have been able to debug such custom runtime, and if so, why did I
get this error?

- Valentin

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

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

* Re: [Caml-list] Ocamldebugging custom runtime executables
  2012-11-02  1:14 [Caml-list] Ocamldebugging custom runtime executables Valentin ROBERT
@ 2012-11-04 23:06 ` Nicolas Braud-Santoni
  2012-11-04 23:10   ` Valentin ROBERT
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Braud-Santoni @ 2012-11-04 23:06 UTC (permalink / raw)
  To: Valentin ROBERT; +Cc: caml-list

Hello,

Binaries compiled with OCaml 4 aren't compatible with binaries
compiled with OCaml 3.
As such, you should compile both program and library with the same
(major) version of OCaml and use the appropriate debugger.


Regards,

Nicolas

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

* Re: [Caml-list] Ocamldebugging custom runtime executables
  2012-11-04 23:06 ` Nicolas Braud-Santoni
@ 2012-11-04 23:10   ` Valentin ROBERT
  0 siblings, 0 replies; 3+ messages in thread
From: Valentin ROBERT @ 2012-11-04 23:10 UTC (permalink / raw)
  To: Nicolas Braud-Santoni; +Cc: caml-list

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

Dear Nicolas,

I believe this is what I did, as the two examples I mention were obtained
on two different (virtual) machines.
My apologies if I made things unclear.

- Valentin


On Sun, Nov 4, 2012 at 3:06 PM, Nicolas Braud-Santoni <
nicolas@braud-santoni.eu> wrote:

> Hello,
>
> Binaries compiled with OCaml 4 aren't compatible with binaries
> compiled with OCaml 3.
> As such, you should compile both program and library with the same
> (major) version of OCaml and use the appropriate debugger.
>
>
> Regards,
>
> Nicolas
>

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

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

end of thread, other threads:[~2012-11-04 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-02  1:14 [Caml-list] Ocamldebugging custom runtime executables Valentin ROBERT
2012-11-04 23:06 ` Nicolas Braud-Santoni
2012-11-04 23:10   ` Valentin ROBERT

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