Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'bazel coverage' fails for C/C++ targets #199

Open
ljessendk opened this issue Oct 30, 2024 · 0 comments
Open

'bazel coverage' fails for C/C++ targets #199

ljessendk opened this issue Oct 30, 2024 · 0 comments

Comments

@ljessendk
Copy link

It seems that the toolchain doesn't support building C/C++ targets with coverage.

Steps to reproduce:

  1. cd examples/rules_cc
  2. bazel coverage ...

Output:

ld.lld: error: undefined symbol: llvm_gcda_start_file
>>> referenced by hello_world.cc
>>>               bazel-out/k8-fastbuild/bin/_objs/hello_world/hello_world.o:(__llvm_gcov_writeout)

bazel 7.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant