Re: Compiling Fortran

Brian Inglis via Cygwin <[email protected]> Fri, 10 Apr 2026 12:33:10 -0600
Newsgroups gmane.os.cygwin
Organization Systematic Software
Message-ID <[email protected]>
On 2026-04-10 10:46, Jean-Pierre Coulon via Cygwin wrote:
> On Fri, 10 Apr 2026, Dimitry Andric wrote:
> 
>> Run the setup-x86_64.exe program again, and search for the gcc-fortran 
>> package. The current stable version should be 13.4.0-1. If you install it, 
>> there should be a gfortran.exe in your \cygwin\bin directory. That is the gcc 
>> fortran compiler driver.
> 
> I managed to select djpp-gcc-fortan, Devel GCC for win64 toolchain, but 
> nevertheless the assistant downloads the entire collection as before.
> 
> isn't there a bug?

Package djgpp-gcc-fortran 5.4 targets a 32-bit DOS/Windows emulation environment 
for compatibility and is nearly 10 years old.

You should remove that and install current stable gcc-fortran 13.4 (optionally 
test versions 13.4.1, 14.3.1, 15.2.1, or 16.0.0).

All these compiler packages depend on library packages which may have their own 
dependencies, some just to support coloured diagnostics on terminals:

$ cygcheck-dep -cqSR djgpp-gcc-fortran
  djgpp-gcc-fortran: recursively requires ( bash cygwin djgpp-binutils 
djgpp-gcc-core djgpp-runtime libgcc1 libgmp10 libiconv2 libintl8 libisl13 
libmpc3 libmpfr4 libmpfr6 libncursesw10 libreadline7 libzstd1 terminfo zlib0 
_windows(>=6.3) )

$ cygcheck-dep -cqSR gcc-fortran
  gcc-fortran: recursively requires ( bash cygwin libgcc1 libgfortran5 libgmp10 
libiconv2 libintl8 libisl23 libmpc3 libmpfr6 libncursesw10 libquadmath0 
libreadline7 libzstd1 terminfo zlib0 _windows(>=6.3) gcc13 )

Before you download and install from Cygwin Setup, you can change the display to 
Pending and clear any names from the text box, which will show you only the 
packages which will download and install when you press Next.

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple