# Gcc/gfortran 16 released

**URL:** <https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870>\
**Category:** GNU\
**Created:** [April 23, 2026, 6:21pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870 "2026-04-23T18:21:51Z")\
**Posts on this page:** 19\
**Page:** 3

<div class="post-metadata">

**Author:** ![rwmsu](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rwmsu](https://fortran-lang.discourse.group/u/rwmsu)\
**Post date:** [May 24, 2026, 9:46pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/41 "2026-05-24T21:46:18Z")

</div>

I meant to edit my original post but haven’t gotten around to it yet.

The GCC 16 version I downloaded is in the [ubuntu-toolchain-r/test](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test) repository and is a pre-release version from March. It doesn’t appear to include the caf\_shared library required for shared memory CAF. Version 15.2 is in the standard [Ubuntu toolchain ppa](https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/ppa)

To access either you have to add a ppa path to the repository. This is usually done by:

``’  
sudo add-apt-repository ppa:ubuntu-toolchain-r/test  
sudo apt update  
sudo apt install gcc-16 gfortran-16 g+±16

or  
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa  
sudo apt update  
sudo apt install gcc-15 gfortran-15 g+±15

```auto

```

---

<div class="post-metadata">

**Author:** ![RonShepard](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@RonShepard](https://fortran-lang.discourse.group/u/RonShepard)\
**Post date:** [May 25, 2026, 1:04am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/42 "2026-05-25T01:04:42Z")

</div>

> [@Harper](#):
>
> When will gfortran 16 be available to Ubuntu systems?

I’m waiting for it to appear in Homebrew too (MacOS). It usually takes a few weeks from the standard release for it to appear in the various package managers.

---

<div class="post-metadata">

**Author:** ![Jweber](https://avatars.discourse-cdn.com/v4/letter/j/e95f7d/32.png) [@Jweber](https://fortran-lang.discourse.group/u/Jweber)\
**Post date:** [May 25, 2026, 2:38am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/43 "2026-05-25T02:38:46Z")

</div>

While the standard compiler of Ubuntu 26.04 is gcc/gfortran is version 15 (which will remain the standard compiler), gcc and gfortran 16 are the repository. I think the packsge is called gfortran-16.

I do not know about earlier versions of Ubuntu, but one can look that up in your packet manager.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [May 25, 2026, 9:33am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/44 "2026-05-25T09:33:07Z")

</div>

> [@Jweber](#):
>
> gcc and gfortran 16 are the repository. I think the packsge is called gfortran-16.

I tried that package in Ubuntu 26.04, but that version does not seem to include the `caf_shmem` library:

```bash
$ gfortran-16 -fcoarray=lib coarrays.f90 -lcaf_shmem
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lcaf_shmem: No such file or directory
collect2: error: ld returned 1 exit status
$ gfortran-16 --version
GNU Fortran (Ubuntu 16-20260322-1ubuntu1) 16.0.1 20260322 (experimental) [trunk r16-8246-g569ace1fa50]

```

I guess you will have to wait for Ubuntu 26.10 for the official repositories.

In Fedora 44, we now have:

```bash
$ gfortran --version
GNU Fortran (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2)

```

In GCC versioning, 16.0 is the experimental development version. 16.1 is the first stable release. GCC 17.0 is now opened for development, to be released in April 2027 as GCC 17.1.

---

<div class="post-metadata">

**Author:** ![msz59](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@msz59](https://fortran-lang.discourse.group/u/msz59)\
**Post date:** [May 25, 2026, 9:41am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/45 "2026-05-25T09:41:09Z")

</div>

It is also available in [Debian SID](https://packages.debian.org/sid/gfortran-16-x86-64-linux-gnu) (unstable) repository.  
Unfortunately, even gcc-15 is only in SID, the “system” GCC for Debian 13 (trixie) being version 14

---

<div class="post-metadata">

**Author:** ![Beliavsky](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@Beliavsky](https://fortran-lang.discourse.group/u/Beliavsky)\
**Post date:** [May 25, 2026, 12:34pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/46 "2026-05-25T12:34:55Z")

</div>

For easy access to the latest open-source software, use Windows 😀 . From [equation.com](https://www.equation.com/servlet/equation.cmd?fa=fortran) I have

`c:\fortran>gfortran --version`  
`GNU Fortran (GCC) 17.0.0 20260510 (experimental)`

(Was joking above and am thinking of putting Linux on one of my PCs so I use the latest versions of LFortran and other compilers.)

---

<div class="post-metadata">

**Author:** ![rwmsu](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rwmsu](https://fortran-lang.discourse.group/u/rwmsu)\
**Post date:** [May 25, 2026, 1:08pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/47 "2026-05-25T13:08:28Z")

</div>

> [@vmagnin](#):
>
> tried that package in Ubuntu 26.04, but that version does not seem to include the `caf_shmem` library:

I think that might be due to the person building the GCC packages for each Ubuntu version is not including the build options that turn on the shared memory CAF support. Doubt that will change with a new Ubuntu version unless someone requests that CAF support be turned on in all future versions.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [May 25, 2026, 2:44pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/48 "2026-05-25T14:44:02Z")

</div>

> [@Beliavsky](#):
>
> am thinking of putting Linux on one of my PCs so I use the latest versions of LFortran and other compilers.

Fedora is a good choice for bleeding edge Fortran compilers: GFortran, Flang and LFortran are in the official repos.

---

<div class="post-metadata">

**Author:** ![rwmsu](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@rwmsu](https://fortran-lang.discourse.group/u/rwmsu)\
**Post date:** [May 25, 2026, 3:13pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/49 "2026-05-25T15:13:42Z")

</div>

Does Fedora still try to shove the nouveau open source graphics driver for Nvidia cards and Gnome 3 desktop down your throat. Those are the two biggest reasons I switched to Linux Mint. I despise both. Nouveau was like a zombie. Even when you thought you had done all the necessary steps to get rid of it, it still came back. Gnome 3 caught the Microsoft/Apple OS “our way or the highway” bug. Linux Mint gives me a choice of desktops and seamless installation of Nvidia’s native drivers at installation. Unfortunately, it does stay a couple generations behind “bleeding edge” since it’s main distro is based on an Ubuntu LTS release. There is an alternate version based on pure Debian that is the Linux Mint developers backup should Ubuntu disappear.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/vmagnin/32/28_2.png) [@vmagnin](https://fortran-lang.discourse.group/u/vmagnin)\
**Post date:** [May 25, 2026, 5:32pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/50 "2026-05-25T17:32:38Z")

</div>

@rwmsu

Fedora has two official desktop versions: Workstation (GNOME) and KDE. See [https://fedoraproject.org/](https://fedoraproject.org/)  
They of course offer other desktops in versions they call “Spins”, like XFCE, Cinnamon, etc.

I have Fedora 44 on four machines (with GNOME), but indeed some display problems on the one with a NVIDIA Quadro K620. The driver is `nouveau` by default. I have not yet tried to investigate. See their discourse for more information, for example:

> **[The NVIDIA GPU installed in this system is not supported by open nvidia.ko...](https://discussion.fedoraproject.org/t/the-nvidia-gpu-installed-in-this-system-is-not-supported-by-open-nvidia-ko-because-it-does-not-include-the-required-gpu-system-processor-gsp/190209/)**
>
> I use I use Nvidia MX250. on F43 nvidia driver work perfectly fine, its always update to newest, until i update to F44, the driver wont work. I think thats a minor bug, today I got update for nvidia, so i update it but still nothing. When I turn...

---

<div class="post-metadata">

**Author:** ![msz59](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@msz59](https://fortran-lang.discourse.group/u/msz59)\
**Post date:** [May 26, 2026, 11:19am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/51 "2026-05-26T11:19:13Z")

</div>

ChatGPT gave me pretty simple and clean way to install and test gfortran-16 from Debian SID on my MX Linux 25, using a “chroot container” (just 1.5GB inside normal FS hierarchy), without messing up with system libc etc. I guess it also might work on Ubuntu, though YMMV. If anybody interested, let me know.

---

<div class="post-metadata">

**Author:** ![cmaapic](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/cmaapic/32/659_2.png) [@cmaapic](https://fortran-lang.discourse.group/u/cmaapic)\
**Post date:** [May 26, 2026, 5:05pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/52 "2026-05-26T17:05:56Z")

</div>

As a follow up for anyone wanting to try Nvidia gpu programming (my main system has an Nvidia Quadro RTX 4000 with 8GB of ram and 2304 cores) I found the easiest way was to run a linux distro under the Microsoft Windows Subsystem for Linux. I have got openSuSe tumbleweed and ubuntu 22.04.5 running the Nvidia Fortran examples on this system accessing the gpu. I had major problems trying to do get a native linux install (multi boot, Windows, Redhat and SuSe) working due to problems installing the nvidia drivers. Trying to move from the default nouveau driver to the nvidia driver ‘bricked’ my Redhat installation. Good way to waste several days!

---

<div class="post-metadata">

**Author:** ![RonShepard](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@RonShepard](https://fortran-lang.discourse.group/u/RonShepard)\
**Post date:** [June 18, 2026, 3:48pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/53 "2026-06-18T15:48:17Z")

</div>

> [@RonShepard](#):
>
> I’m waiting for it to appear in Homebrew too (MacOS).

I just noticed that Homebrew now has gcc 16.1.0 available.

---

<div class="post-metadata">

**Author:** ![han190](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/han190/32/7158_2.png) [@han190](https://fortran-lang.discourse.group/u/han190)\
**Post date:** [June 23, 2026, 2:57pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/54 "2026-06-23T14:57:32Z")

</div>

The new version is great. It is my fault, but `GFORTRAN_NUM_IMAGES` and `GFORTRAN_IMAGE_NUM` looks REALLY similar and latter [should not be altered at all](https://gcc.gnu.org/onlinedocs/gfortran/Shared-memory-Coarrays.html).

---

<div class="post-metadata">

**Author:** ![msz59](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@msz59](https://fortran-lang.discourse.group/u/msz59)\
**Post date:** [June 24, 2026, 8:33am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/55 "2026-06-24T08:33:37Z")

</div>

with the latter (which I tried first), `a.out` crashes immediately.

---

<div class="post-metadata">

**Author:** ![msz59](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@msz59](https://fortran-lang.discourse.group/u/msz59)\
**Post date:** [June 24, 2026, 8:39am UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/56 "2026-06-24T08:39:17Z")

</div>

NB. without optimization (like `-O2`) the coarrays do not work at all, with execution time increasing with the number of images!  
NB2. strangely, at least in Linux version, compiled as  
`gfortran -fcoarray=lib -O2 prog.f90 -lcaf_shmem`  
the running threads have all absurdly huge Virtual Size (like 16g), without any arrays involved. Luckily the Resident Size is “normal”. It was not so with OpenCoarrays and gfortran-13.

---

<div class="post-metadata">

**Author:** ![BFelsher](https://avatars.discourse-cdn.com/v4/letter/b/71c47a/32.png) [@BFelsher](https://fortran-lang.discourse.group/u/BFelsher)\
**Post date:** [July 14, 2026, 1:54pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/57 "2026-07-14T13:54:14Z")

</div>

Found this for windows users. [Winteracter - GCC for Windows](https://www.winteracter.uk/gcc.php)

---

<div class="post-metadata">

**Author:** ![JerryD](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/jerryd/32/393_2.png) [@JerryD](https://fortran-lang.discourse.group/u/JerryD)\
**Post date:** [August 20, 2026, 5:34pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/58 "2026-08-20T17:34:35Z")

</div>

I have been working on an auto parallelization of DO CONCURRENT. I have done experiments with using gcc libgomp and using pthreads. The libgomp approach seems best. Its in my “in betweens” work because my focus has been clearing out some very old bug reports.

---

<div class="post-metadata">

**Author:** ![jorgeg](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/jorgeg/32/6835_2.png) [@jorgeg](https://fortran-lang.discourse.group/u/jorgeg)\
**Post date:** [August 20, 2026, 10:10pm UTC](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870/59 "2026-08-20T22:10:06Z")

</div>

is there a way to help/collaborate with you on this? I’d love to help (if possible)

[Previous page](https://fortran-lang.discourse.group/t/gcc-gfortran-16-released/10870.md?page=2)
