gcc12 fault?

David Nicholls david.nicholls at anu.edu.au
Thu Jun 1 15:17:21 UTC 2023


I upgraded OSX to the latest Ventura, installed the latest Xcode, and Xcode tools, accepted the license, then reinstalled Macports as per the instructions.  Versions of gcc older than gcc12 failed (as advised in the resintall), so I installed gcc12, ran port select to activate gcc12 and gfortran12. All ok so far.

'which gcc' gives /opt/local/bin/gcc

But:

<xxxx>:~ username$ gcc --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

and

<xxxx>:~ username$ /opt/local/bin/gcc --version
gcc (MacPorts gcc12 12.3.0_0+stdlib_flag) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Why does the command 'gcc --version' not give that same result as '/opt/local/bin/gcc --version' ?

'gfortan --version' works as expected

DN


More information about the macports-users mailing list