-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Compiling Godot web export template with LTO fails with Emscripten 3.1.42+ #80010
Comments
whoops, closed accidentaly. |
Official builds are made with Emscripten 3.1.18. Newer versions often cause breaking regressions, so this might be the case too. Could you test with 3.1.18 and see if that solves it? |
@akien-mga, yes, using 3.1.18 solves it. I've checked and the latest version that still works is 3.1.36. |
The issue is also present in Godot 4. Last working Emscripten version is also 3.1.36 |
This seems to be an upstream bug, see: |
That's the last working version for LTO builds based on godotengine#80010, but aside from this we should be able to upgrade.
For the record, I can confirm the issue is still reproducible with latest Emscripten 3.1.45. Tested build with
Full build log: |
I tried to confirm this and got different results, for me all versions up to 3.1.41 are working fine. Did you test specifically that 3.1.37 and later weren't working? Are you sure it was the same error? |
We can probably try to define I'll have a look at this after finalizing #80719 which refactors the compiler version detection, so this can be done cleanly. |
Fixes godotengine#80010. (cherry picked from commit b064008)
Fixes godotengine#80010. (cherry picked from commit b064008)
Fixes godotengine#80010. (cherry picked from commit b064008)
Godot version
3.5.2
System information
AMD EPYC 7B13; 32 GB RAM
Ubuntu 22.04.2 LTS; Python 3.11.1; Emscripten 3.1.44; clang 17; Scons 4.0.1
Issue description
Compiling with LTO gives this error:
Steps to reproduce
scons platform=javascript tools=no target=release use_lto=yes
Does anyone else have this issue?
Is it something related to a newer version of Emscripten? Python? Scons?
I did not have this issue before. I am using a fresh build setup.
The text was updated successfully, but these errors were encountered: