-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
build ocaml-base-compiler fails on versions 4.02-4.08 (opam switch create . 4.06.1
)
#12050
Comments
opam switch create . 4.06.1
)
Can you run on verbose mode (-vv) and post the log? |
Can you please confirm if it's |
Yes! |
I didn't got more details unfortunately. But I have this new detail:
(I'm using different distributions WSL: ubuntu 16.04, ubuntu 18.05 and kali) |
|
The path was
it failed too on the github example:
Is it calling the kernel in some way ? I suspect because WSL has an incomplete kernel interface, it fails there.
|
Indeed, |
Thanks for the details, the solution and the warning. In my case, I built a safely an opam local repo from a VM and copied it to WSL. |
Looks like the issue has been fixed in an insider build, which means we'll eventually get it. |
This issue hasn't been fixed in WSL - for the foreseeable, sandboxing will need to remain disabled. |
If it's not fixed in insider build, can a developer explain what would be needed, so we create a feature request to MSFT ? |
It depends of the error cause. If it is a mount propagation flag error, it should have been fixed.
A bubblewrap developer would be more relevant for the feature request. Maybe opening an issue on their tracker? |
Done: bubblewrap#272 |
thanks! |
The feature request is still open, it's just a question of waiting. microsoft/WSL#2911 just notes a blocking feature for bubblewrap is now implemented, but more remain. |
This issue is stale because it has been open 90 days with no activity. Remove the stale label, or comment, or this will be closed in 15 days. |
It looks like it's been almost two years now ... Is there a resolution besides disabling sandboxing? |
Theorically speaking, with WSL2 implementing a full kernel, its should not be an issue, and WSL very likely will fail forever. Few tests should assert this. |
I works now ow WSL2. With WSL1, sandboxing need to be disabled at init. See also related issue ocaml/opam#4089. |
I found that disabling sandboxing was still required for WSL2, Ubuntu 20.04. |
@AndrewPardoe - are you sure the distro was running WSL2 (check |
user_namespaces issue cat /proc/sys/user/max_user_namespaces grubby --args="user_namespace.enable=1" --update-kernel="$(grubby --default-kernel)"echo "user.max_user_namespaces=10000" >> /etc/sysctl.confreboot cat /proc/sys/user/max_user_namespaces |
I'm using opam 2.0.0~rc2 and for
opam switch create . 4.06.1
I got:How to resolve this ?
The text was updated successfully, but these errors were encountered: