You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 897 Reporter: administrator Status: closed Resolution: not a bug Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Eric C. Cooper
Version: 3.04
OS: Linux 2.4.17 (ppc)
Submission from: 12-226-37-231.client.attbi.com (12.226.37.231)
I have reproduced these bugs with both the Debian "unstable" ocaml 3.04-4
package and with a system compiled from the INRIA tarball.
BUG #1: ocamlopt.opt goes into infinite loop on nonexistent input file
$ ls -l no.ml
ls: no.ml: No such file or directory
$ ocamlopt -c no.ml
I/O error: no.ml: No such file or directory
$ ocamlopt.opt -c no.ml
Some filenames, i.e. "none.ml", will work correctly.
BUG #2: ocamlopt.opt goes into infinite loop on trivial input file
$ cat foo.ml
let _ = ()
$ ocamlopt.opt -c foo.ml
Note that the following compiles
$ cat test.ml
val x : unit
$ ocamlopt.opt -c test.ml
$
But adding the "-i" flag makes it loop:
$ ocamlopt.opt -i -c test.ml
With a longer program, ocamlopt.opt complains about a non-existent type error:
$ ocamlopt -c util.ml
$ ocamlopt.opt -c util.ml
File "util.ml", line 193, characters 14-25:
The constructor :: expects 2 argument(s),
but is here applied to 3 argument(s)
I can provide the source file on request, but I expect it is probably a symptom
of the same bug as #1 and #2.
The text was updated successfully, but these errors were encountered:
Original bug ID: 897
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
Full_Name: Eric C. Cooper
Version: 3.04
OS: Linux 2.4.17 (ppc)
Submission from: 12-226-37-231.client.attbi.com (12.226.37.231)
I have reproduced these bugs with both the Debian "unstable" ocaml 3.04-4
package and with a system compiled from the INRIA tarball.
BUG #1: ocamlopt.opt goes into infinite loop on nonexistent input file
$ ls -l no.ml
ls: no.ml: No such file or directory
$ ocamlopt -c no.ml
I/O error: no.ml: No such file or directory
$ ocamlopt.opt -c no.ml
Some filenames, i.e. "none.ml", will work correctly.
BUG #2: ocamlopt.opt goes into infinite loop on trivial input file
$ cat foo.ml
let _ = ()
$ ocamlopt.opt -c foo.ml
Note that the following compiles
$ cat test.ml
val x : unit
$ ocamlopt.opt -c test.ml
$
But adding the "-i" flag makes it loop:
$ ocamlopt.opt -i -c test.ml
BUG #3
With a longer program, ocamlopt.opt complains about a non-existent type error:
$ ocamlopt -c util.ml
$ ocamlopt.opt -c util.ml
File "util.ml", line 193, characters 14-25:
The constructor :: expects 2 argument(s),
but is here applied to 3 argument(s)
I can provide the source file on request, but I expect it is probably a symptom
of the same bug as #1 and #2.
The text was updated successfully, but these errors were encountered: