emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#63517: closed (Fixing lcov usage?)


From: GNU bug Tracking System
Subject: bug#63517: closed (Fixing lcov usage?)
Date: Mon, 22 May 2023 15:30:02 +0000

Your message dated Mon, 22 May 2023 17:29:19 +0200
with message-id <874jo4wfjk.fsf@gnu.org>
and subject line Re: bug#63517: Fixing lcov usage?
has caused the debbugs.gnu.org bug report #63517,
regarding Fixing lcov usage?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
63517: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63517
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Fixing lcov usage? Date: Mon, 15 May 2023 14:10:41 +0200 (CEST)
Hello,
I want use lcov to generate a coverage report for a C program, but I find out I always need to add "findutils" package to my shell in order for "lcov" to work. Shouldn't "findutils" be added to the propagated-inputs of "lcov", to have it available at runtime?

Here is a short description of the problem which can be tested on the attached (empty) C program "main.c".

1. The shell I want to use:

guix shell -C gcc-toolchain lcov

2. The commands I run in the shell:

gcc -fprofile-arcs -ftest-coverage -g -O0 -c main.c
gcc -fprofile-arcs -ftest-coverage -g -O0 -lgcov main.o -o my_program
./my_program
lcov --directory . --capture --output-file coverage.info

3. The problem I get: lcov is unable to find the .gcda files for its coverage report (message ".geninfo-real: WARNING: no .gcda files found in . - skipping!").

Everything works fine with "guix shell -C gcc-toolchain lcov findutils", or if I add "findutils" to the propagated-inputs of "lcov" as in the proposed patch (for the commit 13e252af79ffb85bc68d8104fdf700269b903875 on master), which I have tested by defining and building the modified package in a local copy of the gnu/packages/code.scm module.

Of coarse I am open to recognize my errors if I have missed something in the package usage :-) or if I have misunderstood the usage of propagated-inputs (but it didn't work with findutils as "normal" input)... or if there are better solutions.

Thank you in advance,
Luca

--
Luca CIRROTTOLA
Research software engineer @INRIA - research center of the university of Bordeaux and Pau
Personal webpage: https://lcirrottola.github.io/
Tel: +33 5 24 57 41 21
200 Avenue de la Vieille Tour
33405 Talence cedex
France

Attachment: main.c
Description: Text Data

Attachment: log_patch_13e252af79_lcov
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#63517: Fixing lcov usage? Date: Mon, 22 May 2023 17:29:19 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi Luca,

Luca Cirrottola <luca.cirrottola@inria.fr> skribis:

> I want use lcov to generate a coverage report for a C program, but I find out 
> I always need to add "findutils" package to my shell in order for "lcov" to 
> work. Shouldn't "findutils" be added to the propagated-inputs of "lcov", to 
> have it available at runtime? 

I took a slightly less intrusive approach:

  
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=88a2871d8f82a7280486c2a30cc9b510ee8b2b5c

Thanks for the bug report & proposal!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]