CMake

FortranC

command_line: D:\a\nightly-builds\nightly-builds\build\bin\ctest.exe "--build-and-test" "D:/a/nightly-builds/nightly-builds/Tests/FortranC" "D:/a/nightly-builds/nightly-builds/build/Tests/FortranC" "--build-generator" "Ninja" "--build-makeprogram" "C:/ProgramData/chocolatey/bin/ninja.exe" "--build-project" "FortranC" "--build-two-config" "--test-command" "CMakeFiles/FortranCInterface/FortranCInterface"

working_directory: "./Tests"

Processors: 1

Execution Time: 10.565

Completion Status: Completed

Environment: #CTEST_RESOURCE_GROUP_COUNT=

Exit Value: 1

Exit Code: Failed

stdout:

Internal cmake changing into directory: D:/a/nightly-builds/nightly-builds/build/Tests/FortranC
======== CMake output     ======
The C compiler identification is MSVC 19.43.34808.0
The Fortran compiler identification is GNU 14.2.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.43.34808/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
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/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays'
    
    Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v cmTC_ac35d
    [1/4] C:\Windows\system32\cmd.exe /C ""D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type compile --target-name cmTC_ac35d --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays" --config  --output CMakeFiles\cmTC_ac35d.dir\testFortranCompiler.f.obj --source D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays/testFortranCompiler.f --language Fortran --  C:\mingw64\bin\gfortran.exe -cpp    -E D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays/testFortranCompiler.f -o CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f-pp.f && D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_ac35d.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f-pp.f --out=CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_ac35d.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_ac35d.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_ac35d.dir\testFortranCompiler.f.obj.ddi --src-orig=D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays/testFortranCompiler.f"
    [2/4] D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_ac35d.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/cmTC_ac35d.dir/Fortran.dd @CMakeFiles/cmTC_ac35d.dir/Fortran.dd.rsp
    [3/4] "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type compile --target-name cmTC_ac35d --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays" --config  --output CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f.obj --source CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f-pp.f --language Fortran --  C:\mingw64\bin\gfortran.exe -ID:\a\nightly-builds\nightly-builds\build\Tests\FortranC\CMakeFiles\CMakeScratch\TryCompile-gtvays -fpreprocessed -c CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f-pp.f -o CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f.obj
    [4/4] C:\Windows\system32\cmd.exe /C "cd . && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type link --target-name cmTC_ac35d --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays" --output cmTC_ac35d.exe --target-type EXECUTABLE --config  --language Fortran --target-labels "" --  C:\mingw64\bin\gfortran.exe  /machine:x64 CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f.obj -o cmTC_ac35d.exe -Wl,--out-implib,libcmTC_ac35d.dll.a -Wl,--major-image-version,0,--minor-image-version,0   && cd ."
    FAILED: cmTC_ac35d.exe 
    C:\Windows\system32\cmd.exe /C "cd . && "D:/a/nightly-builds/nightly-builds/build/bin/ctest.exe" --instrument --command-type link --target-name cmTC_ac35d --build-dir "D:/a/nightly-builds/nightly-builds/build/Tests/FortranC/CMakeFiles/CMakeScratch/TryCompile-gtvays" --output cmTC_ac35d.exe --target-type EXECUTABLE --config  --language Fortran --target-labels "" --  C:\mingw64\bin\gfortran.exe  /machine:x64 CMakeFiles/cmTC_ac35d.dir/testFortranCompiler.f.obj -o cmTC_ac35d.exe -Wl,--out-implib,libcmTC_ac35d.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:2 (project)


Configuring incomplete, errors occurred!
======== End CMake output ======
Error: cmake execution failed
Status: failed
Loading...