findlib 1.2.1 compatible with Ocaml 3.10.2 ?

View: New views
3 Messages — Rating Filter:   Alert me  

findlib 1.2.1 compatible with Ocaml 3.10.2 ?

by conglun () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

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

by remi.vanicat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

conglun <yaoconglun@...> writes:

> Dear all,
>
> I have just met a wired exception when trying to compile my ocaml code:
> Uncaught exception: Invalid_argument("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" on a windows
box, see http://caml.inria.fr/pub/docs/manual-ocaml/manual035.html

--
Rémi Vanicat


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

by conglun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...> wrote:

>
>   conglun <yaoconglun@... <yaoconglun%40gmail.com>> writes:
>
> > Dear all,
> >
> > I have just met a wired exception when trying to compile my ocaml code:
> > Uncaught exception: Invalid_argument("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" 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]

LightInTheBox - Buy quality products at wholesale price