-
-
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
Embedded PCK option gives error messages with templates built using LTO. #35590
Comments
Does this occur if you compile a Windows binary using MSVC, but without LTO? What about a binary compiled with MinGW and LTO? |
I guess LTO is removing the |
@Calinou Yes, fine without LTO. Isolated it at least to that. Haven't had done much with MinGW, so it isn't set up at the moment. Will take a look next chance I get. |
@Calinou No luck with a clean build. I assume I have something mis-configured, unless someone can confirm otherwise. Unfortunately this is a far I can go with it. |
Can anyone still reproduce this bug in Godot 3.2.3 or any later release? |
As a workaround, you can compile a Windows export template with the icon at |
This is exactly what happens here. |
Godot version:
689db68
MSVC platform=windows bits=32 target=release tools=no use_lto=yes
OS/device including version:
Win10 64-bit Editor / 32-bit Release
Issue description:
Tried using the export with embedded PCK option with a template that I compiled with LTO using MSVC.
Got this message.
Traced to:
godot/editor/editor_export.cpp
Lines 1594 to 1597 in be1bc53
Then debugged it to a loop where it cannot find what it's looking for:
godot/platform/windows/export/export.cpp
Lines 410 to 438 in be1bc53
Oddly the executable still runs, but I'm very paranoid about it. It does build fine with external PCK.
@RandomShaper Is it expected not to use LTO when using this feature, or is there something extra that can be done to allow for it? I imagine LTO can arbitrarily shuffle things around. Or is this maybe a false error?
Steps to reproduce:
Use an export template built with MSVC on Windows using LTO flag.
Additionally had these warnings during the LTO phase when building it, though they don't look relevant. (Including for completeness)
Minimal reproduction project:
I have included the build template in this project for expedience.
SHA256: E6F8423029B2598F5F262B461EB47BB12A28856587A2A68831372ECD1F996448
Export Embedded PCK Issue.zip
The text was updated successfully, but these errors were encountered: