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
- bazel_4: Fix Bazel-built protoc segfault on macOS Monterey This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - https://github.com/bazelbuild/bazel/is... — committed to kalbasit/nixpkgs by kalbasit 3 years ago
- bazel_4: Fix Bazel-built protoc segfault on macOS Monterey (#147097) This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - https://github.com/bazelb... — committed to NixOS/nixpkgs by kalbasit 3 years ago
- bazel_4: Fix Bazel-built protoc segfault on macOS Monterey This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - https://github.com/bazelbuild/bazel/is... — committed to NixOS/nixpkgs by kalbasit 3 years ago
- bazel_4: Fix Bazel-built protoc segfault on macOS Monterey This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - https://github.com/bazelbuild/bazel/is... — committed to NixOS/nixpkgs by kalbasit 3 years ago
- bazel_4: Fix Bazel-built protoc segfault on macOS Monterey (#147097) This was fixed by enabling the user_link_flags_feature for macosx cc_toolchain_config. References: - https://github.com/bazelb... — committed to mkg20001/nixpkgs by kalbasit 3 years ago
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?