-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Attempting to build the same project with LDC 1.25.1 vs 1.26.0-beta1 results in a linker error #3700
Comments
Hi,
Yes, most likely the 6 additional |
Ouch. Let me do some more testing on this. I googled, and there's a registry value https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/ I went to set this value to So it can't be that 🤔 Let me try to build some other programs, or see if I can somehow narrow down what is causing this. Thank you for all your hard work, it's much appreciated =) |
Ah, once you mentioned the {
"dflags": ["-linker=lld-link"],
} Problem gone. Superior LLVM toolchain saves the day -- I'm not sure if I would consider it solved ha, but it's not longer a problem at least 👍 |
I've hit this again (with a path significantly shorter than 260 chars); |
With dlang/dub#2144 and #3756, the bundled dub now supports paths up to 260 chars (absolute, normalized), independent from the current working directory when invoking dub. I expect this to fix almost all cases. As the MS linker doesn't support longer paths, we cannot do anything from the LDC side - we already have |
The strange thing is that the file it says doesn't exist, actually does, and there are no permissions issues.
Maybe a problem with the length of the directory name in total?
1.25.1
1.26.0-beta1
Here's a video of me deleting the
dub
packages appdata folder and rebuilding, and showing that the file does indeed exist where it says it doesn't (both withls
and visually):ZZs1va5j36.mp4
Hope this is useful -- thank you! =)
The text was updated successfully, but these errors were encountered: