Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opam on Windows/WSL/Ubuntu fails with bwrap issue #3747

Closed
andrewjkennedy opened this issue Feb 11, 2019 · 1 comment
Closed

Opam on Windows/WSL/Ubuntu fails with bwrap issue #3747

andrewjkennedy opened this issue Feb 11, 2019 · 1 comment

Comments

@andrewjkennedy
Copy link

If I install (e.g. dune, but other packages are similar) on WSL running Ubuntu, I get

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of ocaml-base-compiler failed at "/home/akenn/.opam/opam-init/hooks/sandbox.sh build ./configure -prefix /home/akenn/.opam/default -with-debug-runtime".

#=== ERROR while compiling ocaml-base-compiler.4.07.1 =========================#
# context     2.0.3 | linux/x86_64 |  | https://opam.ocaml.org#dc8e74d5
# path        ~/.opam/default/.opam-switch/build/ocaml-base-compiler.4.07.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build ./configure -prefix /home/akenn/.opam/default -with-debug-runtime
# exit-code   1
# env-file    ~/.opam/log/ocaml-base-compiler-9658-c61e7b.env
# output-file ~/.opam/log/ocaml-base-compiler-9658-c61e7b.out
### output ###
# bwrap: Creating new namespace failed, likely because the kernel does not support user namespaces.  bwrap must be installed setuid on such systems.

The issue seems to be with bwrap.

@rjbou
Copy link
Collaborator

rjbou commented Feb 11, 2019

bwrap is not supported by WSL. You can find more information in these issues #3505 and ocaml/opam-repository#12050, and especially on how to be able to use opam in this cases in this comment ocaml/opam-repository#12050 (comment).
I close this issue as it is duplicated. Thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants