I'm not sure what's going on. On my new M$ MacBook, after installing Macports 
,I installed gcc14 in order to get the Fortran compiler, gfortran

I used:

  sudo port install gcc14

and selected it using;

  sudo port select --set gcc mp-gcc14

which showed as selected:

  sudo port select --list gcc
  Available versions for gcc:
mp-gcc14 (active)
none

and

...$ which gcc
/opt/local/bin/gcc

...$ gcc --version
Apple clang version 16.0.0 (clang-1600.0.26.4)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

gfortran --version does return the gcc14 version.

Why is the gcc --version for gcc still showing the Apple clang version?

DN

David C Nicholls
Research School of Astronomy & Astrophysics
Australian National University



Reply via email to