RunCMake.add_subdirectory
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/add_subdirectory" "-DRunCMake_BINARY_DIR=D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/add_subdirectory" "-DCMAKE_Fortran_COMPILER=C:/mingw64/bin/gfortran.exe" "-P" "D:/a/nightly-builds/nightly-builds/Tests/RunCMake/add_subdirectory/RunCMakeTest.cmake"
working_directory: "./Tests/RunCMake"
Processors: 1
Execution Time: 16.077
Completion Status: Completed
Environment: #CTEST_RESOURCE_GROUP_COUNT=
Exit Value: 1
Exit Code: Failed
stdout:
-- DoesNotExist - PASSED
-- Missing - PASSED
-- Function - PASSED
CMake Error at D:/a/nightly-builds/nightly-builds/Tests/RunCMake/RunCMake.cmake:296 (message):
System - 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/add_subdirectory" "-G" "Ninja" "-DRunCMake_TEST=System" "--no-warn-unused-cli" "-DCMAKE_Fortran_COMPILER=C:/mingw64/bin/gfortran.exe" "-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 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/add_subdirectory/System-build/CMakeFiles/CMakeScratch/TryCompile-a68je5'
actual-stderr>
actual-stderr> Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v cmTC_653e9
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/add_subdirectory/System-build/CMakeFiles/CMakeScratch/TryCompile-a68je5/testFortranCompiler.f -o CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f-pp.f && D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_653e9.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f-pp.f --out=CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_653e9.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_653e9.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_653e9.dir\testFortranCompiler.f.obj.ddi --src-orig=D:/a/nightly-builds/nightly-builds/build/Tests/RunCMake/add_subdirectory/System-build/CMakeFiles/CMakeScratch/TryCompile-a68je5/testFortranCompiler.f"
actual-stderr> [2/4] D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_653e9.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/cmTC_653e9.dir/Fortran.dd @CMakeFiles/cmTC_653e9.dir/Fortran.dd.rsp
actual-stderr> [3/4] C:\mingw64\bin\gfortran.exe -ID:\a\nightly-builds\nightly-builds\build\Tests\RunCMake\add_subdirectory\System-build\CMakeFiles\CMakeScratch\TryCompile-a68je5 -fpreprocessed -c CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f-pp.f -o CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f.obj
actual-stderr> [4/4] C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f.obj -o cmTC_653e9.exe -Wl,--out-implib,libcmTC_653e9.dll.a -Wl,--major-image-version,0,--minor-image-version,0 && cd ."
actual-stderr> FAILED: cmTC_653e9.exe
actual-stderr> C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe /machine:x64 CMakeFiles/cmTC_653e9.dir/testFortranCompiler.f.obj -o cmTC_653e9.exe -Wl,--out-implib,libcmTC_653e9.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> System.cmake:3 (enable_language)
actual-stderr> CMakeLists.txt:10 (include)
Call Stack (most recent call first):
D:/a/nightly-builds/nightly-builds/Tests/RunCMake/add_subdirectory/RunCMakeTest.cmake:7 (run_cmake)
-- CMP0082-WARN - PASSED
-- CMP0082-WARN-install - PASSED
-- CMP0082-WARN-install-component - PASSED
-- CMP0082-WARN-Nested - PASSED
-- CMP0082-WARN-Nested-install - PASSED
-- CMP0082-WARN-Nested-install-component - PASSED
-- CMP0082-WARN-NestedSub - PASSED
-- CMP0082-WARN-NestedSub-install - PASSED
-- CMP0082-WARN-NestedSub-install-component - PASSED
-- CMP0082-WARN-None - PASSED
-- CMP0082-WARN-None-install - PASSED
-- CMP0082-WARN-None-install-component - PASSED
-- CMP0082-WARN-NoTopInstall - PASSED
-- CMP0082-WARN-NoTopInstall-install - PASSED
-- CMP0082-WARN-NoTopInstall-install-component - PASSED
-- CMP0082-OLD - PASSED
-- CMP0082-OLD-install - PASSED
-- CMP0082-OLD-install-component - PASSED
-- CMP0082-NEW - PASSED
-- CMP0082-NEW-install - PASSED
-- CMP0082-NEW-install-component - PASSED
-- ExcludeFromAll - PASSED
-- ExcludeFromAll-build - PASSED
-- ExcludeFromAll-build-sub - PASSED