caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Test failure - why?
@ 2019-04-26  9:48 Richard W.M. Jones
  2019-04-26 10:07 ` Sébastien Hinderer
  0 siblings, 1 reply; 6+ messages in thread
From: Richard W.M. Jones @ 2019-04-26  9:48 UTC (permalink / raw)
  To: caml-list


This happened.  Is there a way to find out what went wrong?  There
seems to be no output saved anywhere ...

 ... testing 'debuggee.ml' with 1.1.1.1.1.1.1.1.1 (ocamldebug) => failed (Debugging program debuggee.exe: command /home/rjones/d/fedora/ocaml/master/ocaml-4.08.0+beta3/runtime/ocamlrun /home/rjones/d/fedora/ocaml/master/ocaml-4.08.0+beta3/debugger/ocamldebug -no-version -no-prompt -no-time -no-breakpoint-message -topdirs-path /home/rjones/d/fedora/ocaml/master/ocaml-4.08.0+beta3/toplevel debuggee.exe
failed with exit code 2)

Rich.

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

* Re: [Caml-list] Test failure - why?
  2019-04-26  9:48 [Caml-list] Test failure - why? Richard W.M. Jones
@ 2019-04-26 10:07 ` Sébastien Hinderer
  2019-04-26 11:32   ` Gabriel Scherer
  2019-04-26 11:41   ` Richard W.M. Jones
  0 siblings, 2 replies; 6+ messages in thread
From: Sébastien Hinderer @ 2019-04-26 10:07 UTC (permalink / raw)
  To: caml-list

Did you try to run the command manually to see what happens?
Sébastien.

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

* Re: [Caml-list] Test failure - why?
  2019-04-26 10:07 ` Sébastien Hinderer
@ 2019-04-26 11:32   ` Gabriel Scherer
  2019-04-26 11:41   ` Richard W.M. Jones
  1 sibling, 0 replies; 6+ messages in thread
From: Gabriel Scherer @ 2019-04-26 11:32 UTC (permalink / raw)
  To: Sébastien Hinderer, caml users

[-- Attachment #1: Type: text/plain, Size: 1214 bytes --]

From the compiler distribution directory, going to

  testsuite/

and running

  make one DIR=tests/tools-toplevel

I observe various output (actually in the run I made I can see this failure
line as well). The test that fails in my case is find-artifacts/, so there
is a log directory

  tests/tool-debugger/find-artifacts/_ocamltest/

In particular there is a file

  cat
tests/tool-debugger/find-artifacts/_ocamltest/tests/tool-debugger/find-artifacts/debuggee/ocamlc.byte/debuggee.byte.output

which ends with

Debugger [version 4.10.0+dev0-2019-04-23] environment error:
 The files /usr/local/lib/ocaml/stdlib.cmi
 and
/home/gasche/Prog/ocaml/github-trunk/testsuite/tests/tool-debugger/find-artifacts/_ocamltest/tests/tool-debugger/find-artifacts/debuggee/ocamlc.byte/out/blah.cmi
 make inconsistent assumptions over interface Stdlib

This seems to be a problem where the testsuite environment is not
sufficiently isolated from the outside world, and another OCaml install
somewhere breaks things.


On Fri, Apr 26, 2019 at 12:08 PM Sébastien Hinderer <
Sebastien.Hinderer@inria.fr> wrote:

> Did you try to run the command manually to see what happens?
> Sébastien.
>

[-- Attachment #2: Type: text/html, Size: 1822 bytes --]

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

* Re: [Caml-list] Test failure - why?
  2019-04-26 10:07 ` Sébastien Hinderer
  2019-04-26 11:32   ` Gabriel Scherer
@ 2019-04-26 11:41   ` Richard W.M. Jones
  2019-04-26 12:03     ` Nicolás Ojeda Bär
  1 sibling, 1 reply; 6+ messages in thread
From: Richard W.M. Jones @ 2019-04-26 11:41 UTC (permalink / raw)
  To: caml-list

On Fri, Apr 26, 2019 at 12:07:44PM +0200, Sébastien Hinderer wrote:
> Did you try to run the command manually to see what happens?

There's a bit more to this - when I run it from a straight git
checkout it (of course) doesn't fail.  It only fails when I build the
Fedora package.

However I did preserve the Fedora build root just now and was able to
run the command by hand there, and the error is:

  Fatal error: unknown C primitive `unix_fsync'

I suppose it must be linking to the wrong OCaml runtime - perhaps the
installed one (4.07.0)?

Rich.

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

* Re: [Caml-list] Test failure - why?
  2019-04-26 11:41   ` Richard W.M. Jones
@ 2019-04-26 12:03     ` Nicolás Ojeda Bär
  2019-05-13 12:54       ` Sébastien Hinderer
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolás Ojeda Bär @ 2019-04-26 12:03 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: OCaml Mailing List

Hi Rich,

That error typically means that CAML_LD_LIBRARY_PATH is not correctly set.

Best wishes,
Nicolás



On Fri, Apr 26, 2019 at 1:42 PM Richard W.M. Jones <rich@annexia.org> wrote:
>
> On Fri, Apr 26, 2019 at 12:07:44PM +0200, Sébastien Hinderer wrote:
> > Did you try to run the command manually to see what happens?
>
> There's a bit more to this - when I run it from a straight git
> checkout it (of course) doesn't fail.  It only fails when I build the
> Fedora package.
>
> However I did preserve the Fedora build root just now and was able to
> run the command by hand there, and the error is:
>
>   Fatal error: unknown C primitive `unix_fsync'
>
> I suppose it must be linking to the wrong OCaml runtime - perhaps the
> installed one (4.07.0)?
>
> Rich.

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

* Re: [Caml-list] Test failure - why?
  2019-04-26 12:03     ` Nicolás Ojeda Bär
@ 2019-05-13 12:54       ` Sébastien Hinderer
  0 siblings, 0 replies; 6+ messages in thread
From: Sébastien Hinderer @ 2019-05-13 12:54 UTC (permalink / raw)
  To: caml-list

Nicolás Ojeda Bär (2019/04/26 12:03 +0000):
> Hi Rich,
> 
> That error typically means that CAML_LD_LIBRARY_PATH is not correctly
> set.

Just to keep you guys posted: at the moment I am not able to reproduce
the problem. We will see what we can do with the help of Gabriel.

Sébastien.

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

end of thread, other threads:[~2019-05-13 12:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-26  9:48 [Caml-list] Test failure - why? Richard W.M. Jones
2019-04-26 10:07 ` Sébastien Hinderer
2019-04-26 11:32   ` Gabriel Scherer
2019-04-26 11:41   ` Richard W.M. Jones
2019-04-26 12:03     ` Nicolás Ojeda Bär
2019-05-13 12:54       ` Sébastien Hinderer

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).