[prev in list] [next in list] [prev in thread] [next in thread]
List: ltp-coverage
Subject: Re: [Ltp-coverage] lcov doesn't work with gcov 4.4.4
From: "Osman, Ahmed" <ahmed_osman () mentor ! com>
Date: 2010-05-25 19:45:36
Message-ID: DDCCE3192951F14FB6B110D1FC819233082886B6 () NA1-MAIL ! mgc ! mentorg ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Sorry I missed the testcase.
From: Osman, Ahmed
Sent: Tuesday, May 25, 2010 12:45 PM
To: ltp-coverage@lists.sourceforge.net
Subject: lcov doesn't work with gcov 4.4.4
Hi All,
I used to run with gcov 4.3.3 and it went very well with lcov 1.7 and
when I upgraded to lcov 1.8, one of .gcda file hangs as geninfo is
calling now gcov with -a.
So I decided to upgrade to gcov 4.4.4 hoping that this will solve the
problem but unfortunately lcov doesn't wotk well with it.
Attached you will find the test case gcov-4.4.4-test.tar.gz. When
extracting you will find two directories "src" and "build"
First open file build/linux/vsim/Makefile to put the gcov locations for
4.3.3 and 4.4.4 then do the following:
1- cd build/linux
2- make -C vsim all
make: Entering directory `/u/rhino/aossman/test_gcov/build/linux/vsim'
rm -rf x.o x.exe x.gcno a.out x.gcda my.info /u/apache/htdocs/qa/ahmed
/u/prod/gnu/gcc/20100521/gcc-4.4.4-linux/bin/gcc -m32 -Wa,--32 -Wall -g
-fprofile-arcs -ftest-coverage ../../../src/vsim/x.c -o x.exe
x.exe
3 is divisable by 3
6 is divisable by 3
9 is divisable by 3
cd ../../..;/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov -d
build/linux -c -o my.info --gcov-tool
/u/prod/gnu/gcc/20100521/gcc-4.4.4-linux/bin/gcov
Capturing coverage data from build/linux
Found gcov version: 4.4.4
Scanning build/linux for .gcda files ...
Found 1 data files in build/linux
Processing
geninfo: WARNING: gcov did not create any files for
/u/rhino/aossman/test_gcov/build/linux/vsim/x.gcda!
Finished .info-file creation
Done.
/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov -l ../../../my.info
Reading tracefile ../../../my.info
lcov: ERROR: no valid records found in tracefile ../../../my.info
make: *** [run] Error 255
make: Leaving directory `/u/rhino/aossman/test_gcov/build/linux/vsim'
Now edit build/vsim/Makefile and comment the second line of GLOC to use
4.3.3 version then:
1- cd build/linux
2- make -C vsim all
make: Entering directory `/u/rhino/aossman/test_gcov/build/linux/vsim'
rm -rf x.o x.exe x.gcno a.out x.gcda my.info /u/apache/htdocs/qa/ahmed
/u/prod/gnu/gcc/20091028/gcc-4.3.3-linux/bin/gcc -m32 -Wa,--32 -Wall -g
-fprofile-arcs -ftest-coverage ../../../src/vsim/x.c -o x.exe
x.exe
3 is divisable by 3
6 is divisable by 3
9 is divisable by 3
cd ../../..;/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov -d
build/linux -c -o my.info --gcov-tool
/u/prod/gnu/gcc/20091028/gcc-4.3.3-linux/bin/gcov
Capturing coverage data from build/linux
Found gcov version: 4.3.3
Scanning build/linux for .gcda files ...
Found 1 data files in build/linux
Processing
Finished .info-file creation
Done.
/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov -l ../../../my.info
Reading tracefile ../../../my.info
Line Func
Filename Rate Rate Lines
Funcs
========================================================================
===
u/rhino/aossman/test_gcov/src/vsim/x.c 100.0% 100.0% 6
1
------------------------------------------------------------------------
---
Total 100.0% 100.0% 6
1
Done.
make: Leaving directory `/u/rhino/aossman/test_gcov/build/linux/vsim'
Please advise ....
- Ahmed
[Attachment #5 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:x="urn:schemas-microsoft-com:office:excel" \
xmlns:p="urn:schemas-microsoft-com:office:powerpoint" \
xmlns:a="urn:schemas-microsoft-com:office:access" \
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" \
xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" \
xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" \
xmlns:b="urn:schemas-microsoft-com:office:publisher" \
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" \
xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" \
xmlns:odc="urn:schemas-microsoft-com:office:odc" \
xmlns:oa="urn:schemas-microsoft-com:office:activation" \
xmlns:html="http://www.w3.org/TR/REC-html40" \
xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" \
xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" \
xmlns:Repl="http://schemas.microsoft.com/repl/" \
xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" \
xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" \
xmlns:ppda="http://www.passport.com/NameSpace.xsd" \
xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" \
xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" \
xmlns:ds="http://www.w3.org/2000/09/xmldsig#" \
xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" \
xmlns:udc="http://schemas.microsoft.com/data/udc" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema" \
xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" \
xmlns:ec="http://www.w3.org/2001/04/xmlenc#" \
xmlns:sp="http://schemas.microsoft.com/sharepoint/" \
xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" \
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" \
xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" \
xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" \
xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" \
xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" \
xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" \
xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" \
xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" \
xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" \
xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" \
xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" \
xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" \
xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" \
xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" \
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
/* List Definitions */
@list l0
{mso-list-id:776097533;
mso-list-type:hybrid;
mso-list-template-ids:-849473156 -1082347452 67698691 67698693 67698689 67698691 \
67698693 67698689 67698691 67698693;} @list l0:level1
{mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:.75in;
text-indent:-.25in;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-bidi-font-family:Arial;}
@list l0:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l0:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1
{mso-list-id:1459256433;
mso-list-type:hybrid;
mso-list-template-ids:-570256890 1423084728 67698713 67698715 67698703 67698713 \
67698715 67698703 67698713 67698715;} @list l1:level1
{mso-level-text:%1-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2
{mso-list-id:1469742276;
mso-list-type:hybrid;
mso-list-template-ids:-570256890 1423084728 67698713 67698715 67698703 67698713 \
67698715 67698703 67698713 67698715;} @list l2:level1
{mso-level-text:%1-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level2
{mso-level-tab-stop:1.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level3
{mso-level-tab-stop:1.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level4
{mso-level-tab-stop:2.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level5
{mso-level-tab-stop:2.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level6
{mso-level-tab-stop:3.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level7
{mso-level-tab-stop:3.5in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level8
{mso-level-tab-stop:4.0in;
mso-level-number-position:left;
text-indent:-.25in;}
@list l2:level9
{mso-level-tab-stop:4.5in;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Sorry I missed the \
testcase.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Osman, Ahmed <br> \
<b>Sent:</b> Tuesday, May 25, 2010 12:45 PM<br> <b>To:</b> \
ltp-coverage@lists.sourceforge.net<br> <b>Subject:</b> lcov doesn't work with gcov \
4.4.4<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Hi All,<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>I used to run with gcov 4.3.3 and it went very well with
lcov 1.7 and when I upgraded to lcov 1.8, one of .gcda file hangs as geninfo is
calling now gcov with –a.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>So I decided to upgrade to gcov 4.4.4 hoping that this will
solve the problem but unfortunately lcov doesn’t wotk well with \
it.<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>Attached you will find the test case gcov-4.4.4-test.tar.gz.
When extracting you will find two directories “src” and \
“build”<o:p></o:p></p>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal>First open file build/linux/vsim/Makefile to put the gcov
locations for 4.3.3 and 4.4.4 then do the following:<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo2'><![if \
!supportLists]><span style='mso-list:Ignore'>1-<span style='font:7.0pt "Times New \
Roman"'> </span></span><![endif]><span \
dir=LTR></span>cd build/linux<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l1 level1 lfo2'><![if \
!supportLists]><span style='mso-list:Ignore'>2-<span style='font:7.0pt "Times New \
Roman"'> </span></span><![endif]><span \
dir=LTR></span>make –C vsim all<o:p></o:p></p>
<p class=MsoListParagraph>make: Entering directory
`/u/rhino/aossman/test_gcov/build/linux/vsim'<o:p></o:p></p>
<p class=MsoListParagraph>rm -rf x.o x.exe x.gcno a.out x.gcda my.info
/u/apache/htdocs/qa/ahmed<o:p></o:p></p>
<p class=MsoListParagraph>/u/prod/gnu/gcc/20100521/gcc-4.4.4-linux/bin/gcc -m32
-Wa,--32 -Wall -g -fprofile-arcs -ftest-coverage
../../../src/vsim/x.c -o x.exe<o:p></o:p></p>
<p class=MsoListParagraph>x.exe<o:p></o:p></p>
<p class=MsoListParagraph>3 is divisable by 3<o:p></o:p></p>
<p class=MsoListParagraph>6 is divisable by 3<o:p></o:p></p>
<p class=MsoListParagraph>9 is divisable by 3<o:p></o:p></p>
<p class=MsoListParagraph>cd
../../..;/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov -d build/linux -c
-o my.info --gcov-tool \
/u/prod/gnu/gcc/20100521/gcc-4.4.4-linux/bin/gcov<o:p></o:p></p>
<p class=MsoListParagraph>Capturing coverage data from build/linux<o:p></o:p></p>
<p class=MsoListParagraph>Found gcov version: 4.4.4<o:p></o:p></p>
<p class=MsoListParagraph>Scanning build/linux for .gcda files ...<o:p></o:p></p>
<p class=MsoListParagraph>Found 1 data files in build/linux<o:p></o:p></p>
<p class=MsoListParagraph>Processing<o:p></o:p></p>
<p class=MsoListParagraph>geninfo: WARNING: gcov did not create any files for
/u/rhino/aossman/test_gcov/build/linux/vsim/x.gcda!<o:p></o:p></p>
<p class=MsoListParagraph>Finished .info-file creation<o:p></o:p></p>
<p class=MsoListParagraph>Done.<o:p></o:p></p>
<p class=MsoListParagraph>/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov
-l ../../../my.info<o:p></o:p></p>
<p class=MsoListParagraph>Reading tracefile ../../../my.info<o:p></o:p></p>
<p class=MsoListParagraph>lcov: ERROR: no valid records found in tracefile
../../../my.info<o:p></o:p></p>
<p class=MsoListParagraph>make: *** [run] Error 255<o:p></o:p></p>
<p class=MsoListParagraph>make: Leaving directory
`/u/rhino/aossman/test_gcov/build/linux/vsim'<o:p></o:p></p>
<p class=MsoListParagraph><o:p> </o:p></p>
<p class=MsoListParagraph><o:p> </o:p></p>
<p class=MsoListParagraph>Now edit build/vsim/Makefile and comment the second
line of GLOC to use 4.3.3 version then:<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo4'><![if \
!supportLists]><span style='mso-list:Ignore'>1-<span style='font:7.0pt "Times New \
Roman"'> </span></span><![endif]><span \
dir=LTR></span>cd build/linux<o:p></o:p></p>
<p class=MsoListParagraph style='text-indent:-.25in;mso-list:l2 level1 lfo4'><![if \
!supportLists]><span style='mso-list:Ignore'>2-<span style='font:7.0pt "Times New \
Roman"'> </span></span><![endif]><span \
dir=LTR></span>make –C vsim all<o:p></o:p></p>
<p class=MsoListParagraph>make: Entering directory
`/u/rhino/aossman/test_gcov/build/linux/vsim'<o:p></o:p></p>
<p class=MsoListParagraph>rm -rf x.o x.exe x.gcno a.out x.gcda my.info
/u/apache/htdocs/qa/ahmed<o:p></o:p></p>
<p class=MsoListParagraph>/u/prod/gnu/gcc/20091028/gcc-4.3.3-linux/bin/gcc -m32
-Wa,--32 -Wall -g -fprofile-arcs -ftest-coverage
../../../src/vsim/x.c -o x.exe<o:p></o:p></p>
<p class=MsoListParagraph>x.exe<o:p></o:p></p>
<p class=MsoListParagraph>3 is divisable by 3<o:p></o:p></p>
<p class=MsoListParagraph>6 is divisable by 3<o:p></o:p></p>
<p class=MsoListParagraph>9 is divisable by 3<o:p></o:p></p>
<p class=MsoListParagraph>cd
../../..;/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov -d build/linux -c
-o my.info --gcov-tool \
/u/prod/gnu/gcc/20091028/gcc-4.3.3-linux/bin/gcov<o:p></o:p></p>
<p class=MsoListParagraph>Capturing coverage data from build/linux<o:p></o:p></p>
<p class=MsoListParagraph>Found gcov version: 4.3.3<o:p></o:p></p>
<p class=MsoListParagraph>Scanning build/linux for .gcda files ...<o:p></o:p></p>
<p class=MsoListParagraph>Found 1 data files in build/linux<o:p></o:p></p>
<p class=MsoListParagraph>Processing<o:p></o:p></p>
<p class=MsoListParagraph>Finished .info-file creation<o:p></o:p></p>
<p class=MsoListParagraph>Done.<o:p></o:p></p>
<p class=MsoListParagraph>/u/rhino/lcov-ws/utils/analysis/lcov/bin/lcov
-l ../../../my.info<o:p></o:p></p>
<p class=MsoListParagraph>Reading tracefile ../../../my.info<o:p></o:p></p>
<p class=MsoListParagraph> \
&n \
bsp;
Line Func<o:p></o:p></p>
<p class=MsoListParagraph> Filename &nbs \
p; \
\
Rate Rate Lines Funcs<o:p></o:p></p>
<p class=MsoListParagraph>===========================================================================<o:p></o:p></p>
<p class=MsoListParagraph> u/rhino/aossman/test_gcov/src/vsim/x.c
100.0% 100.0%
6 1<o:p></o:p></p>
<p class=MsoListParagraph>---------------------------------------------------------------------------<o:p></o:p></p>
<p class=MsoListParagraph> Total & \
nbsp; &nb \
sp;
100.0% 100.0%
6 1<o:p></o:p></p>
<p class=MsoListParagraph>Done.<o:p></o:p></p>
<p class=MsoListParagraph>make: Leaving directory \
`/u/rhino/aossman/test_gcov/build/linux/vsim'<o:p></o:p></p>
<p class=MsoListParagraph><o:p> </o:p></p>
<p class=MsoListParagraph>Please advise ….<o:p></o:p></p>
<p class=MsoListParagraph><o:p> </o:p></p>
<p class=MsoListParagraph style='margin-left:.75in;text-indent:-.25in;
mso-list:l0 level1 lfo6'><![if !supportLists]><span style='mso-list:Ignore'>-<span
style='font:7.0pt "Times New \
Roman"'> \
</span></span><![endif]><span dir=LTR></span>Ahmed<o:p></o:p></p>
</div>
</body>
</html>
["gcov-4.4.4-test.tar.gz" (application/x-gzip)]
------------------------------------------------------------------------------
_______________________________________________
Ltp-coverage mailing list
Ltp-coverage@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-coverage
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic