-
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
Faulty tool path handling for "gcov" tool #15411
Comments
@c-mita can you triage? |
Hi @UlrichEckhardt, I encountered this issue when I was setting up a hermetic gcc toolchain. I managed to resolve it by,
Hopefully this helps! |
This was failing for me as well. Fixed it by installing |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
The tool_path accepts either toolchain relative paths or absolute paths, so it's pretty hard to reference gcov binary from external dep. Workaround seems to be using |
Description of the bug:
The handling of tool paths in C++ toolchains is inconsistent, it works as expected for tools like
gcc
,ld
andar
, but not forgcov
. In the end,gcov
is not found and no coverage is generated. The error you find in the test.log file isNote here the duplication of
toolchains/mingw
in the path.What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I haven't fully extracted a minimal reproducible example yet, but here is the rough layout of it:
toolchain/cc_toolchain_config.bzl
toolchain/gcc.sh
toolchain/gcov.sh
toolchain/BUILD
Which operating system are you running Bazel on?
Ubuntu
What is the output of
bazel info release
?release 5.1.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
gcov
. For all others tools, there are actions (compile, link etc) and action_configs that reference the tools, but not forgcov
. That also means I can't define e.g. aPATH
to that tool in order to help Bazel find it.gcov
from an archive.The text was updated successfully, but these errors were encountered: