Re: [Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-18 Thread oliver
and with which ocamlrun you get the info, which one is used. Ciao, Oliver On Sun, Dec 18, 2011 at 01:30:25PM +0900, Jacques Garrigue wrote: This basically means that you have 2 ocamlrun on this machine. ./prog calls ocamlrun with a fixed path, but the 1st ocamlrun is your path is an

Re: [Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-18 Thread Dmitry Grebeniuk
Hello. Do head -1 prog to see the right ocamlrun. Thank you, this really helped, but in the other way. I've found that this executable has ELF format. So, this is a -custom linked bytecode executable. But I can't find anywhere in the documentation any information about whether can I /

Re: [Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-18 Thread Gerd Stolpmann
Am Sonntag, den 18.12.2011, 17:39 +0200 schrieb Dmitry Grebeniuk: Hello. Do head -1 prog to see the right ocamlrun. Thank you, this really helped, but in the other way. I've found that this executable has ELF format. So, this is a -custom linked bytecode executable. But I can't find

Re: [Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-18 Thread Dmitry Grebeniuk
Hello. So, this is a -custom linked bytecode executable. Thanks for clarifications about -custom and dynamic loading. ocamlc -o myrun -make-runtime unix.cma Then ./myrun prog should work (provided that Unix is the only missing lib). Yes, it works (fails on the next required library).

Re: [Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-18 Thread Gerd Stolpmann
Am Sonntag, den 18.12.2011, 18:40 +0200 schrieb Dmitry Grebeniuk: Hello. So, this is a -custom linked bytecode executable. Thanks for clarifications about -custom and dynamic loading. ocamlc -o myrun -make-runtime unix.cma Then ./myrun prog should work (provided that Unix is the

[Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-17 Thread Dmitry Grebeniuk
Hello. The OCaml manual states that executing bytecode program with ./prog and ocamlrun ./prog should give the same result (in simple case, without options and environment modifications). However in my case the result is different: ./prog executes well, but ocamlrun ./prog gives Fatal error:

RE: [Caml-list] bytecode: ./prog vs ocamlrun ./prog

2011-12-17 Thread Jacques Garrigue
This basically means that you have 2 ocamlrun on this machine. ./prog calls ocamlrun with a fixed path, but the 1st ocamlrun is your path is an incompatible one. Do head -1 prog to see the right ocamlrun. Jacques Garrigue - From: Dmitry Grebeniuk gds...@gmail.com Hello. The OCaml manual