We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information
- OS Platform and Distribution (Linux Ubuntu 20.04):
- Apollo installed from (source ):
- Apollo version (11.0):
Steps to reproduce the issue:
- Please use bullet points and include as much details as possible:
Supporting materials (screenshots, command lines, code/script snippets):
在编译Apollo11.0时,终端输入buildtool build后出现
(09:04:33) ERROR: /apollo_workspace/modules/common_msgs/map_msgs/BUILD:65:14: Generating C++ proto_library //modules/common_msgs/map_msgs:_map_geometry_proto failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--proto_path=external/apollo_src' '--cpp_out=bazel-out/k8-opt/bin' ... (remaining 6 arguments skipped)
modules/common_msgs/map_msgs/map_geometry.proto: Input is shadowed in the --proto_path by "external/apollo_src/modules/common_msgs/map_msgs/map_geometry.proto". Either use the latter file as your input or reorder the --proto_path so that the former file's location comes first.
Target //dev/buildtool/mock:mock_install failed to build
Use --verbose_failures to see the command lines of failed build steps.
(09:04:33) ERROR: /apollo_workspace/dev/buildtool/mock/BUILD:9:8 Middleman _middlemen/dev_Sbuildtool_Smock_Smock_Uinstall-runfiles failed: (Exit 1): protoc failed: error executing command bazel-out/k8-opt-exec-2B5CBBC6/bin/external/com_google_protobuf/protoc '--proto_path=external/apollo_src' '--cpp_out=bazel-out/k8-opt/bin' ... (remaining 6 arguments skipped)
(09:04:33) INFO: Elapsed time: 201.805s, Critical Path: 13.64s
(09:04:33) INFO: 270 processes: 33 internal, 237 local.
(09:04:33) FAILED: Build did NOT complete successfully
(09:04:33) FAILED: Build did NOT complete successfully
[buildtool] 2026-02-27 17:04:33 ERROR Encounter ErrCode.BazelErr
[buildtool] 2026-02-27 17:04:33 ERROR hint: Compiling and install failed!
[buildtool] 2026-02-27 17:04:33 ERROR solution: Please checkout the build file by following bazel error hints