Bug 6697 - link error by libgcov when compile with coverage option
Summary: link error by libgcov when compile with coverage option
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.7
Assignee: Nobuhiro Iwamatsu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2014-09-09 00:45 UTC by Nobuhiro Iwamatsu
Modified: 2014-11-14 18:56 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
patch for libgcov (1.32 KB, patch)
2014-09-09 00:45 UTC, Nobuhiro Iwamatsu
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nobuhiro Iwamatsu 2014-09-09 00:45:51 UTC
Created attachment 2115 [details]
patch for libgcov

When a user takes coverage in gcc of SDK, it becomes the link error in SDK 
because there is not libgcov.a.

----
ld: cannot find -lgcov
collect2: error: ld returned 1 exit status
----

I create a patch which revice this problem.
Comment 1 Saul Wold 2014-09-11 14:41:51 UTC
Nobuhiro, your patch looks correct except for doing a "PR" bump, can you please submit this patch to the openembedded-core@lists.openembedded.org, which is the correct way to propose patches for the project.  Thanks
Comment 2 Nobuhiro Iwamatsu 2014-09-11 23:31:49 UTC
Sure. I will do.

(In reply to comment #1)
> Nobuhiro, your patch looks correct except for doing a "PR" bump, can you
> please submit this patch to the openembedded-core@lists.openembedded.org,
> which is the correct way to propose patches for the project.  Thanks
Comment 3 Nobuhiro Iwamatsu 2014-10-08 02:54:56 UTC
This patch alredy was applied OE-core and poky.

OE-core: 99b26dba6e4f5a64579f183883265498000e3104
Poky: a7636ec315a9e3f845eef860253e34e085782da0

(In reply to comment #2)
> Sure. I will do.
> 
> (In reply to comment #1)
> > Nobuhiro, your patch looks correct except for doing a "PR" bump, can you
> > please submit this patch to the openembedded-core@lists.openembedded.org,
> > which is the correct way to propose patches for the project.  Thanks
Comment 4 Saul Wold 2014-11-14 18:56:15 UTC
If the patch is already applied, I will close this bug!