godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
90.82k stars 21.14k forks source link

Compilation Failing on Windows #97815

Open Swarkin opened 1 month ago

Swarkin commented 1 month ago

Tested versions

master f032af74536b317b23c7fca3bc7318ced5537344

System information

Windows 11 - Intel i5 9600k

Issue description

Compilation randomy fails after a while:

[...}
Compiling scene\gui\box_container.cpp ...
Compiling scene\gui\button.cpp ...
Compiling scene\gui\center_container.cpp ...
Compiling scene\gui\check_box.cpp ...
editor\editor.windows.editor.x86_64.lib : fatal error LNK1248: image size (100764120) exceeds maximum allowable size (FFFFFFFF)
Compiling scene\gui\check_button.cpp ...
Compiling scene\gui\code_edit.cpp ...
Compiling scene\gui\color_mode.cpp ...
Compiling scene\gui\color_picker.cpp ...
Compiling scene\gui\color_rect.cpp ...
Compiling scene\gui\container.cpp ...
scons: *** [editor\editor.windows.editor.x86_64.lib] Error 1248
scons: building terminated because of errors.
[Time elapsed: 00:08:12.40]

Steps to reproduce

clone godot scons p=windows arch=x86_64 production=yes lto=full target=editor optimize=speed deprecated=no

Minimal reproduction project (MRP)

-

matheusmdx commented 1 month ago

Bisecting points to #93311 as the culprit, @dsnopek

image

smix8 commented 1 month ago

It is the lto=full causing the Error 1248. Builds fine with other build options that dont use lto.

Swarkin commented 1 week ago

Still relevant