-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Can no longer build on Windows due to paths being too long #46113
Comments
What command are you running, and what is the |
In this case, [build]
build = "x86_64-pc-windows-msvc"
host = ["x86_64-pc-windows-msvc"]
target = ["x86_64-pc-windows-msvc"]
I'm guessing it's because this is my first build after #45905 landed. I also did an |
which has exactly 261 characters. (The question is why is such a deep hierarchy is created in the first place...) @steveklabnik Try to rename |
Yes, that is working. Sigh. So, I guess the question is, what should we actually do here? |
Our path limits change from time to time, often requiring shorter and shorter prefixes. Eventually we won't have to deal with this at all as we won't be building binaryen but in the meantime I think the only recourse is to use a shorter prefix (e.g I personally use |
Seems fine then, let's just leave it. Hopefully my muscle memory will adjust, heh. |
Is it possible to get rid of the 260-char limit in rustbuild through those |
This is really annoying 😞 Here's the relevant MSBuild issue: dotnet/msbuild#53 Somebody else found a "workaround" for this issue: http://conanio.readthedocs.io/en/latest/reference/conanfile/attributes.html?highlight=short_paths#short-paths It involves creating a temporary link from the drive root the build folder and invoking msbuild from there. Presumably something similar could be done here? |
Also, can we keep this issue open? Given that pretty much everyone who tries to build rust on windows is likely to hit it, it seems pretty important and should be easily discover-able. |
Why is the Emscripten backend even being built if I have this in my [rust]
codegen-backends = ["llvm"] |
Binaryen has since been removed, so closing. |
I am a little late but you can try
|
My rust checkout, as you can see, is in
C:\Users\steve\src
, which is pretty short.Any ideas on what to do here?
The text was updated successfully, but these errors were encountered: