[MacPorts] #63351: py-grpcio fails to build
MacPorts
noreply at macports.org
Tue Aug 10 04:55:07 UTC 2021
#63351: py-grpcio fails to build
-------------------------+--------------------------
Reporter: mouse07410 | Owner: emcrisostomo
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-grpcio |
-------------------------+--------------------------
Comment (by mouse07410):
> your log has so many errors (hundreds) that it is hard to know where to
begin.
The ones I showed above are the first, so might as well begin from/with
them.
> Let's start with this basic one...
> What SDK are we attempting to build against? Does it actually exist on
your system?
{{{
$ xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
$ xcrun --show-sdk-platform-version
11.3
$ xcrun --show-sdk-platform-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
$ xcrun --show-sdk-platform-version
11.3
$ clang -v
Apple clang version 12.0.5 (clang-1205.0.22.11)
Target: x86_64-apple-darwin20.6.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ ll -d
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
drwxr-xr-x 5 ur20980 MITLL\Domain Users 160 Jun 22 20:53
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs//
$ ll
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
total 0
drwxr-xr-x 5 ur20980 MITLL\Domain Users 160 Jun 22 20:53 ./
drwxr-xr-x 6 ur20980 MITLL\Domain Users 192 Jun 8 20:37 ../
drwxr-xr-x 5 ur20980 MITLL\Domain Users 160 Mar 16 10:03
DriverKit20.4.sdk/
drwxr-xr-x 7 ur20980 MITLL\Domain Users 224 Mar 16 10:03 MacOSX.sdk/
lrwxr-xr-x 1 ur20980 MITLL\Domain Users 10 Jun 22 20:51
MacOSX11.3.sdk@ -> MacOSX.sdk
$
}}}
> and after that, perhaps for a whole new area of trying to sort things
out, can you show us what this file looks like?:
> {{{cat work/compwrap/cc/usr/bin/clang}}}
It would be easier if you told me where I should look for the relative
directory {{{work/compwrap/.....}}}:
{{{
$ cat
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_grpc/py39-grpcio/work/compwrap/objc/usr/bin/clang
#!/bin/bash
exec /usr/bin/clang -Os -I/opt/local/include
-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk
-pipe ${MACPORTS_LEGACY_SUPPORT_CPPFLAGS} "${@}"
$
}}}
Note: I've seen that the invocation (erroneously) requests
MacOS**11.3**.sdk instead of MacOS**11**.sdk, it appears to fail to
resolve symlinks and find some header files. So, it may be that the given
{{{-isysroot}}} is killing the build, I'm not sure. That would be an Apple
bug, but it's easier/quicker for Macports to work around it, than to wait
for Apple to get off their tail and fix it.
--
Ticket URL: <https://trac.macports.org/ticket/63351#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list