Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Linux Tools Project » gconv problem in Luna under windows
gconv problem in Luna under windows [message #1441099] Thu, 09 October 2014 08:59 Go to next message
Tomasz Nowik is currently offline Tomasz NowikFriend
Messages: 3
Registered: October 2014
Junior Member
Hi

I have a problem with gcov under Eclipse for C/C++, Luna 4.4.0 under windows. I use MinGC GCC toolchain. Compiler and linker flags are "-fprofile-arcs -ftest-coverage" (I have an error when trying to link with -lgcov flag).

gcov and gcc version is 4.9.1.

All needed gcc tools are visible (including strings) and I can create correct result file (*.gcov file) manually with gcov -o ./src/test1.gcno test1.c command.

The problem is that when I do "project->profiling tools->profile code coverage" program runs nad gconv tab opens in eclipse with correct coverage percentage but first line states "program runs = 0".
Next when I try to double click on file name to open a colored result file a standard C files opens with no gconv information.


When I work on C project I can open gcov tab using "project->profiling tools->profile code coverage" or double click on *.gcda / *.gcno file.

But when I work on C++ project I can open gcov tab only using "project->profiling tools->profile code coverage". When I double click on *.gcda / *.gcno file and click on I get:.

An error has occurred. See error log for more details.
Illegal char <:> at index 52: C:\Users\abc\Desktop\eclipse_test\test2\Debug\c:\mingw\include\c++\4.9.1\iostream

So eclipse build incorrect path here. But it doesn't explain why C project doesn't show gcov file result.

When I work on C project there are no information in eclipse's log file.
When I work on C++ project following errors are in log file:


!ENTRY org.eclipse.jface 4 2 2014-10-09 10:56:17.240
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.nio.file.InvalidPathException: Illegal char <:> at index 52: C:\Users\abc\Desktop\eclipse_test\test2\Debug\c:\mingw\include\c++\4.9.1\iostream
at sun.nio.fs.WindowsPathParser.normalize(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPathParser.parse(Unknown Source)
at sun.nio.fs.WindowsPath.parse(Unknown Source)
at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source)
at java.nio.file.Paths.get(Unknown Source)
at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.findSourceCoverageForElement(GcovAnnotationModel.java:189)
at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.findSourceCoverageForEditor(GcovAnnotationModel.java:160)
at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.updateAnnotations(GcovAnnotationModel.java:136)
at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModel.attach(GcovAnnotationModel.java:109)
at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModelTracker.annotateCEditor(GcovAnnotationModelTracker.java:157)
at org.eclipse.linuxtools.internal.gcov.view.annotatedsource.GcovAnnotationModelTracker.annotateAllCEditors(GcovAnnotationModelTracker.java:143)
at org.eclipse.linuxtools.internal.gcov.action.OpenGCAction.open(OpenGCAction.java:80)
at org.eclipse.ui.internal.WorkbenchPage$28.run(WorkbenchPage.java:5151)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openExternalEditor(WorkbenchPage.java:5142)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3174)
at org.eclipse.ui.internal.WorkbenchPage.access$23(WorkbenchPage.java:3104)
at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:3086)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3081)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3045)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3035)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:541)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:500)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99)
at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99)
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:229)
at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185)
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:853)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:50)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:178)
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:850)
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1142)
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462)
at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1249)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:272)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:313)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

What can be wrong? Why colored code file doesn't show?



Re: gconv problem in Luna under windows [message #1441385 is a reply to message #1441099] Thu, 09 October 2014 16:58 Go to previous messageGo to next message
Roland Grunberg is currently offline Roland GrunbergFriend
Messages: 27
Registered: December 2009
Junior Member
This seems like Bug 440277 and Bug 443685.

These were resolved in the 3.1.0 release, which should be a part of the Eclipse Luna SR1 (4.4.1) update site. You most likely have the version of the Gcov Plugin shipped in the 3.0.0 release.

You could update to using Eclipse Luna SR1, and when you install the Gcov Plugin from there, it should resolve the issue. Alternatively, you could try just updating the Gcov Plugin for your current Eclipse Luna (4.4.0) using the update site, http://download.eclipse.org/linuxtools/update-3.1 .

Hope this helps.
Re: gconv problem in Luna under windows [message #1441950 is a reply to message #1441385] Fri, 10 October 2014 12:01 Go to previous message
Tomasz Nowik is currently offline Tomasz NowikFriend
Messages: 3
Registered: October 2014
Junior Member
I've updated gcov integration from http://download.eclipse.org/linuxtools/update-3.1 but there were new errors so I've installed SR1 and it works in simple project.
but...

Program runs is still 0.

And when I imported a C file with option Project->import->File System->(choose file from other workspace)->(choose create links in workspace; create virtual folders, create link locations relative to workspace_loc) code is not colored again.
Program runs is still 0 as it was without imported file.
File that is not imported is colored as it was.

When I double click on file name in gcov tab proper imported file opens but it's not colored.

So I think I found new bug Wink Is there a way to import file with creating a link from file system so gcov would work?

Previous Topic:RPM package signing with Specfile Editor
Next Topic:OProfile plug in problems (doesn't work)
Goto Forum:
  


Current Time: Thu Sep 19 12:53:03 GMT 2024

Powered by FUDForum. Page generated in 0.04358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top