Xcode error with cmake build of grpc

Ryan Schmidt ryandesign at macports.org
Mon Jan 18 06:04:43 UTC 2021



On Jan 17, 2021, at 14:16, Steven Smith wrote:

> This flag is being passed to cmake in the MacPorts build. Is this the issue?
> 
>> -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk"
> 
> It doesn’t appear consistent with the error:
> 
>> make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework', needed by `libgpr.14.0.0.dylib'.  Stop.
> 
> Is there a Portfile incantation that will fix this, or at least code around the issue?
> 
> 
>> On Jan 17, 2021, at 3:08 PM, Steven Smith <steve.t.smith at gmail.com> wrote:
>> 
>>> Not sure why this build is insisting on trying to use the 10.15 SDK when it does not exist. That is a bug that should be fixed.
>> 
>> Is this an upstream grpc issue, a cmake issue, or a MacPorts issue? I’ll post the issue if I know where to post it.
> 

I have not investigated so I don't know. The fact that the port is specifying a CLT SDK but the build ends up trying to use an Xcode SDK suggests that maybe this build system contains unique code for selecting the SDK, code which we might rip out or disable.



More information about the macports-dev mailing list