-
Notifications
You must be signed in to change notification settings - Fork 836
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
Mounted filesystem issue on Debian WSL when running CMake #4257
Comments
+1 thanks for CLI repro steps. If you link a gist to the I wasn't actually able to reproduce the problem here (no errors on first run) on my
The "Actual output" part of your OP doesn't have a "Cannot copy output executable" cited earlier. Those kinds of copy fails are often acute #1529, but the failure pattern doesn't match very well here. There is no indication the reason the copy failed was One thing to try first if you've got a win32 (Windows)
But that's a WAG.
That's how I'd roll. |
Thanks for the quick reply! I made the gist with strace and CMake logs if you'd like to take a look. Also, the CMakeError.log contains the "Cannot copy output executable" message I mentioned, apologies for not making that clear. I don't see any
Perhaps this is causing CMake to think the file copy failed? It's strange though because I don't see this error on my Ubuntu instance of WSL. I only see the issue when running Debian (I have Debian 9.9 installed). Laundering the path doesn't seem to work for me unfortunately. In general I'd agree the easiest solution is to just move the project under the root filesystem. However, for Visual Studio integration with WSL we need to have access from the Windows side so the project files have to be on the mounted filesystem. |
[mass edit: do-over post to check something before making possibly false assumptions] That To enable metadata on your /mnt/c add this to
Note that change doesn't take right away.
|
Enabling metadata seems to have fixed it, thanks! |
This happened to me when I moved WSL from disk C to disk D. |
Your Windows build number: Microsoft Windows [Version 10.0.18362.175]
WSL kernel info (uname -a): Linux SAFREED-DESKTOP 4.4.0-18362-Microsoft Will this be Open Source? #1-Microsoft Mon Mar 18 12:02:00 PST 2019 x86_64 GNU/Linux
What you're doing and what's happening: I have a simple CMake project on the mounted fileystem (under /mnt) which fails to configure when run the first time with this error message:
The strange part is the files that 'fail' to copy are actually being copied, so the next time CMake is run it completes without errors. Also, if I copy the project to the root filesystem instead (under $HOME) there are no issues. I verified this only repros when using Debian under WSL (Ubuntu is fine and Debian running under HyperV is fine).
Repro steps:
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: