bazelbuild / bazelbuild/examples
cpp-tutorial build error , Linking main/hello-world failed
- Dominant language
- Starlark
- Stars
- 957
- Forks
- 578
- Avg merge
- 3d 22h
- Merged PRs (30d)
- 1
Description
bazel build //main:hello-world in m1 mac
```
INFO: Analyzed target //main:hello-world (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR:/bazel-examples/cpp-tutorial/stage1/main/BUILD:3:10: Linking main/hello-world failed: (Exit 1): cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh @bazel-out/darwin_arm64-fastbuild/bin/main/hello-world-2.params
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
clang: error: invalid linker name in argument '-fuse-ld=-debugger-tuning=lldb'
Target //main:hello-world failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.259s, Critical Path: 0.07s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
```
Sounds my clang-14 can't handle`-fuse-ld=-debugger-tuning=lldb` ,by the way,I found it can deal with`-debugger-tuning=-fuse-ld=lldb`.Maybe I should change the command `-fuse-ld=-debugger-tuning=lldb` in bazel-out?But I don‘t know how to change it.Have you ever had the same situation?
Contributor guide
Assessment
This issue has not been assessed yet.