-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
git-dependency testcase is broken on Windows #2443
Comments
Perhaps this happened because the length of the path exceeded MAX_PATH(260)? |
I am suspicious of the following line: dub/source/dub/generators/build.d Line 242 in 32985ea
On Windows, if MAX_PATH(260) is exceeded, it is determined that writing is not possible and falling back to direct build in the system's temp folder. There are three solutions to this problem:
In the short term, 1 may need to be fixed, but in the long term, I would prefer to fix 2 or 3. |
Thanks for the great writeup!
Likely, although I'm not sure why you mentioned the VS Linker is unsupported ? Also, 2 is definitely the way to go. |
The following commands cannot be linked cause of the path length: R:\>"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX64\x64\link.exe" /NOLOGO "R:\abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij\abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij\abcdefghijabcdefghijabcdefghijabcdefghijababcdefghij\main.obj" /DEFAULTLIB:phobos64.lib /LIBPATH:"P:\app\dmd\lib64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\lib\x64" legacy_stdio_definitions.lib /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64"
LINK : fatal error LNK1181: 入力ファイル '.obj' を開けません。 R:\abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij\abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghij\abcdefghijabcdefghijabcdefghijabcdefghijababcdefghij>"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\bin\HostX64\x64\link.exe" /NOLOGO "main.obj" /DEFAULTLIB:phobos64.lib /LIBPATH:"P:\app\dmd\lib64" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.22.27905\lib\x64" legacy_stdio_definitions.lib /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.18362.0\ucrt\x64" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\lib\10.0.18362.0\um\x64"
LINK : fatal error LNK1181: 入力ファイル 'main.obj' を開けません。 I haven't tried newer versions or lld-link, but at least the 2019 link.exe doesn't appear to work. |
fixed by #2589 |
System information
Bug Description
test/git-dependency
is not work on Windows after #2386This problem occurs only on Windows. The contents of
test/git-dependency
test case show that it can be built on Windows.It is also a regression, as it builds successfully on past versions.
The point at which the problem occurred was tracked down by git bisect.
How to reproduce?
Expected Behavior
Successful builds, even on Windows
Logs
Log
Log before #2386
Log on linux(ubuntu)
Logs have been partially processed.
The text was updated successfully, but these errors were encountered: