fortran-lang / stdlib

Fortran Standard Library
https://stdlib.fortran-lang.org
MIT License
1.06k stars 164 forks source link

Use CMake+Gfortran to install stdlib in Win10. #400

Open GasinAn opened 3 years ago

GasinAn commented 3 years ago

GCC Fortran(MinGW), 8.1.0, Windows 10, x86_64: SUCCEEDED. The following tests FAILED: 8 - loadtxt_qp (Failed) 9 - savetxt_qp (Failed) GCC Fortran(MSYS2), 5.3.0, Windows 10, x86_64: FAILED. Messages after "configure build" and "build" is in TXT files: configure_build.gfortran_5.3.0_MSYS2.Win10.x86_64.txt build.gfortran_5.3.0_MSYS2.Win10.x86_64.txt

Romendakil commented 3 years ago

Not surprising, F2018 error stop was (partially) implemented only for gfortran 7, it cannot work in 5.3.0. Why is 5.3 tested at all, if so to me only the final version of the gfortran 5 series, gfortran 5.5.0 makes sense. But the last supported gcc version is 8 atm.

awvwgk commented 3 years ago

I would hazard a guess that the 8.1.0 version comes from choco (https://community.chocolatey.org/packages/mingw/8.1.0) while the 5.3.0 version is conda-forge's redistributed MSYS2 toolchain (https://anaconda.org/conda-forge/m2w64-gcc-fortran), which has been pretty much stale since MSYS2 stopped distributing on anaconda.org. Both choco and conda-forge are not really reliable channels for getting up-to-date GCC versions on Windows (alternatives are described at https://fortran-lang.org/learn/os_setup/install_gfortran).