First time trying to compile godot with Mingw

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

Following the documentation:

Error when trying to compile godot in windows 10, after the line:
[Initial build] Linking Program ==> bin\godot.windows.tools.64.exe
ends with this error:

b"modules\\libmodule_visual_script.windows.tools.64.a(visual_script.windows.tools.64.o):visual_script.cpp:(.text$_ZTWN6Thread9caller_idE[_ZTWN6Thread9caller_idE]+0x15): relocation truncated to fit: IMAGE_REL_AMD64_REL32 against undefined symbol `TLS init function for Thread::caller_id'\r\ncollect2.exe: error: ld returned 1 exit status\n"

scons: *** [bin\godot.windows.tools.64.exe] Error 1
scons: building terminated because of errors.

c:\godot>

The command that I use to compile:
c:\godot>scons -j4 platform=windows

The compiler:
Win64 GCC 10.2.0 + LLVM/Clang/LLD/LLDB 11.0.0 + MinGW-w64 8.0.0 - release 8 (LATEST)

I tried another compiler earlier but it was bugging the vulcan libraries. With this error I don’t know what to do. I would like to compile it without using visual studio.