[MacPorts] #61805: gd2: clang: error: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=11.1'

MacPorts noreply at macports.org
Tue May 4 22:39:56 UTC 2021


#61805: gd2: clang: error: invalid version number in
'MACOSX_DEPLOYMENT_TARGET=11.1'
----------------------+------------------------
  Reporter:  k6wx     |      Owner:  ryandesign
      Type:  defect   |     Status:  closed
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:  invalid  |   Keywords:  bigsur
      Port:  gd2      |
----------------------+------------------------

Comment (by ryandesign):

 Upgrading to macOS 11.3 is recommended but is not related to resolving
 this issue.

 /usr/bin/clang is a wrapper program that invokes whichever clang you have
 selected with `xcode-select`. You have probably selected Xcode, in which
 case `/usr/bin/clang --version` will tell you what version of clang is in
 Xcode, when what is actually relevant to resolve this issue is what
 version of clang is in the Xcode command line tools. You can query them
 individually by invoking the real programs directly:

 {{{
 % /Library/Developer/CommandLineTools/usr/bin/clang --version
 Apple clang version 12.0.5 (clang-1205.0.22.9)
 Target: x86_64-apple-darwin20.4.0
 Thread model: posix
 InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 %
 }}}
 {{{
 %
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
 --version
 Apple clang version 12.0.5 (clang-1205.0.22.9)
 Target: x86_64-apple-darwin20.4.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 %
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61805#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list