compile error in macos
git clone https://github.com/lyft/envoy-mobile.git --recursive
cd envoy-mobile
export ANDROID_HOME=/Users/mcbook/Library/Android/sdk export ANDROID_NDK_HOME=/Users/mcbook/adt-bundle-mac-x86_64-20140702/sdk/ndk/21.3.6528147
bazelisk build android_dist --config=release-android --fat_apk_cpu=x86,armeabi-v7a,arm64-v8a
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:302:18: Dependency 'bazel_skylib' has already been declared with a different version. Found urls=("https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz"), expected ("https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/be3b1fc838386bdbea39d9750ea4411294870575.tar.gz", "https://github.com/bazelbuild/bazel-skylib/archive/be3b1fc838386bdbea39d9750ea4411294870575.tar.gz")
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:302:18: Dependency 'com_google_protobuf' has already been declared with a different version. Found urls=("https://github.com/protocolbuffers/protobuf/releases/download/v3.16.0/protobuf-all-3.16.0.tar.gz",), expected ("https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/19ca196e4dcc8ff03136c950cf1bc298d5e1ce1e.tar.gz", "https://github.com/protocolbuffers/protobuf/archive/19ca196e4dcc8ff03136c950cf1bc298d5e1ce1e.tar.gz")
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:311:18: Dependency 'zlib' has already been declared with a different rule kind. Found bind, expected http_archive
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:302:18: Dependency 'bazel_skylib' has already been declared with a different version. Found urls=("https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz"), expected ("https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/archive/be3b1fc838386bdbea39d9750ea4411294870575.tar.gz", "https://github.com/bazelbuild/bazel-skylib/archive/be3b1fc838386bdbea39d9750ea4411294870575.tar.gz")
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:302:18: Dependency 'com_google_protobuf' has already been declared with a different version. Found urls=("https://github.com/protocolbuffers/protobuf/releases/download/v3.16.0/protobuf-all-3.16.0.tar.gz",), expected ("https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/19ca196e4dcc8ff03136c950cf1bc298d5e1ce1e.tar.gz", "https://github.com/protocolbuffers/protobuf/archive/19ca196e4dcc8ff03136c950cf1bc298d5e1ce1e.tar.gz")
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:311:18: Dependency 'zlib' has already been declared with a different rule kind. Found bind, expected http_archive
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/rules_proto_grpc/repositories.bzl:302:18: Dependency 'io_grpc_grpc_java' has already been declared with a different version. Found urls=("https://github.com/grpc/grpc-java/archive/v1.24.0.tar.gz",), expected ("https://mirror.bazel.build/github.com/grpc/grpc-java/archive/e341d4c6554ddac8f883c03357e2b9646c090ff1.tar.gz", "https://github.com/grpc/grpc-java/archive/e341d4c6554ddac8f883c03357e2b9646c090ff1.tar.gz")
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:113:18: engflow_remote_config not using checked in configs; registry was set to 'docker.io' and toolchain_config_suite_spec is configured for 'marketplace.gcr.io'
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:113:18: engflow_remote_config_clang not using checked in configs; registry was set to 'docker.io' and toolchain_config_suite_spec is configured for 'marketplace.gcr.io'
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/version_check.bzl:68:14:
Current running Bazel is ahead of bazel-toolchains repo. Please update your pin to bazel-toolchains repo in your WORKSPACE file.
DEBUG: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/bazel_toolchains/rules/rbe_repo/checked_in.bzl:113:18: engflow_remote_config_clang_asan not using checked in configs; registry was set to 'docker.io' and toolchain_config_suite_spec is configured for 'marketplace.gcr.io'
INFO: Build option --fat_apk_cpu has changed, discarding analysis cache.
WARNING: Download from https://github.com/coursier/coursier/releases/download/v2.0.0-RC3-4/coursier.jar failed: class java.io.IOException GET returned 403 Forbidden
WARNING: /Users/mcbook/envoy-mobile/library/common/jni/BUILD:52:27: target 'libndk_envoy_jni.jnilib' is both a rule and a file; please choose another name for the rule
INFO: Analyzed target //:android_dist (0 packages loaded, 26457 targets configured).
INFO: Found 1 target...
ERROR: /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/external/com_google_protobuf/BUILD:355:11: Linking external/com_google_protobuf/libprotoc_lib.a [for host] failed: (Exit 1): libtool failed: error executing command
(cd /private/var/tmp/_bazel_tormentous/8c9fc94412d372afbc6d7caa3d353c3f/execroot/envoy_mobile &&
exec env -
PATH=/usr/bin:/bin:/opt/homebrew/bin:/usr/local/bin:/opt/local/bin
PWD=/proc/self/cwd
/usr/bin/libtool @bazel-out/host/bin/external/com_google_protobuf/libprotoc_lib.a-2.params)
Execution platform: @local_config_platform//:host
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: no output file specified (specify with -o output)
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table
exec env -
PATH=/usr/bin:/bin:/opt/homebrew/bin:/usr/local/bin:/opt/local/bin
PWD=/proc/self/cwd
/usr/bin/libtool @bazel-out/host/bin/external/com_google_protobuf/libprotoc_lib.a-2.params)
Execution platform: @local_config_platform//:host
INFO: Elapsed time: 23.220s, Critical Path: 12.59s
INFO: 14 processes: 5 internal, 9 local.
FAILED: Build did NOT complete successfully