-
Notifications
You must be signed in to change notification settings - Fork 201
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
[dev] Build on windows fails due to UFE_TEST.util command being too long #116
Comments
Huh!! What is this |
Apparently introduced in this commit: |
Or possibly this one, not sure: |
Failure message looks like this (trimmed):
|
I honestly can't find this file. It looks like it's in the build folder...but this is what I have: |
I am on Windows 10 and same as Krystian can't find this file anywhere on my machine. Also, mayaUsd_copyDirectory and mayaUsd_copyFiles are the utility functions that handle copying UFE resources ( e.g *.maya, *.usda, *.py ,etc...) in the |
How are you running the builld? Thru some docker or other shell? In my utility.bat it is just calling cmake.exe directly. But from your trimmed error line it is calling cmd.exe to then call cmake.exe. Here on Windows we would just run the build thru a normal Windows command prompt. |
I also don't have a UFE_TEST.util on disk - the build dir:
...is actually empty for me. So either it's something that automatically gets cleaned up, or a target that failed to build, or a dummy target that doesn't actually correspond to a file on disk (which is my guess). I'm building on Windows 10 Pro, 1903, 18362.418. I'm building directly from a windows shell, from which I manually invoke a Visual Studio
I build using your provided python build.py, not via invoking cmake directly. I don't have a utility.bat - I think the command that fails is the one that would be in charge of making that UFE_TEST.dir folder (which includes the afore-mentioned utility.bat). |
O.K thanks for the info. I have the same setup as yours. I will have a look into this later today. Very strange indeed! |
Interesting that stamp file doesn't created for you under test\lib\ufe\CMakeFiles Here is what I get in that directory: generate.stamp generate.stamp.depend
Could be it related to Ninja generator? I realized I have been using VS generator for a while on Windows. Let me switch to Ninja and see If I can reproduce the problem. |
That's it! Now I don't see the stamp files generated anymore and it looks like Ninja now creates this Here is the content of |
Well, I just built recently on windows, and didn't see this pop up, so it's either been fixed or can't be reproduced. Closing. |
It seems that UFE_TEST.util just calls cmd.exe with a massive "&&" join of a bunch of tests, which results in the command being over the 8192 char limit for me, with my dir structure. (Which isn't even all that long, to be honest:
D:\Projects\Dev\USD\maya-usd
).This command needs to break this up into multiple commands to run (ideally, in parallel!), to avoid this issue.
The text was updated successfully, but these errors were encountered: