And this is config.log with the alloca.h error
Command line: -static -release -platform win32-g++ -opensource -confirm-license -prefix C:\Qt\Static\5.15.2 -qt-zlib -qt-libpng -qt-webp -qt-libjpeg -qt-freetype -openssl-linked -no-opengl -skip qt3d -skip doc -skip webengine -skip qtactiveqt -skip qtandroidextras -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtlocation -skip qtlottie -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquick3d -skip qtquickcontrols -skip qtquickcontrols2 -skip qtquicktimeline -skip qtremoteobjects -skip qtscript -skip qtsensors -skip qtspeech -skip qtsvg -skip qtwayland -skip qtwebglplugin -skip qtwebview -skip webengine -make libs -nomake tools -nomake examples -nomake tests
loaded result for config test config.qtbase.tests.verifyspec
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\verifyspec && C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" C:/Qt/Static/src/qt-everywhere-src-5.15.2/qtbase/config.tests/verifyspec
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\verifyspec && set MAKEFLAGS=& mingw32-make
> g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_STATIC_BUILD -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\verifyspec -I. -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\mkspecs\win32-g++ -o verifyspec.o C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\verifyspec\verifyspec.cpp
> g++ -static -static-libgcc -Wl,-s -Wl,-subsystem,console -mthreads -o verifyspec.exe verifyspec.o
test config.qtbase.tests.verifyspec succeeded
loaded result for config test config.qtbase.tests.architecture
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\arch && C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" C:/Qt/Static/src/qt-everywhere-src-5.15.2/qtbase/config.tests/arch
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\arch && set MAKEFLAGS=& mingw32-make
> g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_STATIC_BUILD -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\arch -I. -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\mkspecs\win32-g++ -o arch.o C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\arch\arch.cpp
> g++ -static -static-libgcc -Wl,-s -Wl,-subsystem,console -mthreads -o arch.exe arch.o
Detected architecture: x86_64 (cx16 mmx sse sse2 sse3)
test config.qtbase.tests.architecture gave result x86_64
loaded result for config test config.qtbase.tests.sse2
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\x86_simd && C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "CONFIG+=add_cflags" "DEFINES+=NO_ATTRIBUTE" "SIMD=sse2" C:/Qt/Static/src/qt-everywhere-src-5.15.2/qtbase/config.tests/x86_simd
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\x86_simd && set MAKEFLAGS=& mingw32-make
> g++ -c -fno-keep-inline-dllexport -msse2 -mstackrealign -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_STATIC_BUILD -DNO_ATTRIBUTE -DQT_COMPILER_SUPPORTS_SSE2 -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\x86_simd -I. -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\mkspecs\win32-g++ -o main.o C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\x86_simd\main.cpp
> g++ -static -static-libgcc -Wl,-s -Wl,-subsystem,console -mthreads -o x86_simd.exe main.o
test config.qtbase.tests.sse2 succeeded
loaded result for config test config.qtbase.tests.aesni
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\x86_simd && C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" "CONFIG+=add_cflags" "DEFINES+=NO_ATTRIBUTE" "SIMD=aesni" C:/Qt/Static/src/qt-everywhere-src-5.15.2/qtbase/config.tests/x86_simd
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\x86_simd && set MAKEFLAGS=& mingw32-make clean && set MAKEFLAGS=& mingw32-make
> del main.o
> g++ -c -fno-keep-inline-dllexport -maes -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_STATIC_BUILD -DNO_ATTRIBUTE -DQT_COMPILER_SUPPORTS_AESNI -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\x86_simd -I. -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\mkspecs\win32-g++ -o main.o C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\config.tests\x86_simd\main.cpp
> g++ -static -static-libgcc -Wl,-s -Wl,-subsystem,console -mthreads -o x86_simd.exe main.o
test config.qtbase.tests.aesni succeeded
loaded result for config test config.qtbase.tests.alloca_h
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\alloca_h && C:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" C:/Qt/Static/src/qt-everywhere-src-5.15.2/config.tests/alloca_h
+ cd /d C:\Qt\Static\src\qt-everywhere-src-5.15.2\config.tests\alloca_h && set MAKEFLAGS=& mingw32-make
> g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_STATIC_BUILD -I. -IC:\Qt\Static\src\qt-everywhere-src-5.15.2\qtbase\mkspecs\win32-g++ -o main.o main.cpp
> main.cpp:2:10: fatal error: alloca.h: No such file or directory
> #include <alloca.h>
> ^~~~~~~~~~
> compilation terminated.