From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#34620: opam fails Date: Fri, 22 Feb 2019 22:41:35 +0100 Message-ID: <338B07A5-8A13-4526-BC9F-B9A38E7C899E@lepiller.eu> References: <87ef7z1r0q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58001) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxIa4-0007wt-PR for bug-guix@gnu.org; Fri, 22 Feb 2019 16:42:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxIa2-0002fe-RO for bug-guix@gnu.org; Fri, 22 Feb 2019 16:42:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35084) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxIa2-0002eD-AQ for bug-guix@gnu.org; Fri, 22 Feb 2019 16:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxIa2-0007sK-7V for bug-guix@gnu.org; Fri, 22 Feb 2019 16:42:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87ef7z1r0q.fsf@gmail.com> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Gabriel Hondet , 34620@debbugs.gnu.org Le 22 f=C3=A9vrier 2019 21:56:21 GMT+01:00, Gabriel Hondet a =C3=A9crit : >Hi, > >When I try to use opam, it fails: > >$ opam install menhir > >#=3D=3D=3D ERROR while compiling ocaml-system=2E4=2E07=2E1 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D# ># context 2=2E0=2E1 | linux/x86_64 | | https://opam=2Eocaml=2Eorg#34= f81c06 ># path ~/=2Eopam/default/=2Eopam-switch/build/ocaml-system=2E4=2E0= 7=2E1 ># command ~/=2Eopam/opam-init/hooks/sandbox=2Esh build ocaml >gen_ocaml_config=2Eml ># exit-code 1 ># env-file ~/=2Eopam/log/ocaml-system-12254-60459a=2Eenv ># output-file ~/=2Eopam/log/ocaml-system-12254-60459a=2Eout >### output ### ># bwrap: execvp ocaml: No such file or directory > >and if I do (in fish) >$ set -x OPAM_USER_PATH_RO /home/gabriel/=2Eguix-profile/bin/ > >then I obtain the error: > >$ opam install menhir > >#=3D=3D=3D ERROR while compiling ocaml-system=2E4=2E07=2E1 >=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D# ># context 2=2E0=2E1 | linux/x86_64 | | https://opam=2Eocaml=2Eorg#34= f81c06 ># path ~/=2Eopam/default/=2Eopam-switch/build/ocaml-system=2E4=2E0= 7=2E1 ># command ~/=2Eopam/opam-init/hooks/sandbox=2Esh build ocaml >gen_ocaml_config=2Eml ># exit-code 1 ># env-file ~/=2Eopam/log/ocaml-system-13887-6cc03f=2Eenv ># output-file ~/=2Eopam/log/ocaml-system-13887-6cc03f=2Eout >### output ### ># bwrap: Can't mkdir parents for /home/gabriel/=2Eguix-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 wi= th the ocaml compiler=2E Don't you have a compiler in your switch already t= hough? If so, I wonder why it's not found=2E Could you try to modify your $= PATH to add it?