[MacPorts] #59342: cctools @921_3+llvm70: uses incorrect SDK taken from llvm-config-mp-7.0

MacPorts noreply at macports.org
Sun Feb 9 22:03:25 UTC 2020


#59342: cctools @921_3+llvm70: uses incorrect SDK taken from llvm-config-mp-7.0
----------------------------------+----------------------
  Reporter:  thomasrussellmurphy  |      Owner:  jeremyhu
      Type:  defect               |     Status:  assigned
  Priority:  Normal               |  Milestone:
 Component:  ports                |    Version:  2.6.1
Resolution:                       |   Keywords:
      Port:  cctools llvm-7.0     |
----------------------------------+----------------------

Comment (by kencu):

 All of the following is on 10.14 as of Feb 9, 2020:

 It looks like things are fixed in llvm 8, and 9, which now have much
 smaller cflags footprints:
 {{{
 $ llvm-config-mp-9.0 --cflags
 -I/opt/local/libexec/llvm-9.0/include  -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

 $ llvm-config-mp-8.0 --cflags
 -I/opt/local/libexec/llvm-8.0/include  -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 }}}

 llvm-7.0 has been rebuilt against the command line tools, and the isysroot
 cflags are correct now:
 {{{
 $ llvm-config-mp-7.0 --cflags
 -I/opt/local/libexec/llvm-7.0/include -pipe -Os
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -fPIC
 -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-
 unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic
 -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor
 -Wstring-conversion -DNDEBUG -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
 }}}

 llvm-6.0 and llvm-5.0 still have faulty isysroots that point into Xcode,
 and they will need to be rebuilt against the command line tools on the
 buildbots to pick up the correct isysroots that point into the CLTs:
 {{{
 $ llvm-config-mp-6.0 --cflags
 -I/opt/local/libexec/llvm-6.0/include -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -fPIC -Werror=date-time -Werror=unguarded-availability-new -Wall -W -Wno-
 unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic
 -Wno-long-long -Wcovered-switch-default -Wdelete-non-virtual-dtor
 -Wstring-conversion -DNDEBUG -D__STDC_CONSTANT_MACROS
 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS

 $ llvm-config-mp-5.0 --cflags
 -I/opt/local/libexec/llvm-5.0/include -pipe -Os
 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk
 -fPIC -Werror=date-time -Wall -W -Wno-unused-parameter -Wwrite-strings
 -Wmissing-field-initializers -pedantic -Wno-long-long -Wcovered-switch-
 default -Wdelete-non-virtual-dtor -Wstring-conversion -DNDEBUG
 -DLLVM_BUILD_GLOBAL_ISEL -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
 -D__STDC_LIMIT_MACROS
 }}}

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


More information about the macports-tickets mailing list