Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359770

Summary: No gcov view available, eclipse does not recognize .gcda/.gcno files
Product: [Tools] Linux Tools Reporter: brad.dobson
Component: GCovAssignee: Xavier Raynaud <xraynaud>
Status: RESOLVED FIXED QA Contact: Xavier Raynaud <xraynaud>
Severity: normal    
Priority: P3 CC: akurtakov, eclipse, lilia.ghachem, tobiasd123, troy.brown
Version: unspecified   
Target Milestone: 2.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
plugin lists none

Description brad.dobson CLA 2011-10-03 17:28:35 EDT
Build Identifier: 20110916-0149

I have tried the gcov plugin on a variety of eclipse installations with no luck. In no case can I double click on on newly-created gcda/gcno file an have eclipse popup anything related to gcov. I also note that there is no gcov view available in Show View->Other. My plugins directory does contain

org.eclipse.linuxtools.gcov_4.1.1.201106060936.jar
org.eclipse.linuxtools.gcov_4.1.1.201109262035.jar
org.eclipse.linuxtools.gcov.docs_1.0.0.201106060936.jar
org.eclipse.linuxtools.gcov.docs_1.0.0.201109262035.jar

after a simple download of indigo and install of linuxtools from the update site.

I'm hoping that this is just something stupid I have done to not activate it? The valgrind and oprofile views are present.

This is on 

Linux rtxlin005 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

gcov, gprof, etc. are in my PATH and working OK from the command line.

Thanks,

Brad.

Reproducible: Always

Steps to Reproduce:
Create new C project, source file, Makefile, build with -fprofile-arcs -ftest-coverage.

Run resulting binary, observe .gcda & .gcno created, but eclipse does not decorate them in the project explorer with different icons, nor does it know how to open them.
Comment 1 Xavier Raynaud CLA 2011-10-03 18:25:34 EDT
Hi,

Many thanks for the bug report.

gcov plugins also depends on:
- org.eclipse.linuxtools.binutils
- org.eclipse.linuxtools.dataviewers
- org.eclipse.linuxtools.dataviewers.annotatedsourceeditor
- org.eclipse.linuxtools.dataviewers.charts

Are these plugins also available ?
Comment 2 brad.dobson CLA 2011-10-03 18:35:10 EDT
Created attachment 204479 [details]
plugin lists

Here's everything from the plugins directory - the ones you mention appear to be there.

Thanks,

