CMakeOnly.CheckLanguage
command_line: D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe "-DTEST=CheckLanguage" "-P" "D:/a/nightly-builds/nightly-builds/build/Tests/CMakeOnly/Test.cmake"
working_directory: "./Tests/CMakeOnly"
Processors: 1
Execution Time: 14.355
Completion Status: Completed
Environment: #CTEST_RESOURCE_GROUP_COUNT=
Exit Value: 1
Exit Code: Failed
stdout:
-- Looking for a C compiler
-- Looking for a C compiler - C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe
-- The C compiler identification is MSVC 19.44.35209.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for a CXX compiler
-- Looking for a CXX compiler - C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe
-- The CXX compiler identification is MSVC 19.44.35209.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - C:/mingw64/bin/gfortran.exe
-- The Fortran compiler identification is GNU 14.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - failed
-- Check for working Fortran compiler: C:/mingw64/bin/gfortran.exe
-- Check for working Fortran compiler: C:/mingw64/bin/gfortran.exe - broken
CMake Error at D:/a/nightly-builds/nightly-builds/Modules/CMakeTestFortranCompiler.cmake:59 (message):
The Fortran compiler
"C:/mingw64/bin/gfortran.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: 'D:/a/nightly-builds/nightly-builds/build/Tests/CMakeOnly/CheckLanguage-build/CMakeFiles/CMakeScratch/TryCompile-81zxzz'
Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v cmTC_56237
[1/4] C:\Windows\system32\cmd.exe /C "C:\mingw64\bin\gfortran.exe -cpp -E D:/a/nightly-builds/nightly-builds/build/Tests/CMakeOnly/CheckLanguage-build/CMakeFiles/CMakeScratch/TryCompile-81zxzz/testFortranCompiler.f -o CMakeFiles/cmTC_56237.dir/testFortranCompiler.f-pp.f && D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_56237.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles/cmTC_56237.dir/testFortranCompiler.f-pp.f --out=CMakeFiles/cmTC_56237.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_56237.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_56237.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_56237.dir\testFortranCompiler.f.obj.ddi --src-orig=D:/a/nightly-builds/nightly-builds/build/Tests/CMakeOnly/CheckLanguage-build/CMakeFiles/CMakeScratch/TryCompile-81zxzz/testFortranCompiler.f"
[2/4] D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_56237.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/cmTC_56237.dir/Fortran.dd @CMakeFiles/cmTC_56237.dir/Fortran.dd.rsp
[3/4] C:\mingw64\bin\gfortran.exe -ID:\a\nightly-builds\nightly-builds\build\Tests\CMakeOnly\CheckLanguage-build\CMakeFiles\CMakeScratch\TryCompile-81zxzz -fpreprocessed -c CMakeFiles/cmTC_56237.dir/testFortranCompiler.f-pp.f -o CMakeFiles/cmTC_56237.dir/testFortranCompiler.f.obj
[4/4] C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_56237.dir/testFortranCompiler.f.obj -o cmTC_56237.exe -Wl,--out-implib,libcmTC_56237.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
FAILED: cmTC_56237.exe
C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_56237.dir/testFortranCompiler.f.obj -o cmTC_56237.exe -Wl,--out-implib,libcmTC_56237.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find /machine:x64: No such file or directory
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:34 (enable_language)
-- Configuring incomplete, errors occurred!
CMake Error at Test.cmake:32 (message):
CMake failed to configure CheckLanguage