Reproduction of grpc/grpc#37251
Reproduced using a local grpc/grpc repo checked out at tag v1.66.0 after applying the matching bazel-central-registry patches.
Fixed in grpc module version 1.66.0.bcr.1 by bazelbuild/bazel-central-registry: grpc 1.66.0: Add current_py_cc_libs to pyx_library #2685.
$ bazel build //...
[ ...snip... ]
ERROR: .../external/grpc~/src/python/grpcio/grpc/_cython/BUILD.bazel:25:12:
Linking external/grpc~/src/python/grpcio/grpc/_cython/cygrpc.so failed:
(Exit 1): cc_wrapper.sh failed: error executing CppLink command
(from target @@grpc~//src/python/grpcio/grpc/_cython:cygrpc.so)
external/bazel_tools~cc_configure_extension~local_config_cc/cc_wrapper.sh
@bazel-out/darwin_arm64-fastbuild/bin/external/grpc~/src/python/grpcio/grpc/_cython/cygrpc.so-2.params
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Undefined symbols for architecture arm64:
"_PyArg_UnpackTuple", referenced from:
__Pyx_Coroutine_Throw(_object*, _object*) in cygrpc.o
__Pyx_async_gen_athrow_send(__pyx_PyAsyncGenAThrow*, _object*) in cygrpc.o