Re: Compiling Fortran

Dimitry Andric via Cygwin <[email protected]> Fri, 10 Apr 2026 19:27:06 +0200
Newsgroups gmane.os.cygwin
Message-ID <[email protected]>
On 10 Apr 2026, at 18:46, Jean-Pierre Coulon <[email protected]> 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?

I don't think so. If I install Cygwin into a completely clean Windows VM, the default package selection is 79 packages:

Install _autorebase 001091-1
Install alternatives 1.31-1
Install base-cygwin 3.8-2
Install base-files 4.3-3
Install bash 5.2.21-1
Install bzip2 1.0.8-2
Install ca-certificates 2025.2.80_v9.0.304-1
Install coreutils 9.0-1
Install crypto-policies 20190218-1
Install cygutils 1.4.17-4
Install cygwin 3.6.7-1
Install dash 0.5.12-5
Install diffutils 3.12-1
Install editrights 1.04-1
Install file 5.46-1
Install findutils 4.10.0-1
Install gawk 5.4.0-1
Install getent 2.18.90-5
Install gettext-locale-alias 0.26-1
Install grep 3.12-1
Install groff 1.24.1-1
Install gzip 1.14-1
Install hostname 3.13-1
Install info 7.1-2
Install ipc-utils 1.1-1
Install less 691-1
Install libargp 20250917-2
Install libattr1 2.5.2-2
Install libblkid1 2.40.2-2
Install libbz2_1 1.0.8-2
Install libfdisk1 2.40.2-2
Install libffi6 3.2.1-2
Install libgcc1 13.4.0-1
Install libgdbm6 1.26-1
Install libgmp10 6.3.0-1
Install libiconv2 1.17-1
Install libintl8 0.22.5-1
Install liblastlog2 2.40.2-2
Install liblz4_1 1.9.4-1
Install liblzma5 5.8.2-1
Install libmpfr6 4.2.2-1
Install libncursesw10 6.5+20240427-1
Install libp11-kit0 0.23.20-1
Install libpcre1 8.45-1
Install libpcre2_8_0 10.47-1
Install libpipeline1 1.5.8-1
Install libpopt-common 1.19-1
Install libpopt0 1.19-1
Install libreadline7 8.2-2
Install libreadline8 8.3-1
Install libsmartcols1 2.40.2-2
Install libsqlite3_0 3.49.1-1
Install libssl1.1 1.1.1w-1
Install libssl3 3.0.19-1
Install libstdc++6 13.4.0-1
Install libtasn1_6 4.21.0-1
Install libuchardet0 0.0.8-1
Install libuuid1 2.40.2-2
Install libzstd1 1.5.7-1
Install login 1.13-1
Install man-db 2.13.1-1
Install mintty 3.8.2-1
Install ncurses 6.5+20240427-1
Install openssl 3.0.19-1
Install p11-kit 0.23.20-1
Install p11-kit-trust 0.23.20-1
Install rebase 4.6.6-1
Install run 1.3.4-2
Install sed 4.9-1
Install tar 1.35-2
Install terminfo 6.5+20240427-1
Install tzcode 2026a-1
Install tzdata 2026a-1
Install util-linux 2.40.2-2
Install vim-minimal 9.1.1825-1
Install which 2.23-1
Install xz 5.8.2-1
Install zlib0 1.3.2-1
Install zstd 1.5.7-1

Once the basic installation is complete, I restart the setup program, and select gcc-fortran. This selects an additional 15 packages as dependencies:

Install binutils 2.46-1 (automatically added)
Install cygwin-devel 3.6.7-1 (automatically added)
Install gcc-core 13.4.0-1 (automatically added)
Install gcc-fortran 13.4.0-1
Install libatomic1 13.4.0-1 (automatically added)
Install libcharset1 1.17-1 (automatically added)
Install libgfortran5 13.4.0-1 (automatically added)
Install libgomp1 13.4.0-1 (automatically added)
Install libiconv-devel 1.17-1 (automatically added)
Install libintl-devel 0.22.5-1 (automatically added)
Install libisl23 0.27-1 (automatically added)
Install libmpc3 1.4.0-1 (automatically added)
Install libquadmath0 13.4.0-1 (automatically added)
Install w32api-headers 14.0.0-1 (automatically added)
Install w32api-runtime 14.0.0-1 (automatically added)
Install windows-default-manifest 6.5-1 (automatically added)

So afterwards, I have 95 Cygwin packages installed.

If your package count is much higher, you must be doing something wrong, but it is hard to tell what it is. Maybe you selected _all_ packages by accident?

-Dimitry


-- 
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