caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Strange, occasional build failure with ocamlmklib / ranlib
@ 2009-06-02 14:46 Richard Jones
  2009-06-02 14:52 ` [Caml-list] " Richard Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Richard Jones @ 2009-06-02 14:46 UTC (permalink / raw)
  To: caml-list

I just want to post this here in case it rings a bell with anyone:

ocamlfind ocamlc -c guestfs.mli
ocamlfind ocamlc -c guestfs.ml
ocamlfind ocamlopt -c guestfs.ml
ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmo
-L../src/.libs -lguestfs
ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmx
-L../src/.libs -lguestfs
ranlib: './libmlguestfs.a': No such file

There's no other error visible.

The error is intermittent, and fairly rare.  Usually if we just run
the build again it succeeds.

We've seen the same bug happening on 3.09.3 and on 3.11.1+rc0.

There are more detailed build logs here:

https://bugzilla.redhat.com/show_bug.cgi?id=502309

Anyone got any ideas at all?

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Strange, occasional build failure with ocamlmklib / ranlib
  2009-06-02 14:46 Strange, occasional build failure with ocamlmklib / ranlib Richard Jones
@ 2009-06-02 14:52 ` Richard Jones
  2009-06-02 14:53 ` Olivier Andrieu
  2009-06-02 14:53 ` Martin Jambon
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Jones @ 2009-06-02 14:52 UTC (permalink / raw)
  To: caml-list

On Tue, Jun 02, 2009 at 03:46:27PM +0100, Richard Jones wrote:
> I just want to post this here in case it rings a bell with anyone:
> 
> ocamlfind ocamlc -c guestfs.mli
> ocamlfind ocamlc -c guestfs.ml
> ocamlfind ocamlopt -c guestfs.ml
> ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmo
> -L../src/.libs -lguestfs
> ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmx
> -L../src/.libs -lguestfs
> ranlib: './libmlguestfs.a': No such file

I think I've solved this -- the therapeutic effect of posting on
caml-list works!

I think those two invocations of ocamlmklib are being run in parallel,
so one is deleting the output file of the other.

[...]
> https://bugzilla.redhat.com/show_bug.cgi?id=502309

Rich.

-- 
Richard Jones
Red Hat


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Strange, occasional build failure with ocamlmklib /  ranlib
  2009-06-02 14:46 Strange, occasional build failure with ocamlmklib / ranlib Richard Jones
  2009-06-02 14:52 ` [Caml-list] " Richard Jones
@ 2009-06-02 14:53 ` Olivier Andrieu
  2009-06-02 14:53 ` Martin Jambon
  2 siblings, 0 replies; 4+ messages in thread
From: Olivier Andrieu @ 2009-06-02 14:53 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list

On Tue, Jun 2, 2009 at 16:46, Richard Jones <rich@annexia.org> wrote:
> I just want to post this here in case it rings a bell with anyone:
>
> ocamlfind ocamlc -c guestfs.mli
> ocamlfind ocamlc -c guestfs.ml
> ocamlfind ocamlopt -c guestfs.ml
> ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmo
> -L../src/.libs -lguestfs
> ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmx
> -L../src/.libs -lguestfs
> ranlib: './libmlguestfs.a': No such file
>
> There's no other error visible.
>
> The error is intermittent, and fairly rare.  Usually if we just run
> the build again it succeeds.
>
> We've seen the same bug happening on 3.09.3 and on 3.11.1+rc0.
>
> There are more detailed build logs here:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=502309
>
> Anyone got any ideas at all?

Is it a parallel make ? If so, the concurrent ocamlmklib are probably
stepping on each other's toes ...
You could try either calling ocamlklib once, or 3 times (with the .o,
the .cmo and the .cmx);

-- 
  Olivier


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Caml-list] Strange, occasional build failure with ocamlmklib / ranlib
  2009-06-02 14:46 Strange, occasional build failure with ocamlmklib / ranlib Richard Jones
  2009-06-02 14:52 ` [Caml-list] " Richard Jones
  2009-06-02 14:53 ` Olivier Andrieu
@ 2009-06-02 14:53 ` Martin Jambon
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Jambon @ 2009-06-02 14:53 UTC (permalink / raw)
  To: Richard Jones; +Cc: caml-list

Richard Jones wrote:
> I just want to post this here in case it rings a bell with anyone:
> 
> ocamlfind ocamlc -c guestfs.mli
> ocamlfind ocamlc -c guestfs.ml
> ocamlfind ocamlopt -c guestfs.ml
> ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmo
> -L../src/.libs -lguestfs
> ocamlmklib -o mlguestfs guestfs_c.o guestfs_c_actions.o guestfs.cmx
> -L../src/.libs -lguestfs
> ranlib: './libmlguestfs.a': No such file
> 
> There's no other error visible.
> 
> The error is intermittent, and fairly rare.  Usually if we just run
> the build again it succeeds.

Similar problem here (ocaml 3.09.2, amd64, Linux).  Because the error is
intermittent, I never took the pain to look at it further.  All I remember is
the pattern of the error message:

   ranlib: './your_ocaml_library_here.a': No such file

and the fact that it is infrequent and seems to occur randomly.


Martin


> We've seen the same bug happening on 3.09.3 and on 3.11.1+rc0.
> 
> There are more detailed build logs here:
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=502309
> 
> Anyone got any ideas at all?
> 
> Rich.
> 


-- 
http://mjambon.com/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-06-02 14:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-02 14:46 Strange, occasional build failure with ocamlmklib / ranlib Richard Jones
2009-06-02 14:52 ` [Caml-list] " Richard Jones
2009-06-02 14:53 ` Olivier Andrieu
2009-06-02 14:53 ` Martin Jambon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).