Brad.
Comment 3 Xavier Raynaud CLA 2011-10-04 03:28:45 EDT
Have you the same behaviour with "Eclipse IDE for C/C++ Linux Developers (includes Incubating components)" (http://www.eclipse.org/downloads/packages/eclipse-ide-cc-linux-developers-includes-incubating-components/indigosr1) ?

This indigo release already contains the linuxtools components - no need to install them.
Comment 4 brad.dobson CLA 2011-10-04 10:23:10 EDT
(In reply to comment #3)
> Have you the same behaviour with "Eclipse IDE for C/C++ Linux Developers
> (includes Incubating components)"
> (http://www.eclipse.org/downloads/packages/eclipse-ide-cc-linux-developers-includes-incubating-components/indigosr1)
> ?
> 
> This indigo release already contains the linuxtools components - no need to
> install them.

I had previously used eclipse-cpp-indigo-SR1-incubation-linux-gtk.tar.gz thinking that had the linuxtools already installed but I guess I was wrong. I'll retry with the link you sent - have to upgrade my jvm first.
Comment 5 brad.dobson CLA 2011-10-04 11:03:08 EDT
(In reply to comment #4)
> (In reply to comment #3)
> > Have you the same behaviour with "Eclipse IDE for C/C++ Linux Developers
> > (includes Incubating components)"
> > (http://www.eclipse.org/downloads/packages/eclipse-ide-cc-linux-developers-includes-incubating-components/indigosr1)
> > ?
> > 
> > This indigo release already contains the linuxtools components - no need to
> > install them.
> 
> I had previously used eclipse-cpp-indigo-SR1-incubation-linux-gtk.tar.gz
> thinking that had the linuxtools already installed but I guess I was wrong.
> I'll retry with the link you sent - have to upgrade my jvm first.

OK - that worked right away. It seems like it is very difficult to make it work by installing linux tools from the update site: I tried that 4 or 5 different ways. If you do have any suggestions on how to make that work it would be great. I have a vendor-supplied eclipse installations and would really like to install linuxtools on top of that.
Comment 6 Andrew Overholt CLA 2011-10-04 14:52:29 EDT
Did you try installing from our p2 repo [1] or from the simultaneous release p2 repo [2]?

[1]
http://download.eclipse.org/technology/linuxtools/update/

[2]
http://download.eclipse.org/releases/indigo/
Comment 7 Troy Brown CLA 2011-12-06 10:04:59 EST
I believe I am having the same problem, although under Windows XP.  It is my understanding that the GCov plugin should be available on the platform as long as gcov is in the path.

I have a recent 32-bit Indigo C/C++ installation that I've attempted to install GCov (and GProf) into utilizing the Indigo update site:
     http://download.eclipse.org/releases/indigo

The installation appeared to work as expected (i.e., no errors, prompted to restart Eclipse, etc.), however I'm not able to double click on the .gcno or .gcda files and have the GCov Editor view appear as I would expect.  Furthermore, those files (i.e., *.gcno and *.gcda) don't even show up in a different icon overlay as shown in the User's Manual.  Double clicking on the file only opens the file up in the default editor (showing binary data).

As per another thread on this I found regarding Helios (i.e., http://dev.eclipse.org/mhonarc/lists/linuxtools-dev/msg00885.html), I can indicate the following:

1. The GCov Editor does not show up when right clicking on a .gcno or .gcda file and selecting "Open With".  Even when selecting "Other..." from this menu, the GCov Editor does not appear in the "Editor Selection" pop-up window.

2. The "Plug-in registry" (I assume this is what is visible from Help > About Eclipse > Installation Details > Plug-ins) only shows "GCov Documentation (Incubation)" for GCov.  I'm guessing that an additional "GCov Plug-in" or something similar should appear.  The GCov documentation does appear under "Help > Help Contents".

3. The plug-ins are listed (along with their dependencies) in the bundles.info file (i.e., $ECLIPSE_ROOT/configuration/org.eclipse.equinox.simpleconfigurator/bundl
es.info) as follows:

org.eclipse.linuxtools.binutils,4.0.0.201108301805,plugins/org.eclipse.linuxtools.binutils_4.0.0.201108301805.jar,4,false
org.eclipse.linuxtools.cdt.autotools.core,1.0.2.201108301805,plugins/org.eclipse.linuxtools.cdt.autotools.core_1.0.2.201108301805.jar,4,false
org.eclipse.linuxtools.cdt.autotools.docs,2.0.2.201108301805,plugins/org.eclipse.linuxtools.cdt.autotools.docs_2.0.2.201108301805.jar,4,false
org.eclipse.linuxtools.cdt.autotools.ui,1.0.1.201108301805,plugins/org.eclipse.linuxtools.cdt.autotools.ui_1.0.1.201108301805.jar,4,false
org.eclipse.linuxtools.cdt.libhover,1.1.0.201108301805,plugins/org.eclipse.linuxtools.cdt.libhover_1.1.0.201108301805.jar,4,false
org.eclipse.linuxtools.cdt.libhover.devhelp,0.7.1.201108301805,plugins/org.eclipse.linuxtools.cdt.libhover.devhelp_0.7.1.201108301805.jar,4,false
org.eclipse.linuxtools.cdt.libhover.library.docs,1.0.2.201108301805,plugins/org.eclipse.linuxtools.cdt.libhover.library.docs_1.0.2.201108301805.jar,4,false
org.eclipse.linuxtools.dataviewers,4.0.0.201108301805,plugins/org.eclipse.linuxtools.dataviewers_4.0.0.201108301805.jar,4,false
org.eclipse.linuxtools.dataviewers.annotatedsourceeditor,4.1.0.201108301805,plugins/org.eclipse.linuxtools.dataviewers.annotatedsourceeditor_4.1.0.201108301805.jar,4,false
org.eclipse.linuxtools.dataviewers.charts,4.1.0.201108301805,plugins/org.eclipse.linuxtools.dataviewers.charts_4.1.0.201108301805.jar,4,false
org.eclipse.linuxtools.gcov,4.1.1.201108301805,plugins/org.eclipse.linuxtools.gcov_4.1.1.201108301805.jar,4,false
org.eclipse.linuxtools.gcov.docs,1.0.0.201108301805,plugins/org.eclipse.linuxtools.gcov.docs_1.0.0.201108301805.jar,4,false
org.eclipse.linuxtools.gprof,4.0.0.201108301805,plugins/org.eclipse.linuxtools.gprof_4.0.0.201108301805.jar,4,false
org.eclipse.linuxtools.gprof.docs,1.0.0.201108301805,plugins/org.eclipse.linuxtools.gprof.docs_1.0.0.201108301805.jar,4,false
Comment 8 brad.dobson CLA 2011-12-06 10:10:15 EST
I just ended up using the full indigo release that bundled in the linuxtools stuff - that was the only way it would work for me.

(In reply to comment #7)
> I believe I am having the same problem, although under Windows XP.  It is my
> understanding that the GCov plugin should be available on the platform as long
> as gcov is in the path.
>
Comment 9 Troy Brown CLA 2011-12-10 09:19:52 EST
There does not appear to be a Windows platform release that includes all of the linuxtools.  There is only one C/C++ Indigo release for the Windows platform and it only include autotools.  I believe that some of the linuxtools are not compatible with the Windows platform (such as LTTng, SystemTap, etc.) according to the Eclipse installer on this platform, however the installer does indicate that gcov and gprof are compatible.

(In reply to comment #8)
> I just ended up using the full indigo release that bundled in the linuxtools
> stuff - that was the only way it would work for me.
> (In reply to comment #7)
> > I believe I am having the same problem, although under Windows XP.  It is my
> > understanding that the GCov plugin should be available on the platform as long
> > as gcov is in the path.
> >
Comment 10 Jens Lindenmeier CLA 2012-05-04 12:36:01 EDT
I had the same Problem.
Got rid of it, when I discovered that I used a 1.5 vm.
Switching to java 1.6 made the gcda and gcno visible right away.
Comment 11 Alexander Kurtakov CLA 2013-02-18 19:38:38 EST
Closing the bug now, if anyone still has a problem please reopen with details.