Skip to content

WSL2 UBUNTU2204 buildtool build failed #15743

@benson0308

Description

@benson0308

(05:47:09) ERROR: /apollo_workspace/.cache/bazel/679551712d2357b63e6e0ce858ebf90e/external/com_google_protobuf/BUILD:410:11: Compiling src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc [for host] failed: (Exit 1): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF bazel-out/host/bin/external/com_google_protobuf/_objs/protoc_lib/cpp_padding_optimizer.d ... (remaining 49 arguments skipped)
In file included from /usr/include/c++/11/bits/char_traits.h:39,
from /usr/include/c++/11/string:40,
from external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_options.h:36,
from external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_message_layout_helper.h:38,
from external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.h:38,
from external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc:31:
/usr/include/c++/11/bits/stl_algobase.h: In instantiation of ‘_Iterator std::__niter_base(_Iterator) [with _Iterator = const google::protobuf::Descriptor**]’:
/usr/include/c++/11/bits/stl_uninitialized.h:1046:46: required from ‘_ForwardIterator std::__relocate_a(_InputIterator, _InputIterator, _ForwardIterator, _Allocator&) [with _InputIterator = const google::protobuf::Descriptor**; _ForwardIterator = const google::protobuf::Descriptor**; _Allocator = std::allocator<const google::protobuf::Descriptor*>]’
/usr/include/c++/11/bits/stl_vector.h:456:26: required from ‘static std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_S_do_relocate(std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::_Tp_alloc_type&, std::true_type) [with _Tp = const google::protobuf::Descriptor*; _Alloc = std::allocator<const google::protobuf::Descriptor*>; std::vector<_Tp, _Alloc>::pointer = const google::protobuf::Descriptor**; std::vector<_Tp, _Alloc>::_Tp_alloc_type = std::vector<const google::protobuf::Descriptor*>::_Tp_alloc_type; std::true_type = std::integral_constant<bool, true>]’
/usr/include/c++/11/bits/stl_vector.h:469:23: required from ‘static std::vector<_Tp, _Alloc>::pointer std::vector<_Tp, _Alloc>::_S_relocate(std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::pointer, std::vector<_Tp, _Alloc>::_Tp_alloc_type&) [with _Tp = const google::protobuf::Descriptor*; _Alloc = std::allocator<const google::protobuf::Descriptor*>; std::vector<_Tp, _Alloc>::pointer = const google::protobuf::Descriptor**; std::vector<_Tp, _Alloc>::_Tp_alloc_type = std::vector<const google::protobuf::Descriptor*>::_Tp_alloc_type]’
/usr/include/c++/11/bits/vector.tcc:461:34: required from ‘void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const google::protobuf::Descriptor*}; _Tp = const google::protobuf::Descriptor*; _Alloc = std::allocator<const google::protobuf::Descriptor*>; std::vector<_Tp, _Alloc>::iterator = std::vector<const google::protobuf::Descriptor*>::iterator]’
/usr/include/c++/11/bits/vector.tcc:121:21: required from ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const google::protobuf::Descriptor*}; _Tp = const google::protobuf::Descriptor*; _Alloc = std::allocator<const google::protobuf::Descriptor*>; std::vector<_Tp, _Alloc>::reference = const google::protobuf::Descriptor*&]’
/usr/include/c++/11/bits/stl_vector.h:1204:21: required from ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = const google::protobuf::Descriptor*; _Alloc = std::allocator<const google::protobuf::Descriptor*>; std::vector<_Tp, _Alloc>::value_type = const google::protobuf::Descriptor*]’
external/com_google_protobuf/src/google/protobuf/compiler/cpp/cpp_helpers.h:568:25: required from here
/usr/include/c++/11/bits/stl_algobase.h:313:28: internal compiler error: Segmentation fault
313 | __niter_base(_Iterator __it)
| ~~~~~~~~~~^~~~
0x7c8e8017751f ???
./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7c8e8015ed8f __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
0x7c8e8015ee3f __libc_start_main_impl
../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See file:///usr/share/doc/gcc-11/README.Bugs for instructions.
Target //dev/buildtool/mock:mock_install failed to build
Use --verbose_failures to see the command lines of failed build steps.
(05:47:09) INFO: Elapsed time: 35.477s, Critical Path: 8.11s
(05:47:09) INFO: 28719 processes: 27929 internal, 790 local.
(05:47:09) FAILED: Build did NOT complete successfully
(05:47:09) FAILED: Build did NOT complete successfully
[buildtool] 2025-11-23 13:47:09 ERROR Encounter ErrCode.BazelErr
[buildtool] 2025-11-23 13:47:09 ERROR hint: Compiling and install failed!
[buildtool] 2025-11-23 13:47:09 ERROR solution: Please checkout the build file by following bazel error hints

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions