Setting gcc

David Nicholls david.nicholls at anu.edu.au
Tue Nov 19 05:15:00 UTC 2024


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



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20241119/c499b283/attachment.htm>


More information about the macports-users mailing list