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: 5532 Reporter: edmcman Assigned to: meyer Status: closed (set by @xavierleroy on 2015-12-11T18:04:45Z) Resolution: fixed Priority: normal Severity: feature Version: 3.12.0 Category: runtime system and C interface
Bug description
ocamlrun refuses to run bytecode files with no period in the filename. Instead, it prints "Fatal error: the file is not a bytecode executable file", which is not necessarily true.
Steps to reproduce
edmcman@joethecat:/ocaml-3.12.0$ ocamlc test.ml -o test
edmcman@joethecat:/ocaml-3.12.0$ ocamlrun test
Fatal error: the file test is not a bytecode executable file
edmcman@joethecat:/ocaml-3.12.0$ mv test test.
edmcman@joethecat:/ocaml-3.12.0$ ocamlrun test.
edmcman@joethecat:~/ocaml-3.12.0$
The text was updated successfully, but these errors were encountered:
It's not about period in the filename. Your file name seems to be a legitimate non-ocaml bytecode file found on path. It clashes on my machine with Linux /usr/bin/test. If you try ocamlrun ./test it will work.
Original bug ID: 5532
Reporter: edmcman
Assigned to: meyer
Status: closed (set by @xavierleroy on 2015-12-11T18:04:45Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.12.0
Category: runtime system and C interface
Bug description
ocamlrun refuses to run bytecode files with no period in the filename. Instead, it prints "Fatal error: the file is not a bytecode executable file", which is not necessarily true.
Steps to reproduce
edmcman@joethecat:
/ocaml-3.12.0$ ocamlc test.ml -o test/ocaml-3.12.0$ ocamlrun testedmcman@joethecat:
Fatal error: the file test is not a bytecode executable file
edmcman@joethecat:
/ocaml-3.12.0$ mv test test./ocaml-3.12.0$ ocamlrun test.edmcman@joethecat:
edmcman@joethecat:~/ocaml-3.12.0$
The text was updated successfully, but these errors were encountered: