michael-christen / toolbox

My very own monorepo
https://michael-christen.github.io/toolbox/
MIT License
3 stars 1 forks source link

protobuf bazel module stuck at 24.4, 26.0 causes segfault when constructing descriptor_pb2.py #91

Open michael-christen opened 2 months ago

michael-christen commented 2 months ago
# XXX: This was causing the descriptor_pb2.py segfault with
# //modules/blinky:service
# external/protobuf~/.: warning: directory does not exist.
# ERROR: /home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/external/nanopb~/BUILD.bazel:88:17: ProtoCompile external/nanopb~/generator/proto/google/protobuf/descriptor_pb2.py [for tool] failed: (Segmentation fault): protoc failed: error executing ProtoCompile command (from target @@nanopb~//:descriptor_py_proto_genproto)
#   (cd /home/mchristen/.local/tmp/bazel/_bazel_mchristen/eabc9c58e7a2790b61df5bad4df6e1e8/sandbox/linux-sandbox/3486/execroot/_main && \
#   exec env - \
#     PATH=/bin:/usr/bin:/usr/local/bin \
#   bazel-out/k8-opt-exec-ST-d57f47055a04/bin/external/protobuf~/protoc '--python_out=bazel-out/k8-opt-exec-ST-d0eb3b6eed71/bin/external/nanopb~/generator/proto' -Iexternal/nanopb~/generator/proto external/nanopb~/generator/proto/google/protobuf/descriptor.proto)
#
# Version 26.0 caused a failure when compiling nanopb