What version of protobuf and what language are you using?
Version: v22.1 (also happens with 22.0, but not before)
Language: C++
What operating system (Linux, Windows, ...) and version?
MacOs Version 13.2.1 (22D68) ARM64
What runtime / compiler are you using (e.g., python version or gcc version)
Homebrew clang version 15.0.7
Bazel 6.1
Python 3.11.2
What did you do?
Steps to reproduce the behavior:
- Followed the instructions from https://github.com/protocolbuffers/protobuf/blob/main/src/README.md to get the sources using git
bazel build :protoc :protobuf
What did you expect to see
Successful build
What did you see instead?
ERROR: /Users/foo/dev/tmp/protobuf/src/google/protobuf/BUILD.bazel:117:8: Executing genrule //src/google/protobuf:gen_wkt_cc_sources failed: (Aborted): bash failed: error executing command (from target //src/google/protobuf:gen_wkt_cc_sources) /bin/bash -c ... (remaining 1 argument skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
dyld[69712]: missing symbol called
/bin/bash: line 1: 69712 Abort trap: 6 bazel-out/darwin_arm64-opt-exec-2B5CBBC6/bin/src/google/protobuf/compiler/protoc_nowkt --cpp_out=dllexport_decl=PROTOBUF_EXPORT:bazel-out/darwin_arm64-fastbuild/bin/src/google/protobuf/wkt --proto_path=$(dirname $(dirname $(dirname src/google/protobuf/any.proto))) src/google/protobuf/any.proto src/google/protobuf/api.proto src/google/protobuf/duration.proto src/google/protobuf/empty.proto src/google/protobuf/field_mask.proto src/google/protobuf/source_context.proto src/google/protobuf/struct.proto src/google/protobuf/timestamp.proto src/google/protobuf/type.proto src/google/protobuf/wrappers.proto
ERROR: /Users/foo.hallot/dev/tmp/protobuf/src/google/protobuf/BUILD.bazel:142:11 Middleman _middlemen/_S_Ssrc_Sgoogle_Sprotobuf_Cwkt_Ucc_Uproto-cc_library-compile failed: (Aborted): bash failed: error executing command (from target //src/google/protobuf:gen_wkt_cc_sources) /bin/bash -c ... (remaining 1 argument skipped)
There are also repeated warnings like:
warning: unknown warning option '-Wno-deprecated-non-prototype' [-Wunknown-warning-option]
Those are not build-breaking, but maybe they indicate a toolchain issue?
It also looks like I am not the only one having this issue:
https://stackoverflow.com/questions/75551678/bazel-build-proto-failed-due-to-missing-symbol-called-in-mac
What version of protobuf and what language are you using?
Version: v22.1 (also happens with 22.0, but not before)
Language: C++
What operating system (Linux, Windows, ...) and version?
MacOs Version 13.2.1 (22D68) ARM64
What runtime / compiler are you using (e.g., python version or gcc version)
Homebrew clang version 15.0.7
Bazel 6.1
Python 3.11.2
What did you do?
Steps to reproduce the behavior:
bazel build :protoc :protobufWhat did you expect to see
Successful build
What did you see instead?
There are also repeated warnings like:
warning: unknown warning option '-Wno-deprecated-non-prototype' [-Wunknown-warning-option]Those are not build-breaking, but maybe they indicate a toolchain issue?
It also looks like I am not the only one having this issue:
https://stackoverflow.com/questions/75551678/bazel-build-proto-failed-due-to-missing-symbol-called-in-mac