unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#35549: dune failure
@ 2019-05-03 19:24 Gabriel Hondet
  2019-05-03 20:17 ` Julien Lepiller
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Hondet @ 2019-05-03 19:24 UTC (permalink / raw)
  To: 35549

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

Good evening,

I tried to build a project with dune, and it failed while trying to
access '/usr/lib/ocaml/METAS':

$ dune build lambdapi.exe

Entering directory '/data0/gabriel/workspace/vcs/lambdapi'
Error: exception Sys_error("/usr/lib/ocaml/METAS: No such file or directory")
Backtrace:
Raised by primitive operation at file "src/stdune/path.ml", line 878, characters 25-50
Called from file "src/findlib.ml", line 441, characters 6-31
Called from file "list.ml", line 99, characters 22-25
Called from file "src/stdune/list.ml" (inlined), line 5, characters 19-33
Called from file "src/stdune/list.ml", line 39, characters 29-39
Called from file "src/findlib.ml", line 440, characters 4-265
Called from file "src/findlib.ml", line 453, characters 20-37
Called from file "src/findlib.ml", line 457, characters 2-21
Called from file "src/lib.ml", line 1334, characters 6-34
Called from file "src/super_context.ml", line 288, characters 4-70
Called from file "src/gen_rules.ml", line 327, characters 6-161
Called from file "src/fiber/fiber.ml", line 99, characters 6-13
                   
I must not segfault.  Uncertainty is the mind-killer.  Exceptions are
the little-death that brings total obliteration.  I will fully express
my cases.  Execution will pass over me and through me.  And when it
has gone past, I will unwind the stack along its path.  Where the
cases are handled there will be nothing.  Only I will remain.

--
I'll probably have a look at it tomorrow.  If someone has an idea
though, let me know.

Cheers,
Gabriel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#35549: dune failure
  2019-05-03 19:24 bug#35549: dune failure Gabriel Hondet
@ 2019-05-03 20:17 ` Julien Lepiller
  2019-05-04  6:48   ` Gabriel Hondet
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Lepiller @ 2019-05-03 20:17 UTC (permalink / raw)
  To: Gabriel Hondet; +Cc: 35549

Le Fri, 03 May 2019 21:24:16 +0200,
Gabriel Hondet <gabrielhondet@gmail.com> a écrit :

> Good evening,
> 
> I tried to build a project with dune, and it failed while trying to
> access '/usr/lib/ocaml/METAS':
> 
> [...]
> 
> I'll probably have a look at it tomorrow.  If someone has an idea
> though, let me know.
> 
> Cheers,
> Gabriel

Is /usr/lib/ocaml/METAS referenced somewhere in the sources you're
trying to build?

Maybe you could try setting these environment variables:
OCAMLFIND_DESTDIR=<somewhere>
and
OCAMLFIND_LDCONF=ignore

that's what we do in the dune-build-system.

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

* bug#35549: dune failure
  2019-05-03 20:17 ` Julien Lepiller
@ 2019-05-04  6:48   ` Gabriel Hondet
  2019-05-04  7:36     ` Gabriel Hondet
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Hondet @ 2019-05-04  6:48 UTC (permalink / raw)
  To: Julien Lepiller; +Cc: 35549

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

Hi Julien,

On Fri 03 May 2019 at 22:17 Julien Lepiller wrote:

> Is /usr/lib/ocaml/METAS referenced somewhere in the sources you're
> trying to build?

Checking this is indeed a good idea, but no, the path isn't referenced
in the sources.


> Maybe you could try setting these environment variables:
> OCAMLFIND_DESTDIR=<somewhere>
> and
> OCAMLFIND_LDCONF=ignore
>
> that's what we do in the dune-build-system.

The DESTDIR is used when installing files, isn't it?  Here it seems to
be rather a problem of source directory though.

Gabriel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#35549: dune failure
  2019-05-04  6:48   ` Gabriel Hondet
@ 2019-05-04  7:36     ` Gabriel Hondet
  2019-05-04  7:51       ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Gabriel Hondet @ 2019-05-04  7:36 UTC (permalink / raw)
  To: 35549

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


The error was mine, sorry, ocamlfind was not installed through guix and
thus the paths returned were wrong.  I'm closing this.

Gabriel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* bug#35549: dune failure
  2019-05-04  7:36     ` Gabriel Hondet
@ 2019-05-04  7:51       ` Ricardo Wurmus
  0 siblings, 0 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2019-05-04  7:51 UTC (permalink / raw)
  To: Gabriel Hondet; +Cc: 35549-done


> I'm closing this.

Closing.

-- 
Ricardo

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

end of thread, other threads:[~2019-05-04  7:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-03 19:24 bug#35549: dune failure Gabriel Hondet
2019-05-03 20:17 ` Julien Lepiller
2019-05-04  6:48   ` Gabriel Hondet
2019-05-04  7:36     ` Gabriel Hondet
2019-05-04  7:51       ` Ricardo Wurmus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).