scons: *** [src\godot.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [src\classes\editor_plugin_registration.windows.template_debug.x86_64.o] The system cannot find the file specified
When running scons platform=windows on the godot-cpp repo I get this error. Does anyone know how to resolve this? Am I missing a step? I’ve tried going through the docs and following tutorials but can’t get past this step. I’ll share the full output and process below.
Output:
MINGW64 ~/OneDrive/Documents/test-project/addons/godot-cpp ((godot-4.4.1-stable))
$ scons platform=windows -j12
scons: Reading SConscript files ...
Building for architecture x86_64 on platform windows
scons: done reading SConscript files.
scons: Building targets ...
Compiling src\godot.cpp ...
Compiling src\classes\editor_plugin_registration.cpp ...
scons: *** [src\godot.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: *** [src\classes\editor_plugin_registration.windows.template_debug.x86_64.o] The system cannot find the file specified
scons: building terminated because of errors.
I’m having the same problem. The project used to work, but for some time already I’m unable to compile it on Windows with the same error as you when using LLVM and scons platform=windows use_llvm=yes use_mingw=yes.
After playing around checking out old commits, deleting .sconsign.dblite and some other steps, I was able to compile the project without any changes to source, really lost now ¯\_(ツ)_/¯
I am still unable to open the project, and getting crashes with signal 11, and then what I assume would be stacktrace but is a bunch of statements about missing debug info. Even checking out an old commit of the project and making a clean build didn’t help, I’m still stuck. The same result happens on a different Windows machine with fresh install of everything (Godot, Python, scons, LLVM)
================================================================
CrashHandlerException: Program crashed with signal 11
Engine version: Godot Engine v4.4.stable.official (4c311cbee68c0b66ff8ebb8b0defdd9979dd2a41)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
================================================================
Surprisingly the same project works without issues on Linux - I used to develop it on both OSes. Same with another Linux machine.
I have found out this is definitely not a problem of my sources checked into Git, because I found another Windows system on which I used to develop the project originally. Must be something about the setup because every commit builds and opens correctly there.