Tring to compile mingws version but scons searching for wrong file .o (while that does not exist)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By slugcharm

C:\godot>scons platform=windows -j6 use_lto=yes use_mingw=yes target=release bits=64 tools=no

scons: Reading SConscript files …
scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File “C:\godot\SConstruct”, line 3, in
Configuring for Windows: target=release, bits=64
Using MinGW
Couldn’t parse CXX environment variable to infer compiler version.
Couldn’t detect compiler version, skipping version checks. Build may fail if the compiler doesn’t support C++17 fully.
Checking for C header file mntent.h… (cached) no
scons: done reading SConscript files.
scons: Building targets …
[Initial build] ←[94mCompiling ←[95m==> ←[93mplatform\windows\godot_windows.cpp←[0m
[Initial build] ←[94mCompiling ←[95m==> ←[93mplatform\windows\crash_handler_windows.cpp←[0m
[Initial build] Building RD_GLSL header: “servers\rendering\renderer_rd\shaders\cubemap_downsampler.glsl.gen.h”
[Initial build] Building RD_GLSL header: “servers\rendering\renderer_rd\shaders\cubemap_downsampler_raster.glsl.gen.h”
[Initial build] Building RD_GLSL header: “servers\rendering\renderer_rd\shaders\cubemap_filter.glsl.gen.h”
[Initial build] scons: *** [platform\windows\godot_windows.windows.opt.64.o] Le fichier spécifié est introuvable
Building RD_GLSL header: “servers\rendering\renderer_rd\shaders\cubemap_filter_raster.glsl.gen.h”
scons: *** [platform\windows\crash_handler_windows.windows.opt.64.o] Le fichier spécifié est introuvable
scons: building terminated because of errors.
[Time elapsed: 00:00:00.953]

Scons create the “godot_windows.opt64.o” enpty file to fill it file but instead scons is searching for the wrong file : “godot_windows.windows.opt.64.o” that does not exist.

How can we chage that ?