List Info

Thread: "ocaml_beginners"::[] findlib 1.2.1 compatible with Ocaml 3.10.2 ?




"ocaml_beginners"::[] findlib 1.2.1 compatible with Ocaml 3.10.2 ?
country flaguser name
United States
2008-03-28 08:56:57


Dear all,

I have just met a wired exception when trying to compile my ocaml code:
Uncaught exception: Invalid_argument("waitpid not implemented")

Platform: cygwin, ocaml 3.10.2, ocamlfind 1.2.1
loading unix and postgresql package

As far as I can see it's a problem related to the Unix module. (But it's
working fine before I moved to ocaml 3.10.2) I did the following tests:

(1) ocamlmktop -o mytop unix.cma

$ ./mytop
Objective Caml version 3.10.2

# Unix.time();;
- : float = 1206712146.

working fine

(2) ocamlfind ocamlmktop -o mytop2 -package unix -linkpkg

immediate exception:
Uncaught exception: Invalid_argument("waitpid not implemented")

Surprisingly, you can find 'mytop2' created!!! and working

$ ./mytop2
Objective Caml version 3.10.2

# Unix.time ();;
- : float = 1206712304.

Is there any one know or has met this problem? It's a problem related to
cygwin, findlib, or the ocaml 3.10.2?

Thanks for any help!

Conglun

--
View this message in context: http://www.nabble.com/findlib-1.2.1-compatible-with-Ocaml-3.10.2---tp16349800p16349800.html
Sent from the Ocaml Beginner mailing list archive at Nabble.com.

__._,_.___
.

__,_._,___
Re: "ocaml_beginners"::[] Re: findlib 1.2.1 compatible with Ocaml 3.10.2 ?
country flaguser name
United States
2008-03-28 10:56:55

Thanks for your reply. I noticed this part in the manual. But it's working
fine (cygwin + ocaml 3.09 + ocamlfind 1.1.1) before I moved to the latest
verison.

Is there approach to work around this exception, when I using

ocamlfind ocamlmktop -o mytop -package unix -linkpkg

Regards,
Conglun

On 3/28/08, Remi Vanicat < remi.vanicat%40gmail.com">remi.vanicatgmail.com> wrote:
&gt;
> conglun < yaoconglun%40gmail.com">yaoconglungmail.com <yaoconglun%40gmail.com>> writes:
>
> > Dear all,
>; >
>; > I have just met a wired exception when trying to compile my ocaml code:
&gt; > Uncaught exception: Invalid_argument(&quot;waitpid not implemented")
>
>; It's very clear: waitpid is not implemented, more precisely, "waitpid
> can only wait for a given PID, not any child process&quot; on a windows
> box, see http://caml.inria.fr/pub/docs/manual-ocaml/manual035.html
>
>; --
> Rémi Vanicat
>
>
>

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )