dune failure

  • Done
  • quality assurance status badge
Details
3 participants
  • Gabriel Hondet
  • Julien Lepiller
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Gabriel Hondet
Severity
normal

Debbugs page

Gabriel Hondet wrote 6 years ago
(address . bug-guix@gnu.org)
87y33nxrxb.fsf@gmail.com
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
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlzMlWAACgkQMbyBBfZZ
1CWheg//Z+q4WexrNM7Me5QaAy0TH40yltVsl8UrCM0B9vxR+P4Xv27IIgNn2lac
6otiDfzTX9fIQWEiq1bN/IMQsoYBtGjzzl0s1sCoY2uLoIAJKQccWu2T5gsK7vo/
q1/eSNhLT05NgSJp8bxPsfebauX3O14m22TZ0qV1ErKXeJ3pIcfshq5RS1TFbWtk
oH+kWAksTI06oh1ps3M3Ti7UcwkzrkD0gW+oBkxX+/jr+esiAy5oB+0flmDSZjvC
TmXjTIW4joL3ZWYc85qVdU17mcS2YbUYl5GHwTKEY9wMxrxuEY1UZ6JgbDIhzJnK
25EqM9XoPrWyUwNOv7YKeKN/JrNVziqeyuZUixTqlPLTNLCPt4KlQgvbdGmBEFzJ
jin//uaTo9E19AqwMnbgV/UI54xx20ucO1O1O2peLvI7MwPGo3C6i3TCcKZ5xwRu
8pCldmNEJgNXFY82DkFuNBXZh9wTNPtwqSVZemXzOC8AsTQzjspGjFyZ7WLZgJ64
moLxOmyS4WTBiOQF+RgENLca67/guq5Mqpk9tRfs+2bSjHeeF9Nmvo1i0azzaPPI
84LDZ05UgjatoYOw2Ol03azgrXvm4QKGrGt/96FF2mtdswIF4bIrF0iLMvAtdGiF
XVJHlGgkiDCoGc5P0N7SR99ZBzwQWzdL49pyGwL0tbQkGahHPPU=
=rNt4
-----END PGP SIGNATURE-----

Julien Lepiller wrote 6 years ago
(name . Gabriel Hondet)(address . gabrielhondet@gmail.com)(address . 35549@debbugs.gnu.org)
20190503221654.0cebd609@sybil.lepiller.eu
Le Fri, 03 May 2019 21:24:16 +0200,
Gabriel Hondet <gabrielhondet@gmail.com> a écrit :

Toggle quote (13 lines)
> 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.
Gabriel Hondet wrote 6 years ago
(name . Julien Lepiller)(address . julien@lepiller.eu)(address . 35549@debbugs.gnu.org)
87woj6yatn.fsf@gmail.com
Hi Julien,

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

Toggle quote (3 lines)
> 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.


Toggle quote (7 lines)
> 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
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlzNNbQACgkQMbyBBfZZ
1CXBkxAAghCZn5FC2X8RvQXxwVs1tFXU/UlkPnRfEWSq0BJFMEtvKt+25hXlgWnS
LAKx4EZ7FOWRcB9VjKP5Z/7i4VZDYkf85g8S6NCV7xcUdmy9V2MMTqlIIebbEGkR
9mSJuoNfvtTNK/5V0p/jrj5Qv8N51bPuzut4B0G0otMfL3EujhNiR2h5QUz0EsgJ
6DhWOkiu49Afg6PsaFtK0HPPSQiKhQa35f7fxszgfjYyRwK+N1/moC3iT4Q+248v
Hsa6qkx6qe3QqpcyBlyxDWk+OUanA27p7V9vx0fetk4ddYL3xj/98hdgNewwKvZB
nz+9N2xhdtxEhKf38Qn+JEQItShI6AexYMNI0TI89HcbBJ9nxMYO5nf5VnIHKh7i
xE89IRkpw+0DF7v/SMnPzouXIPHLxuasfxuJ/g/mbzX+sdzUrpVZtQiJlA9feJW6
WHLoO05Chjy8FyMqTMIXa4+Unz4lEtKLzlWVNkDwQsgfTD1bHypOCjxi2p+nukFQ
JuyHrQJYAAjotmGSzuXJcTAa4W2r9O2RjrMyrq6hv7HjmRz5iuMvge9papx7kW5F
3s+1zl63F4KnMZSti2SBwIyiqXv0Bzm5yyiWJzt9xr44S160DJLYfHPbM3ukOfXb
Z5Fwq7GCEgbBeKrG7tvL3nHwkpdBRhLOi6bhKxYAfy2+DZfwAO4=
=2QZA
-----END PGP SIGNATURE-----

Gabriel Hondet wrote 6 years ago
(address . 35549@debbugs.gnu.org)
87v9yqy8l1.fsf@gmail.com
The error was mine, sorry, ocamlfind was not installed through guix and
thus the paths returned were wrong. I'm closing this.

Gabriel
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlzNQQoACgkQMbyBBfZZ
1CX2exAAmRja5o2SwLOUdaZDmMwFThvpW8P0y/ujp6ijmr1bdhlUfoi+Lesqpow8
IoAi5HaPI3sQgdJmIkic4i/FelW/YuW45kgEcIsz72nFFMhZJsPszD9urdXgrLSN
r6Lr3cDwBmD9da/lmRPI4a4k5sJUeIEytx9P2Oa5NyuazTaC+xPYkwaAxUSjD/8T
HyHM4LJx6DRW/1DEl6yCWlUxnzY4i/e86fGYv4xbGTfaRAk/8eAtFFIYkShspC9K
VMAHlKokeGLXLRwb9cLOfYTuPr5OMmyjc/urFOfsi81CHRQA/F6fvGMxtMQv7c0n
FW+sYNMUBi1R0JGXkim0VZlv54ya/xhVvAC+U/96ZOFJifcFui26Uval36yFaoyh
+7gwdxq8jML8XeeJFFGBPgcKAOPUQQ5XunK5rjlTrQLuscBYE6PUR4gbN2DMVTWl
uK4TjdfoOm1Lsso7EGBLY0Z1Ayhn/y+jrRMT+7fQO4pkNchX3pK0Kg/ploZiTog9
1nLIei9ZfFd5zHiZM4UL40xfCpaFRkgCrwyIxG03vQDoP7wjscfDEVSHMf3tsbgp
GHQyp5d9EryvwL2vYhVUerN8iDktmHCF9OhPN7ekRxCF19W2qWC7flMydejM+hAK
2KUjT2KnWYjYD82FATVw2oi7gCk0ILMgg/2AkUJZ9fY5sE3+d9o=
=SJEs
-----END PGP SIGNATURE-----

Gabriel Hondet wrote 6 years ago
closing bug#35549
(address . control@debbugs.gnu.org)
87tveay8c8.fsf@gmail.com
close 35549
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlzNQkcACgkQMbyBBfZZ
1CW7AQ//bnyRE1f75JKRoReOYx963pW29nsZ6njbZfXaGL1yS0pb116b/I0cAq37
ad8oClc47iVDRk4p71HBMnlVGbpwoQrw5xOA1m6C5pi8+oNAtmdhAhOwGK/4Ukn3
OnJUhRDOAQ3WCwq9CjIjFeiKpTL3kiSl9TYp9gg0Vgrghg8BEBB8CcJwyIbcjfVp
IwIFtinSSoDg3+qkmDr6MPHLh11sbbtWcTTKX5xX5dp2aw4AtZMOUAT5GEfVTD2m
eCKmqn9sqs4XFewjsK5WfjvEitcSwZzTcvqRUykCJFxe0VTWnV5qGhdFfOj1BYpK
xjqXGYYOP7y3gdy21/HGvE4ORvnneHTGn1BeU2SnD3hADdBxQdMm3e/9YeWUxYcN
ywwqGY3wVDCj4YUVXoHoNRqLd9QHbD6omECHJ6sKmoE4EMdyiv9DdzrUA7IFEW0A
bIxb8maIM36L1FSntVuC19/kVrPcoBpwIZsJ7yVqR8hvac77d4aJ3BQrtYsHabGF
JVtnuSa547l3NtrMDwsfTDLv17A80F3HLJ+rzGdYmvID7iwRyXO907X5A8PHpD2J
0k1IFPmSv8X+V42Jkl5b5OcFwl2ZlQ4Lnh4D6gcbTEwhOO31KBm+EcMqrSl43MAH
bDT9nxtaUxLCC6E9wdAXcuOYtFgMIQmnC2hrvkWuwD85xWgx3R4=
=D6+b
-----END PGP SIGNATURE-----

Ricardo Wurmus wrote 6 years ago
Re: bug#35549: dune failure
(name . Gabriel Hondet)(address . gabrielhondet@gmail.com)(address . 35549-done@debbugs.gnu.org)
8736luhd2c.fsf@elephly.net
Toggle quote (2 lines)
> I'm closing this.

Closing.

--
Ricardo
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 35549@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 35549
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch
You may also tag this issue. See list of standard tags. For example, to set the confirmed and easy tags
mumi command -t +confirmed -t +easy
Or, remove the moreinfo tag and set the help tag
mumi command -t -moreinfo -t +help