Gcc/gfortran 16 released

GCC 16.1 was officially released today:

2 Likes

does anyone have a ./configure line that has worked? I am not being able to compile gcc

1 Like

Jerry guided me to compile GCC a few weeks ago.

I had created a gcc-dev directory with three subdirs:

  • trunk/ (gcc sources)
  • objdir/ (empty)
  • usr/ (empty)

First, in trunk/:

$ ./contrib/download_prerequisites
$ sudo dnf install gcc-c++ glibc-devel.i686

From objdir/, I had in my script:

readonly repertoire=/home/my_login/gcc_dev
../trunk/configure --prefix="${repertoire}"/usr --enable-languages=c,c++,fortran --enable-multilib --enable-libgomp --disable-bootstrap

make -j10 1>/dev/null && make install 1>/dev/null

Drink you coffee… :hot_beverage:

Finally I tested my snippets with:

gcc_dev/my_snippets$ LD_LIBRARY_PATH=/home/my_login/gcc_dev/usr/lib:/home/my_login/gcc_dev/usr/lib64
gcc_dev/my_snippets$ export LD_LIBRARY_PATH
gcc_dev/my_snippets$ ../usr/bin/gfortran -fcoarray=lib collective.f90 -lcaf_shmem

I should update the Fortran Wiki page with those info.

1 Like

For adventurers only, GFortran 16.1 has arrived in Fedora Rawhide (development distribution):

Next steps should be Fedora 44 Testing, then Stable.

It has just arrived in Fedora Linux 44:

$ gfortran --version
GNU Fortran (GCC) 16.1.1 20260501 (Red Hat 16.1.1-1)
Copyright © 2026 Free Software Foundation, Inc.
1 Like

Does gfortran 16 have an entirely new front-end? What kinds of problems should we watch for with new front end code?

The gfortran front end is an evolution of what has existed for many years. So you shouldn’t have to change anything. (Modulo bug fixes. One I know about is that Jerry D and I worked to get certain INQUIRE return values corrected.) The new front ends over the past couple of major releases are Algol 68 and COBOL.

2 Likes

DO CONCURRENT can speedup like openMP in gfortran 16.1?

I’ve had little success with GNU accelerating do concurrent, if you have good experiences please do tell

2 Likes

the solution was to do an out of source build…

1 Like

Indeed @jorgeg , that’s an advice that Jerry gave me, after my first attempts.

1 Like

Jerry is smart! thanks so much

1 Like