Re: how to install gcc 16.1 on silicon mac ???

Basile STARYNKEVITCH <[email protected]> Sun, 31 May 2026 22:27:44 +0200
Newsgroups gmane.comp.gcc.help
Message-ID <[email protected]>
On Sun,n t  OuB2026-05-31 at 12:50 -0700, Michael LeVine via Gcc-help
wrote:o
> How to I configure gcc 16.1 to build a compiler (all I need is
> fortran), on a silicon mac with m4 chip running Tahoe 26.5.
> No matter the options running ../configuration, when I then command
> =E2=80=9CMake=E2=80=9D I keep erroring out
> with the following error message
>=20
> *** Configuration aarch64-apple-darwin25.5.0 not supported


I don't have access to a Silicon Mac.

But you should build GCC 16.1 from source code outside of the source
tree.

I have /usr/src/Lang/gcc-16.1.0 containing the source tree

I am build in /usr/src/Lang/_BuildGCC16

using the following configure command:

'/usr/src/Lang/gcc-16.1.0/configure'   '--enable-lto' \
  '--disable-multilib' '--program-suffix=3D-16' \
  '--enable-host-shared' '--enable-plugins' 'CC=3D/usr/bin/gcc' \  =20
'CXX=3D/usr/bin/g++' 'CXXFLAGS=3D-O -g -Wall -fPIC' \
  '--enable-languages=3Dc,c++,jit,lto'


It worked on both RaspberryPi5 (also aarch64 based) and AMD64 Linux

You want to add fortran to --enable-languages=3D

and you need to adapt the configure above



Apple Mac have some C & C++ compiler which is Clang/LLVM based

so you need to adapt the configure above.

You should expect to try several configurations etc...

So budget two days of work and more than ten gigabytes of disk space.

Hope this helped you.

Regards from near Paris in France=20

NB: I used to work on GCC: https://arxiv.org/abs/1109.0779
but my current open source project is refpersys.org (inference engine
for expert systems, GPL licensed, mostly C++ code)

--=20

Basile STARYNKEVITCH                          =20
<[email protected]>
8 rue de la Fa=C3=AFencerie                     =20
http://starynkevitch.net/Basile/ =20
92340 Bourg-la-Reine                       =20
https://github.com/bstarynk
France                              =20
https://github.com/RefPerSys/RefPerSys
                  https://orcid.org/0000-0003-0908-5250