-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Long git directory name causes error C1083 when building coreclr tests (cl.exe) #110407
Comments
Tagging subscribers to this area: @hoyosjs |
Enabling long path support is listed under Windows requirements. Do you still encounter this error with long path enabled? It can be easily enabled with Dev Home. |
I do have long paths enabled:
|
I believe However, I didn't see where I was very close to MAX_PATH. Perhaps there was some artifacts\bin folders that have a longer path but not shown in the error message. |
I'm starting to see this too when building runtime tests locally after rebasing on main. It seems to be related to the new test added in #109806. I'm also not sure why that test needs to be compiled if I want to just build a separate particular runtime test |
I ended up using |
Another thing to try is to enable long paths in windows per
|
Having a long directory name causes issues when building the coreclr tests. I verified that long paths are enabled in both git and the registry.
Repro (Windows x64)
C:\git\ThisIsSomewhatOfaLongName
build -s clr+libs
(this works)src\tests\build.cmd /p:LibrariesConfiguration=Debug
(this fails with the error below)Error:
I did not attempt to diagnose the root cause but note that the path
C:\git\ThisIsSomewhatOfaLongName\src\tests\baseservices\exceptions\UnhandledExceptionHandler\ForeignThreadRevPInvokeUnhandled\ForeignThreadRevPInvokeUnhandledNative.cpp
is 169 characters, short of MAX_PATH (260).The text was updated successfully, but these errors were encountered: