strange SDKs in El Capitan...

Peter Hancock hancock at fastmail.fm
Thu Apr 2 00:04:57 UTC 2020


On 02/04/2020 00:43, Ken Cunningham wrote:
> In trying to track down a build failure of clang-3.7 on El Cap, I found it only builds there if “use_xode yes” is selected...
> 
> In trying to understand why that is, I find this odd SDK difference. It’s on two different El Cap machines I have. Does everyone with El Cap have this issue - the last Xcode has MacOSX10.11 SDK but the CLTs have MacOSX10.12 SDK? 
> 
> If so, no wonder we see strange errors:
> 
> 
> $ ls -la /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
> total 0
> drwxr-xr-x  3 root  wheel  102  3 Mar  2016 .
> drwxr-xr-x  5 root  wheel  170 26 Apr  2016 ..
> drwxr-xr-x  5 root  wheel  170 20 Oct  2020 MacOSX10.11.sdk
> 
> 
> $ ls -la /Library/Developer/CommandLineTools/SDK*
> total 8
> drwxr-xr-x  4 root  wheel  136  1 Jul  2017 .
> drwxr-xr-x  5 root  admin  170  1 Jul  2017 ..
> drwxr-xr-x  5 root  wheel  170 17 Sep  2017 MacOSX.sdk
> lrwxr-xr-x  1 root  wheel   10  1 Jul  2017 MacOSX10.12.sdk -> MacOSX.sdk

In case it helps, on my 10.11.6 system, those two commands yield:

$ ls -la /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
total 4
drwxr-xr-x 4 root wheel 136 Dec 19  2016 .
drwxr-xr-x 5 root wheel 170 Dec 19  2016 ..
drwxr-xr-x 5 root wheel 170 Dec 19  2016 MacOSX.sdk
lrwxr-xr-x 1 root wheel  10 Nov  2  2016 MacOSX10.12.sdk -> MacOSX.sdk

$ ls -la /Library/Developer/CommandLineTools/SDK*
total 4
drwxr-xr-x 4 root wheel 136 Dec 13  2016 .
drwxr-xr-x 5 root admin 170 Dec 13  2016 ..
drwxr-xr-x 5 root wheel 170 Sep 17  2017 MacOSX.sdk
lrwxr-xr-x 1 root wheel  10 Dec 13  2016 MacOSX10.12.sdk -> MacOSX.sdk

I've no memory of how this came about.





More information about the macports-users mailing list