-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 does not work when use with gcc 8.3.0 (when use gcc 4.9.2, it works) #7719
Comments
I encountered the same issue. Is there any possible work around? |
@cztchoice @yami have you tried running coverage using |
I hava tried old experimental_cc_coverage, does not work, too. My workaround is make a soft link to subdir n WORKSPACE folder to make lcov happy. (in collect_cc_coverage.sh) I also find a bug in LcovParser.java where
should be to show branch coverage
|
@cztchoice Hi. What does |
I noticed two problems: #9406 (comment). I think that is the reason why coverage does not work. |
Please re-open if this is still an issue. |
MacOS Monterey Still empty _coverage_report.dat |
@iminders Were you able to find a solution to this problem? |
Description of the problem / feature request:
bazel coverage does not work when use with gcc 8.3.0 (when use gcc 4.9.2, it works)
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
demo: https://github.com/cztchoice/bazel_coverage_demo
does not generate single
.dat
file as expected, when compile with gcc 8.3.0What operating system are you running Bazel on?
What's the output of
bazel info release
?CentOS Linux release 7.5.1804 (Core) release 0.21.0
Mac: Build label: 0.23.2-homebrew, has this issue, too
mac gcc version
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?Have you found anything relevant by searching the web?
no
Any other information, logs, or outputs that you want to share?
demo: https://github.com/cztchoice/bazel_coverage_demo
expect result(use bazel 0.21 with gcc (GCC) 4.9.2 20150212 (Red Hat 4.9.2-6))
The text was updated successfully, but these errors were encountered: