MinGW C compiler “not able to compile a simple test program”

the logs from the command:

-- Building for: NMake Makefiles
-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Detecting C compiler ABI info
CMake Error: Generator: execution of make failed. Make command was: nmake /nologo cmTC_62407\fast &&
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: D:/c/mingw/bin/gcc.exe
CMake Error: Generator: execution of make failed. Make command was: nmake /nologo cmTC_bcf19\fast &&
-- Check for working C compiler: D:/c/mingw/bin/gcc.exe - broken
CMake Error at D:/c/cmake-3.19.0-win64-x64/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
  The C compiler

    "D:/c/mingw/bin/gcc.exe"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: D:/CmakeTest/build/CMakeFiles/CMakeTmp

    Run Build Command(s):nmake /nologo cmTC_bcf19\fast && Le fichier spécifié est introuvable
    Generator: execution of make failed. Make command was: nmake /nologo cmTC_bcf19\fast &&




  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:5 (project)


-- Configuring incomplete, errors occurred!
See also "D:/CmakeTest/build/CMakeFiles/CMakeOutput.log".
See also "D:/CmakeTest/build/CMakeFiles/CMakeError.log".