Closed ZhenshengLee closed 8 months ago
It’s more likely the problem is in cc toolchain setup than cc_bunary
It’s more likely the problem is in cc toolchain setup than cc_bunary
Thanks for your reply! I use bazel for a very short time.
I will get a deep learn in https://bazel.build/extending/toolchains and https://bazel.build/tutorials/ccp-toolchain-config
@comius could you give me some advice about how to check the root cause?
Please ask on slack. I believe other users can help you.
the issue is solved by change compiler of create_cc_toolchain_config_info from g++
to gcc
adding -lstdc++
, the toolchain config is based on https://github.com/hexdae/bazel-arm-none-eabi/blob/master/toolchain/config.bzl
bazel configs
bazel 7.0.2 with platforms
workspace config
cc toolchain config
toolchains/V5L/BUILD
toolchains/V5L/V5L_cc_toolchain_config.bzl
bazel command
--platforms=//bazel/platforms:drive_sdk_6081+linux
explain.log is in follow
bazel output
extra infomation
only linking with protobuf lib causing the compiling error, which means only cc_binary causing the issue.