Genhtml Error Cannot Open
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss gcov error cannot open source file the workings and policies of this site About Us Learn more gcov cannot open source file about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow lcov base directory Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping genhtml: error: cannot read file each other. Join them; it only takes a minute: Sign up How do I tell lcov where to find my .cpp & .h files? up vote 11 down vote favorite 1 My source and build tree looks like this (see Makefile to put object files from source files different directories into a single, separate directory?) after a make
Lcov Man
(which builds and runs FooAndBarTests): src - Foo.cpp - Bar.cpp inc - Foo.h - Bar.h test - FooTest.cpp - BarTest.cpp - Main.cpp - Makefile - obj - Foo.gcda - Foo.gcno - Bar.gcda - Bar.gcno - FooAndBarTests UnitTest++ - libUnitTest++.a - src - ... I can then produce .gcov files in the test directory by running gcov -o obj/ ../src/Foo.cpp and gcov -o obj/ ../src/Bar.cpp. But if I run lcov -d obj/ -c -o FooAndBarTests.lcov I get: Capturing coverage data from obj/ Found gcov version: 4.2.1 Scanning obj/ for .gcda files ... Found 4 data files in obj/ Processing Foo.gcda ../src/Foo.cpp:cannot open source file Processing FooTest.gcda FooTest.cpp:cannot open source file ../inc/Foo.h:cannot open source file ../UnitTest++/src/Checks.h:cannot open source file ... And then when I run genhtml FooAndBarTests.lcov I get: Reading data file FooAndBarTests.lcov Found 45 entries. Found common filename prefix "/Users/dspitzer/FooAndBar/test" Writing .css and .png files. Generating output. Processing file UnitTest++/src/Checks.h genhtml: ERROR: cannot open /Users/dspitzer/FooAndBar/test/UnitTest++/src/Checks.h for reading! How do I tell lcov and genhtml where the .cpp and .h files are? c++ code
Tue, 20 Apr 2010 21:33:01 UTC Severity: normal Found in version lcov/1.8-1 Fixed in version lcov/1.9-1 Done: Alastair McKinstry
Lcov Remove Example
is archived. No further changes may be made. Toggle useless messagesView using lcov this report as an mbox folder, status mbox, maintainer mbox Report forwarded to debian-bugs-dist@lists.debian.org, Alastair McKinstry how to use gcov
Sign in Pricing Blog Support Search GitHub This repository Watch 9 Star 73 Fork 32 linux-test-project/lcov Code Issues 1 Pull https://github.com/linux-test-project/lcov/blob/master/bin/genhtml requests 1 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags master Nothing to show v1.12 v1.11 Nothing to show Find file Copy path lcov/bin/genhtml 6ec3f23 http://marc.info/?l=ltp-coverage&m=121691431413584 Oct 7, 2016 oberpar genhtml: Fix warning with small genhtml_line_field_width 4 contributors Users who have contributed to this file oberpar jhutz ggouaillardet adsk-belleyb Raw Blame History executable file cannot open 6061 lines (5150 sloc) 141 KB #!/usr/bin/perl -w # # Copyright (c) International Business Machines Corp., 2002,2012 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or error cannot open (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # # genhtml # # This script generates HTML output from .info files as created by the # geninfo script. Call it with --help and refer to the genhtml man page # to get information on usage and available options. # # # History: # 2002-08-23 created by Peter Oberparleiter
() imap ! linux ! ibm ! com [Download message RAW] Hi I am trying to do code coverage for SLES 10 SP2 kernel(2.6.16.60-0.21). So i applied the GCOV patch for 2.6.16 kernel to the 2.6.1.60-0.21 kernel source. I ran ltp runall, after booting into that kernel and doing "lcov --zerocounters" But running "lcov --capture --output-file kernel.info" generates lots of messages like : include/linux/thread_info.h:cannot open source file include/linux/jiffies.h:cannot open source file include/asm/cputime.h:cannot open source file The source files are present in /root/2.6.1.60-0.21 dir. Should i change any config file to specify the source dir. Though the kernel.info is created after that,running 'genhtml kernel.info' gives this message : Processing file arch/powerpc/kernel/include/asm/page_64.h ERROR: cannot open /tmp/tmpdir698/gcov/arch/powerpc/kernel/include/asm/page_64.h for reading! Does the GCOV patch for the mainline kernel( kernel from kernel.org) does not work with the kernel that comes with Distro? If not, how should i generate GCOV patch for the kernels that comes with the Distro. Thanks and Regards Yogi ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ 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 | Addalist | SponsoredbyKoreLogic