* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
@ 2024-04-17 8:58 ` rguenth at gcc dot gnu.org
2024-04-17 9:47 ` gejoed at rediffmail dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-04-17 8:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
From reading what the gcov code does it somehow means that the gcda and gcno
files were not created consistently.
You can use gcov-dump to check the stamp, for an example pair I have around
I see consistent stamps:
> gcov-dump-13 t.gcda
t.gcda:data:magic `gcda':version `B32*'
t.gcda:stamp 3774884159
t.gcda:checksum 2538568055
...
> gcov-dump-13 t.gcno
t.gcno:note:magic `gcno':version `B32*'
t.gcno:stamp 3774884159
t.gcno:checksum 0
...
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
2024-04-17 8:58 ` [Bug gcov-profile/114751] " rguenth at gcc dot gnu.org
@ 2024-04-17 9:47 ` gejoed at rediffmail dot com
2024-04-18 5:05 ` gejoed at rediffmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: gejoed at rediffmail dot com @ 2024-04-17 9:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #2 from Gejoe <gejoed at rediffmail dot com> ---
For me, it is like this (just keeping the sample filenames as such but the
values are real ones shown while checking with gcov-dump) :
$gcov-dump ./obj-dir-path/src-file.gcda
./obj-dir-path/src-file.gcda:data:magic `gcda':version `B14*'
./obj-dir-path/src-file.gcda:stamp 2912455990
:
<the rest truncated>
$ gcov-dump ./obj-dir-path/src-file.gcno
./obj-dir-path/src-file.gcno:note:magic `gcno':version `B14*'
./obj-dir-path/src-file.gcno:stamp 2912494680
:
<the rest truncated>
Does this indicate something more to be checked ?
In the previous branch where gcc 10.3.0 is used, I could see same stamp value
for the gcov-dump of same gcda and gcno files there - 3176078538.
Awaiting reply.
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
2024-04-17 8:58 ` [Bug gcov-profile/114751] " rguenth at gcc dot gnu.org
2024-04-17 9:47 ` gejoed at rediffmail dot com
@ 2024-04-18 5:05 ` gejoed at rediffmail dot com
2024-04-23 8:26 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: gejoed at rediffmail dot com @ 2024-04-18 5:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #3 from Gejoe <gejoed at rediffmail dot com> ---
Can I get a reply on what needs to be checked next ?
Thank you for the support team !
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
` (2 preceding siblings ...)
2024-04-18 5:05 ` gejoed at rediffmail dot com
@ 2024-04-23 8:26 ` pinskia at gcc dot gnu.org
2024-04-23 10:47 ` gejoed at rediffmail dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-04-23 8:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 114820 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
` (3 preceding siblings ...)
2024-04-23 8:26 ` pinskia at gcc dot gnu.org
@ 2024-04-23 10:47 ` gejoed at rediffmail dot com
2024-04-24 5:03 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: gejoed at rediffmail dot com @ 2024-04-23 10:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #5 from Gejoe <gejoed at rediffmail dot com> ---
(In reply to Gejoe from comment #2)
> For me, it is like this (just keeping the sample filenames as such but the
> values are real ones shown while checking with gcov-dump) :
>
> $gcov-dump ./obj-dir-path/src-file.gcda
> ./obj-dir-path/src-file.gcda:data:magic `gcda':version `B14*'
> ./obj-dir-path/src-file.gcda:stamp 2912455990
> :
> <the rest truncated>
>
> $ gcov-dump ./obj-dir-path/src-file.gcno
> ./obj-dir-path/src-file.gcno:note:magic `gcno':version `B14*'
> ./obj-dir-path/src-file.gcno:stamp 2912494680
> :
> <the rest truncated>
>
> Does this indicate something more to be checked ?
>
> In the previous branch where gcc 10.3.0 is used, I could see same stamp
> value for the gcov-dump of same gcda and gcno files there - 3176078538.
>
> Awaiting reply.
>
> Thanks.
Hi team,
Can I expect any reply on my message posted above ?
Thanks,
Gejoe
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
` (4 preceding siblings ...)
2024-04-23 10:47 ` gejoed at rediffmail dot com
@ 2024-04-24 5:03 ` rguenth at gcc dot gnu.org
2024-04-24 11:35 ` gejoed at rediffmail dot com
2024-04-25 6:24 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-04-24 5:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
I have no idea why the values differ but I suspect the copying since we seem to
use the file modification time at some point. As a workaround I would suggest
to binary-patch one of the file to make the stamp match the other ...
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
` (5 preceding siblings ...)
2024-04-24 5:03 ` rguenth at gcc dot gnu.org
@ 2024-04-24 11:35 ` gejoed at rediffmail dot com
2024-04-25 6:24 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: gejoed at rediffmail dot com @ 2024-04-24 11:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #7 from Gejoe <gejoed at rediffmail dot com> ---
(In reply to Richard Biener from comment #6)
> I have no idea why the values differ but I suspect the copying since we seem
> to use the file modification time at some point. As a workaround I would
> suggest
> to binary-patch one of the file to make the stamp match the other ...
We do use __gcov_dump() in the program execution to get all the gcda files, tar
them up to a file name and we move that to the workspace where build was done
we use a script to run gcov so that gcov files are created finally. So, will
there be any changes in GCC 11.x (compared to 10.3.0) where __gcov_dump and the
ensuing copy process need to be taken care in a better way ?
I'm not sure of the binary-patching of the file mentioned above. Can you
elaborate that suggestion ?
Thank you for bearing with my queries patiently and for the possible help
given.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug gcov-profile/114751] .gcda:stamp mismatch with notes file
2024-04-17 7:39 [Bug gcov-profile/114751] New: .gcda:stamp mismatch with notes file gejoed at rediffmail dot com
` (6 preceding siblings ...)
2024-04-24 11:35 ` gejoed at rediffmail dot com
@ 2024-04-25 6:24 ` rguenth at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-04-25 6:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114751
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> ---
I don't know of any difference compared to older compilers but gcov isn't my
main expertise. I fear you have to dig into the gcov code to see where and how
we exactly invent the stamp to see where it goes wrong for you.
It might be possible to ask on the gcc-help@ mailinglist as well as that might
receive a wider audience than bugzilla.
^ permalink raw reply [flat|nested] 9+ messages in thread