-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
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
Compile android template error on Windows #6844
Comments
Does it still happen if you delete |
trying again after removing *.o and *.a |
Also remove |
oh. I didn't know that. trying it again. |
pretty much same result... :( |
Can you attach the whole log and the |
|
I can confirm this. I wonder why this has no problem on Linux but fails on Windows. Is something defined that depends on the host platform? |
I don't know of any platform-specific configuration at play here, so I guess we might be facing the infamous "Windows shell can't handle long lines properly" bug... |
This seems to be some name-mangling issue, but I have yet to pinpoint the cause. |
Any workaround? |
I'm having the same issue. I've checked the command lines I expect to be the longest as they are being received by the different processes (collect2, ld, etc.) with a monitoring tool and them all seem complete, so that couldn't be the problem. Finally I've cleaned my working copy by running |
I've rechecked and I can confirm that the worst case (putting together the modules library) is handled nicely by SCons by splitting the arguments intended for ar into multiple calls for each of the 1,016 (!) needed object files. |
The error is on the final linking phase, which has much less arguments than some other parts of the build. I don't think this has any relation to the "number of arguments" problem. It's related to name mangling AFAICT, but I still don't know why it fails only with the Windows compiler. |
I was hoping #6958 would make things work again, but the librarian and the linker are still GCC's so no luck yet. |
@akien-mga, your intuition was right. The SCons workaround for the limited command line length made this fail. Hope it's solved with the PR. |
Operating system or device - Godot version:
Windows 10, scons 2.4.1, MSVC 14, 8913222
Issue description (what happened, and what was expected):
Compiling for windows tool and templates are fine.
Steps to reproduce:
scons -j 4 platform=android colored=yes tools=no target=release_debug
Link to minimal example project (optional but very welcome):
The text was updated successfully, but these errors were encountered: