all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Simon Tournier <zimon.toutoune@gmail.com>
To: Gabriel Hondet <gabrielhondet@gmail.com>
Cc: 34620@debbugs.gnu.org
Subject: bug#34620: 'opam install menhir' fails
Date: Wed, 11 Oct 2023 10:58:21 +0200	[thread overview]
Message-ID: <86pm1llemq.fsf@gmail.com> (raw)
In-Reply-To: <87ef7z1r0q.fsf@gmail.com> (Gabriel Hondet's message of "Fri, 22 Feb 2019 21:56:21 +0100")

Hi,

Digging some old bugs about OCaml, I hit #34620:

    https://issues.guix.gnu.org/issue/34620

On Fri, 22 Feb 2019 at 21:56, Gabriel Hondet <gabrielhondet@gmail.com> wrote:

> $ opam install menhir
>
> #=== ERROR while compiling ocaml-system.4.07.1 ================================#
> # context     2.0.1 | linux/x86_64 |  | https://opam.ocaml.org#34f81c06
> # path        ~/.opam/default/.opam-switch/build/ocaml-system.4.07.1
> # command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml gen_ocaml_config.ml
> # exit-code   1
> # env-file    ~/.opam/log/ocaml-system-12254-60459a.env
> # output-file ~/.opam/log/ocaml-system-12254-60459a.out
> ### output ###
> # bwrap: execvp ocaml: No such file or directory
>
> and if I do (in fish)
> $ set -x OPAM_USER_PATH_RO /home/gabriel/.guix-profile/bin/
>
> then I obtain the error:
>
> $ opam install menhir
>
> #=== ERROR while compiling ocaml-system.4.07.1 ================================#
> # context     2.0.1 | linux/x86_64 |  | https://opam.ocaml.org#34f81c06
> # path        ~/.opam/default/.opam-switch/build/ocaml-system.4.07.1
> # command     ~/.opam/opam-init/hooks/sandbox.sh build ocaml gen_ocaml_config.ml
> # exit-code   1
> # env-file    ~/.opam/log/ocaml-system-13887-6cc03f.env
> # output-file ~/.opam/log/ocaml-system-13887-6cc03f.out
> ### output ###
> # bwrap: Can't mkdir parents for /home/gabriel/.guix-profile/bin/: No such file or directory

Today, using Guix 6113e05, I get:

--8<---------------cut here---------------start------------->8---
$ which opam
/home/simon/.config/guix/profiles/compiler/compiler/bin/opam

$ opam install menhir
The following actions will be performed:
  ↻ recompile ocamlfind         1.9.5    [upstream or system changes]
  ↻ recompile dune              3.6.1    [upstream or system changes]
  ∗ install   menhirSdk         20230608 [required by menhir]
  ∗ install   menhirLib         20230608 [required by menhir]
  ↻ recompile csexp             1.5.1    [uses dune]
  ↻ recompile cppo              1.6.9    [uses dune]
  ∗ install   menhir            20230608
  ↻ recompile merlin-lib        4.7-414  [uses dune]
  ↻ recompile yojson            2.0.2    [uses dune]
  ↻ recompile dot-merlin-reader 4.6      [upstream or system changes]
  ↻ recompile merlin            4.7-414  [uses dot-merlin-reader, dune]
===== ∗ 3   ↻ 8 =====
Do you want to continue? [Y/n] Y
Y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved cppo.1.6.9  (cached)
⬇ retrieved csexp.1.5.1  (cached)
⬇ retrieved dot-merlin-reader.4.6  (cached)
⬇ retrieved dune.3.6.1  (cached)
⬇ retrieved menhir.20230608  (https://opam.ocaml.org/cache)
⬇ retrieved merlin.4.7-414  (cached)
⬇ retrieved merlin-lib.4.7-414  (cached)
⬇ retrieved ocamlfind.1.9.5  (cached)
⬇ retrieved yojson.2.0.2  (cached)
⬇ retrieved menhirLib.20230608  (https://opam.ocaml.org/cache)
[ERROR] The compilation of ocamlfind.1.9.5 failed at "make all".
⬇ retrieved menhirSdk.20230608  (https://opam.ocaml.org/cache)

#=== ERROR while compiling ocamlfind.1.9.5 ====================================#
# context     2.1.3 | linux/x86_64 | ocaml.4.14.0 | https://opam.ocaml.org#368128df
# path        ~/.opam/default/.opam-switch/build/ocamlfind.1.9.5
# command     ~/.opam/opam-init/hooks/sandbox.sh build make all
# exit-code   2
# env-file    ~/.opam/log/ocamlfind-218324-578149.env
# output-file ~/.opam/log/ocamlfind-218324-578149.out
### output ###
# [...]
# File "frontend.ml", line 859, characters 10-39:
# 859 |           Fl_package_base.package_users predicates1 packages1
#                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# Warning 6 [labels-omitted]: label preds was omitted in the application of this function.
# ocamlc -I +compiler-libs  -o ocamlfind -g findlib.cma unix.cma \
#            -I +unix -I +dynlink ocaml_args.cmo frontend.cmo
# File "_none_", line 1:
# Error: Error while linking /gnu/store/9pa7j2sdlzsvbxczbn1xmnycxaddzz0c-ocaml-5.0.0/lib/ocaml/unix/unix.cma(Unix):
#        The external function `caml_unix_waitpid' is not available
# make[1]: *** [Makefile:53: ocamlfind] Error 2
# make[1]: Leaving directory '/home/simon/.opam/default/.opam-switch/build/ocamlfind.1.9.5/src/findlib'
# make: *** [Makefile:14: all] Error 2


<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocamlfind 1.9.5
└─
╶─ No changes have been performed
# Run eval $(opam env) to update the current shell environment
--8<---------------cut here---------------end--------------->8---

Well, I think it is another kind of bug than the reported one.

Closing?

Cheers,
simon




      parent reply	other threads:[~2023-10-11 10:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-22 20:56 bug#34620: opam fails Gabriel Hondet
2019-02-22 21:41 ` Julien Lepiller
     [not found] ` <handler.34620.B.155086902325807.ack@debbugs.gnu.org>
2019-02-23 16:58   ` bug#34620: Acknowledgement (opam fails) Gabriel Hondet
2019-02-24  7:43     ` Gabriel Hondet
2019-02-24 10:15       ` Julien Lepiller
2023-10-11  8:58 ` Simon Tournier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86pm1llemq.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=34620@debbugs.gnu.org \
    --cc=gabrielhondet@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.