Red Hat Bugzilla – Bug 21427
ocamldebug is actually ocamlrun
Last modified: 2008-05-01 11:37:59 EDT
Oddly, the ocaml RPM is weirdly compiled, so that ocamldebug looks like a
version of ocamlrun (although it is not the same file as the ocamlrun
executbale included.) To verify, just try to feed it on eof the
command-line options for ocamldebug, and you'll see it doesn't work.
I'm not sure what the problem is exactly. I donwloaded pristine sources
and compiled them with only the memmove patch, and that ocamldebug worked
fine. The pristine sources do not compile fully without the memmove patch
I haven't tried the included sources, or the sparc patch.
A quick of correctness. ocamldebug should give the following re
snapdragon: SOURCES $ ocamldebug
No program name specified
Usage: ocamldebug [options] <program> [arguments]
-I <dir> Add <dir> to the list of include directories
-s <filename> Set the name of the communication socket
-c <count> Set max number of checkpoints kept
-cd <dir> Change working directory
-emacs For running the debugger under emacs
If it doesn't (for instance, it says something about missing a bytecode
file) then there's a problem.
I just checked --- the ocaml tar file contained on the RPM is in fact the
pristine sources. So the problem is either the sparc patch or somehow in the
install. I suspect it's the sparc patch.
It's the same file, only stripped. Unstripped it has all the flags.
After a quick look at some of the other binaries, none of them can be stripped.
If they are, the exact smae behavior is exibited. I am working on an errata
release for this now.
An errata has been released for this ( RHBA-2000:119-02 ). Thanks for the report.