CMake

Fortran

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

working_directory: "./Tests"

Processors: 1

Execution Time: 8.104

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/Fortran
======== CMake output     ======
The C compiler identification is MSVC 19.43.34808.0
The CXX 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 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.43.34808/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX 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/Fortran/CMakeFiles/CMakeScratch/TryCompile-rp0fnr'
    
    Run Build Command(s): C:/ProgramData/chocolatey/bin/ninja.exe -v cmTC_e23e5
    [1/4] C:\Windows\system32\cmd.exe /C "C:\mingw64\bin\gfortran.exe -cpp    -E D:/a/nightly-builds/nightly-builds/build/Tests/Fortran/CMakeFiles/CMakeScratch/TryCompile-rp0fnr/testFortranCompiler.f -o CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f-pp.f && D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_depends --tdi=CMakeFiles\cmTC_e23e5.dir\FortranDependInfo.json --lang=Fortran --src=CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f-pp.f --out=CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f-pp.f --dep=CMakeFiles\cmTC_e23e5.dir\testFortranCompiler.f-pp.f.d --obj=CMakeFiles\cmTC_e23e5.dir\testFortranCompiler.f.obj --ddi=CMakeFiles\cmTC_e23e5.dir\testFortranCompiler.f.obj.ddi --src-orig=D:/a/nightly-builds/nightly-builds/build/Tests/Fortran/CMakeFiles/CMakeScratch/TryCompile-rp0fnr/testFortranCompiler.f"
    [2/4] D:\a\nightly-builds\nightly-builds\build\bin\cmake.exe -E cmake_ninja_dyndep --tdi=CMakeFiles\cmTC_e23e5.dir\FortranDependInfo.json --lang=Fortran --dd=CMakeFiles/cmTC_e23e5.dir/Fortran.dd @CMakeFiles/cmTC_e23e5.dir/Fortran.dd.rsp
    [3/4] C:\mingw64\bin\gfortran.exe -ID:\a\nightly-builds\nightly-builds\build\Tests\Fortran\CMakeFiles\CMakeScratch\TryCompile-rp0fnr -fpreprocessed -c CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f-pp.f -o CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f.obj
    [4/4] C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe  /machine:x64 CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f.obj -o cmTC_e23e5.exe -Wl,--out-implib,libcmTC_e23e5.dll.a -Wl,--major-image-version,0,--minor-image-version,0   && cd ."
    FAILED: cmTC_e23e5.exe 
    C:\Windows\system32\cmd.exe /C "cd . && C:\mingw64\bin\gfortran.exe  /machine:x64 CMakeFiles/cmTC_e23e5.dir/testFortranCompiler.f.obj -o cmTC_e23e5.exe -Wl,--out-implib,libcmTC_e23e5.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:5 (project)


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