Bug#678577: ocaml: -custom breaks ocamlrun and ocamldebug

June 22nd, 2012 - 05:00 pm ET by Ed Schwartz | Report spam
Package: ocaml
Version: 3.12.1-3
Severity: normal


Using debian's ocamlc:

ed@debian:~/ocaml-3.12.1$ ocamlc -custom test.ml -o test.out
ed@debian:~/ocaml-3.12.1$ ocamlrun test.out
Fatal error: the file test.out is not a bytecode executable file

Using the official ocaml 3.12.1 source:

ed@debian:~/ocaml-3.12.1$ ocamlrun ./ocamlc -custom test.ml -o test.out
ed@debian:~/ocaml-3.12.1$ ocamlrun test.out

This bug is preventing users of our OCaml project from being able to debug their binaries, because ocamldebug reports the same error as ocamlrun.

Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ocaml depends on:
ii libx11-dev 2:1.4.99.901-2
ii ocaml-base [ocaml-base-3.12.1] 3.12.1-3
ii ocaml-base-nox 3.12.1-3
ii ocaml-nox [ocaml-nox-3.12.1] 3.12.1-3

ocaml recommends no packages.

Versions of packages ocaml suggests:
pn tcl8.5-dev <none>
pn tk8.5-dev <none>




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 6 repliesReplies Make a reply

Replies

#1 Stéphane Glondu
June 22nd, 2012 - 05:20 pm ET | Report spam
Le 22/06/2012 22:46, Ed Schwartz a écrit :
Using debian's ocamlc:

:~/ocaml-3.12.1$ ocamlc -custom test.ml -o test.out
:~/ocaml-3.12.1$ ocamlrun test.out
Fatal error: the file test.out is not a bytecode executable file



Why do you use -custom if your executable works with plain ocamlrun?

Using the official ocaml 3.12.1 source:

:~/ocaml-3.12.1$ ocamlrun ./ocamlc -custom test.ml -o test.out
:~/ocaml-3.12.1$ ocamlrun test.out

This bug is preventing users of our OCaml project from being able to debug their binaries, because ocamldebug reports the same error as ocamlrun.



See /usr/share/doc/ocaml-nox/README.Debian.


Cheers,

Stéphane


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Archive: http://lists.debian.org/

Similar topics