-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
bazel-built protoc segfaults on mac os monterey #14216
Comments
Probably related #14206 sounds like user's tools setup might be the issue |
FWIW, I can no longer build Bazel itself on macOS Monterey -- exact same issue here: @susinmotion any ideas? |
A snippet of the error message:
|
@Wyverald have you tried cleaning the cache ... ? I could build protoc in the end following the steps I mentioned in my issue... |
Sadly I don't have any wisdom to add here :( |
I don't understand why, but it looks like the difference (between full xcode and the CLI tools) is how the binary is linked (
I tried to capture the actual command-line args, and that confirmed different flags were used to link:
|
I wonder if this is a bug in the CLT setup in monterey. Unfortunately it's hard to test if you already have Xcode |
Have the same issue, following the topic... |
@demorgan104 tried cleaning the cache and your described solution still get the same error |
Thanks, installing XCode worked, you do need to do a clean and it works fine. |
FWIW, the Xcode workaround (as detailed here) worked for me too. |
I have had success working around this with the command line option |
(Wearing triaging hat): how should we currently categorize this issue? Is there still something actionable to support here? |
Looks like #14275 might fix it. |
@gregestren tried all the solutions mentioned above but still get the following error: |
@llivshitz-quotient can you try building #14275 locally and seeing if that fixes it for you? |
@keith @brentleyjones #14275 fixed the issue for me, and I filed a PR to nixpkgs to get that patched until it's fixed and released here. |
This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - bazelbuild/bazel#14216 - bazelbuild/bazel#14275
This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - bazelbuild/bazel#14216 - bazelbuild/bazel#14275
This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - bazelbuild/bazel#14216 - bazelbuild/bazel#14275 (cherry picked from commit dc8d4f3)
This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - bazelbuild/bazel#14216 - bazelbuild/bazel#14275 (cherry picked from commit dc8d4f3)
) This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - bazelbuild/bazel#14216 - bazelbuild/bazel#14275
Users that have upgraded their operating system to
12.0.1
and have a dependency on @com_google_protobuf//:protoc are experiencing segfaults when running theprotoc
tool.See protocolbuffers/protobuf#8884 for context.
The text was updated successfully, but these errors were encountered: