Comments (7)
For the GLIBC issue, there are two options:
- compile and distribute grcov as a standalone binary (using musl instead of glibc);
- compile grcov on one of the loaner machines, so that the binary links to the libc version that's available on those machines.
It should definitely be possible to support older versions of gcc.
from grcov.
Could you try this binary (with the PATH modified to use gcc 4.9.4):
grcov.zip
from grcov.
The provided grcov binary runs.
I also tried running code-coverage.py
and it yields a report successfully: https://github.com/mjzffr/ccov-reports/tree/master/grcov-one-click-240417-f170ebfc2dfd/report
FYI: when using --no-download
on the one-click loaner I get an empty output.info on the one-click loaner (although this works fine locally when I place the same gcda/gcno zip files in ccov-artifacts).
python firefox-code-coverage/code-coverage.py workspace/build/src $MH_BRANCH $GECKO_HEAD_REV --grcov ./grcov --no-download
Running grcov... 0
Reading data file /home/worker/output.info
genhtml: ERROR: no valid records found in tracefile /home/worker/output.info
Traceback (most recent call last):
File "firefox-code-coverage/code-coverage.py", line 147, in <module>
main()
File "firefox-code-coverage/code-coverage.py", line 143, in main
generate_report(os.path.abspath(args.src_dir))
File "firefox-code-coverage/code-coverage.py", line 111, in generate_report
raise Exception("Error while running genhtml.")
Exception: Error while running genhtml.
(grcov) [root@6ad4646442bd ~]# cat output.info
TN:
from grcov.
I also tried running code-coverage.py and it yields a report successfully: https://github.com/mjzffr/ccov-reports/tree/master/grcov-one-click-240417-f170ebfc2dfd/report
Awesome, so from now on, whenever I release a new grcov version I can simply provide a standalone binary on https://github.com/marco-c/grcov/releases/latest.
FYI: when using --no-download on the one-click loaner I get an empty output.info on the one-click loaner (although this works fine locally when I place the same gcda/gcno zip files in ccov-artifacts).
Is the ccov-artifacts
directory you manually created in your working dir?
Here's the code that lists the artifacts:
https://github.com/marco-c/firefox-code-coverage/blob/master/code-coverage.py#L81
from grcov.
Is the ccov-artifacts directory you manually created in your working dir?
Here's the code that lists the artifacts:
https://github.com/marco-c/firefox-code-coverage/blob/master/code-coverage.py#L81
Perhaps it would be better to modify the parameter --no-download
into --with-artifacts=PATH_TO_ARTIFACTS
to avoid issues.
from grcov.
Yes, it was in my working dir.
Changing to --with-artifacts is a good idea, either way.
from grcov.
I opened #22 to support GCC < 4.9.0 (even though at this point it isn't strictly required, as we can just set the PATH to use GCC 4.9.4) and mozilla/firefox-code-coverage#4 to support --with-artifacts instead of --no-download (but on a one-click-loaner I guess it's easier for users to just let the script download the artifacts).
from grcov.
Related Issues (20)
- It says that llvm-profdata is missing but its on PATH HOT 4
- grcov fails to build on Windows with `undefined reference to __imp__ZN15crossbeam_`
- Coverage display on codecov.io does not match locally-generated HTML report HOT 1
- Behavior when no source directory is specified
- First line in a module-level comment appears as not covered HOT 1
- How to compute coverage of new/modified code with grcov for rust๏ผ HOT 4
- Release 0.8.12 is missing from Releases HOT 1
- Error parsing gcov branch information with negative count HOT 4
- Outputting files in a JUnit format HOT 1
- Windows w64devkit: no version found for gcov HOT 7
- Support output-type argument in addition to output-types
- Line coverage showing incorrect values when `tracing::instrument` attribute is used
- Log file path on parser error?
- cargo test failed in windows
- hits for line number reported as unsigned max int HOT 1
- Html report should show the branch count per line
- Output format to summarize gcno information
- More detail/documentation for "functions" coverage HOT 1
- Adding sub-path to output-path option does not create the directory path HOT 5
- Fix TODO on clippy false positive warning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grcov.