RunCMake.try_run
command_line: D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe "-DCMAKE_MODULE_PATH=D:/a/nightly-builds/nightly-builds/Tests/RunCMake" "-DRunCMake_GENERATOR_IS_MULTI_CONFIG=0" "-DRunCMake_GENERATOR=Ninja" "-DRunCMake_GENERATOR_INSTANCE=" "-DRunCMake_GENERATOR_PLATFORM=" "-DRunCMake_GENERATOR_TOOLSET=" "-DRunCMake_MAKE_PROGRAM=C:/ProgramData/chocolatey/bin/ninja.exe" "-DRunCMake_SOURCE_DIR=D:/a/nightly-builds/nightly-builds/Tests/RunCMake/try_run" "-DRunCMake_BINARY_DIR=D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/try_run" "-DCMake_TEST_Fortran=1" "-P" "D:/a/nightly-builds/nightly-builds/Tests/RunCMake/try_run/RunCMakeTest.cmake"
working_directory: "./Tests/RunCMake"
Processors: 1
Execution Time: 10.031
Completion Status: Completed
Environment: #CTEST_RESOURCE_GROUP_COUNT=
Exit Value: 1
Exit Code: Failed
stdout:
CMake Error at D:/a/nightly-builds/nightly-builds/Tests/RunCMake/RunCMake.cmake:296 (message):
Inspect - FAILED:
Result is [1], not [0].
stderr does not match that expected.
Command was:
command> "D:/a/nightly-builds/nightly-builds/build/bin/cmake.exe" "D:/a/nightly-builds/nightly-builds/Tests/RunCMake/try_run" "-G" "Ninja" "-DRunCMake_TEST=Inspect" "--no-warn-unused-cli" "-DCMake_TEST_Fortran=1" "-DCMAKE_MAKE_PROGRAM=C:/ProgramData/chocolatey/bin/ninja.exe"
Actual stdout:
actual-stdout> Not searching for unused variables given on the command line.
actual-stdout> -- The C compiler identification is MSVC 19.44.35209.0
actual-stdout> -- Detecting C compiler ABI info
actual-stdout> -- Detecting C compiler ABI info - done
actual-stdout> -- 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
actual-stdout> -- Detecting C compile features
actual-stdout> -- Detecting C compile features - done
actual-stdout> -- The CXX compiler identification is MSVC 19.44.35209.0
actual-stdout> -- Detecting CXX compiler ABI info
actual-stdout> -- Detecting CXX compiler ABI info - done
actual-stdout> -- 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
actual-stdout> -- Detecting CXX compile features
actual-stdout> -- Detecting CXX compile features - done
actual-stdout> -- The Fortran compiler identification is GNU 14.2.0
actual-stdout> -- Detecting Fortran compiler ABI info
actual-stdout> -- Detecting Fortran compiler ABI info - failed
actual-stdout> -- Check for working Fortran compiler: C:/mingw64/bin/gfortran.exe
actual-stdout> -- Check for working Fortran compiler: C:/mingw64/bin/gfortran.exe - broken
actual-stdout> -- Configuring incomplete, errors occurred!
Expected stderr to match:
expect-stderr> ^$
Actual stderr:
actual-stderr> CMake Error at D:/a/nightly-builds/nightly-builds/Modules/CMakeTestFortranCompiler.cmake:59 (message):
actual-stderr> The Fortran compiler
actual-stderr>
actual-stderr> "C:/mingw64/bin/gfortran.exe"
actual-stderr>
actual-stderr> is not able to compile a simple test program.
actual-stderr>
actual-stderr> It fails with the following output:
actual-stderr>
actual-stderr> Change Dir: 'D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/try_run/Inspect-build/CMakeFiles/CMakeScratch/TryCompile-29n387'
actual-stderr>
actual-stderr> Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v cmTC_08e14
actual-stderr> [1/4] C:\Windows\system32\cmd.exe /C "C:\mingw64\bin\gfortran.exe -cpp -E D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/try_run/Inspect-build/CMakeFiles/CMakeScratch/TryCompile-29n387/testFortranCompiler.f -o CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f-pp.f && D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_08e14.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f-pp.f --out=CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_08e14.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_08e14.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_08e14.dir\testFortranCompiler.f.obj.ddi --src-orig=D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/try_run/Inspect-build/CMakeFiles/CMakeScratch/TryCompile-29n387/testFortranCompiler.f"
actual-stderr> [2/4] D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_08e14.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/cmTC_08e14.dir/Fortran.dd @CMakeFiles/cmTC_08e14.dir/Fortran.dd.rsp
actual-stderr> [3/4] C:\mingw64\bin\gfortran.exe -ID:\a\nightly-builds\nightly-builds\build\Tests\RunCMake\try_run\Inspect-build\CMakeFiles\CMakeScratch\TryCompile-29n387 -fpreprocessed -c CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f-pp.f -o CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f.obj
actual-stderr> [4/4] C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f.obj -o cmTC_08e14.exe -Wl,--out-implib,libcmTC_08e14.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
actual-stderr> FAILED: [code=1] cmTC_08e14.exe
actual-stderr> C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_08e14.dir/testFortranCompiler.f.obj -o cmTC_08e14.exe -Wl,--out-implib,libcmTC_08e14.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
actual-stderr> 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
actual-stderr> collect2.exe: error: ld returned 1 exit status
actual-stderr> ninja: build stopped: subcommand failed.
actual-stderr>
actual-stderr>
actual-stderr>
actual-stderr>
actual-stderr>
actual-stderr> CMake will not be able to correctly generate this project.
actual-stderr> Call Stack (most recent call first):
actual-stderr> Inspect.cmake:4 (enable_language)
actual-stderr> CMakeLists.txt:3 (include)
Call Stack (most recent call first):
D:/a/nightly-builds/nightly-builds/Tests/RunCMake/RunCMake.cmake:314 (run_cmake)
D:/a/nightly-builds/nightly-builds/Tests/RunCMake/try_run/RunCMakeTest.cmake:9 (run_cmake_with_options)
CMake Error at D:/a/nightly-builds/nightly-builds/Tests/RunCMake/try_run/RunCMakeTest.cmake:12 (include):
include could not find requested file:
D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/try_run/Inspect-build/info.cmake