-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Building Godot for web with LTO fails as of Emscripten 3.1.52 (works in 3.1.39) #87611
Comments
I can reproduce the issue with Emscripten 3.1.52 (latest), but not with 3.1.39 (the version we use currently for official builds and CI). So it's a recent change upstream that broke LTO (again...).
CC @adamscott |
Ok this fixed that error but here is the next one:
This doesn't seem to have anything to do with my local llvm version which is Edit: Maybe this is because I tried to compile the 4.2.1 version (I'll try this again) |
You need to recompile stuff after changing version, wipe the output files |
I re-cloned the repository and it fixed that issue (probably only a single directory was needed but I couldn't find it) |
The lto cache is located in your Edit: wait, it doesn't work. |
Ok, I figured out on how to fix this error obtained when downgrading
|
So, I bisected emscripten versions and it's possible to compile Godot up to emscripten 3.1.46. I'm investigating why it changed in 3.1.47. |
Relates to godotengine/godot-docs#8589. |
Tested versions
System information
Ubuntu server 22 LTS
Issue description
When trying to compile godot from source for web with lto (emcc was activated and in PATH)
the project compiles fine till the linking step where em++ throws a massive error:
Also regular compiling without the LTO flag works without a problem
Steps to reproduce
Minimal reproduction project (MRP)
...
The text was updated successfully, but these errors were encountered: