New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gen_wkt_cc_sources failed: dyld[69712]: missing symbol called on Mac ARM64 #12173
Comments
Hi, thanks for reporting this! I'm unable to reproduce this. I have an M1 macbook with macos 13.2.1, bazel 6.1, and clang 15.0.7 and I can build 22.1 just fine. If you modify Otherwise, could you run with |
Hi @mkruskal-google, thanks for the reply. Unfortunately, changing to
I don't think that's what's actually written. There are two errors mentioned. To go back to the original issue, I have attached the full logs with the debug options. If so, I am not exactly sure what's the best way to fix. EDIT: Doing something like |
We ran into a similar issue on our end:
This was caused by This is a small patch that would fix it
|
Before the patch
After the patch
|
Hi, I am getting below error. Any fix or work around for this?
|
@Chellapandi seems your message is trunked after the otherwise you'll need: https://github.com/protocolbuffers/protobuf/pull/12320/files Personally I'm using: But there is still plenty of errors due to bad management of |
@Mizux Thanks for your quick response.
I have raised an issue here. Please let me know if you faced the same issue. |
Update to a protobuf version that contains a fix for protocolbuffers/protobuf#12173 (macOS build error). Set "CC=clang" when building the protobuf repo on macOS, which fixes build errors on my machine (macOS 13.3.1, M1). Change-Id: Id8abb054479454b7ccbded5a6fa4d74f3d3c236d Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/489315 Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Joseph Tsai <joetsai@digital-static.net> Reviewed-by: Lasse Folger <lassefolger@google.com>
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 :protobuf
What 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
The text was updated successfully, but these errors were encountered: