bazel: bazel-built protoc segfaults on mac os monterey

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 the protoc tool.

See https://github.com/protocolbuffers/protobuf/issues/8884 for context.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 18 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I have had success working around this with the command line option --incompatible_linkopts_to_linklibs=false. I filed https://github.com/bazelbuild/bazel/issues/14273 with a suggested proper fix.

@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.

@llivshitz-quotient can you try building https://github.com/bazelbuild/bazel/pull/14275 locally and seeing if that fixes it for you?