unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: Gabriel Hondet <gabrielhondet@gmail.com>, 34620@debbugs.gnu.org
Subject: bug#34620: opam fails
Date: Fri, 22 Feb 2019 22:41:35 +0100	[thread overview]
Message-ID: <338B07A5-8A13-4526-BC9F-B9A38E7C899E@lepiller.eu> (raw)
In-Reply-To: <87ef7z1r0q.fsf@gmail.com>

Le 22 février 2019 21:56:21 GMT+01:00, Gabriel Hondet <gabrielhondet@gmail.com> a écrit :
>Hi,
>
>When I try to use opam, it fails:
>
>$ 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
>
>Any idea on how to fix this?
>
>Thanks,
>Gabriel

That's thc limit of opam here, it always tries to install ocaml package with the ocaml compiler. Don't you have a compiler in your switch already though? If so, I wonder why it's not found. Could you try to modify your $PATH to add it?

  reply	other threads:[~2019-02-22 21:42 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 [this message]
     [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 ` bug#34620: 'opam install menhir' fails Simon Tournier

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=338B07A5-8A13-4526-BC9F-B9A38E7C899E@lepiller.eu \
    --to=julien@lepiller.eu \
    --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 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).