Upgrade cctools unexpectedly failing
Chris Jones
jonesc at hep.phy.cam.ac.uk
Tue Oct 8 15:34:07 UTC 2019
On 08/10/2019 6:52 am, Ken Cunningham wrote:
>> I wonder if the SDK path is
>> baked into llvm-config-mp-7.0?
>
>
> Yep -- sheesh. Is there no end to this?
>
> Ken
>
> $ llvm-config-mp-7.0 --cflags
> -I/opt/universalnew/libexec/llvm-7.0/include -pipe -Os -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.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_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
>
There seems to be a lack of rhyme or reason to what you get from
llvm-config, as it appears to vary by OS and also clang version.
For instance, on 10.14 with 7.0 I see the same
MacVM1014 ~ > llvm-config-mp-7.0 --cflags
-I/opt/local/libexec/llvm-7.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 -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
whereas clang 8.0 on the same system gives,
MacVM1014 ~ > 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
which also does not see fully correct, for different reasons. Why so
short compared to 7.0 ?
Also, clang 7.0 on mac 10.13 gives
Titan ~ > llvm-config-mp-7.0 --cflags
-I/opt/local/libexec/llvm-7.0/include -pipe -Os -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
so there the SDK is seemingly not baked in..
Any idea then Ken why we get such different results from llvm-confg,
depending on the OS or clang version ? Seems like something is not quite
right here ....
Chris
More information about the macports-dev
mailing list