You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A few months ago I successfully built a project using cosmocc, the cmd sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop' worked perfectly. Recently, I went back to work on my project and ran the cmd and started compiling using cosmocc:
error: APE is running on WIN32 within WSL. You need to run: sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'
/home/a2va/.xmake/packages/c/cosmocc/3.8.0/e1d439f0244640a385d7c5f778ff6aa8/bin/cosmocc: 517: Could not create : Directory does not exist
Error: APE is running on WIN32 within WSL. You need to run: sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'.
Error: APE is running on WIN32 within WSL. You need to run: sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'.
cosmocc: x86_64 succeeded, but aarch64 failed to build object
cat: '': No such file or directory
I ran the cmd again just to be sure, and this time
a2va@DESKTOP-PMEQPIR:~/xmake/core$ sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'
sh: 1: Failed to create /proc/sys/fs/binfmt_misc/WSLInterop: Permission denied
The only thing I know that I changed between the first and second time is that I enabled systemd for WSL.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A few months ago I successfully built a project using cosmocc, the cmd
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/WSLInterop'
worked perfectly. Recently, I went back to work on my project and ran the cmd and started compiling using cosmocc:I ran the cmd again just to be sure, and this time
The only thing I know that I changed between the first and second time is that I enabled systemd for WSL.
Beta Was this translation helpful? Give feedback.
All reactions