This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gcov-profile/35038] GCOV - using "--coverage" results in libgcov.a(_gcov.o) is referenced by DSO



------- Comment #1 from nanda dot anni at wipro dot com  2008-01-31 04:47 -------
I am unable to proceed further to get the code coverage for my application
(product).
Hence it is critical to fix this issue.
I had posted a query to gcov maintainers but their response was that, there
might be a bug in gcc itself. Hence reported this bug.

-----Original Message-----
From: Peter Oberparleiter [mailto:oberparleiter@googlemail.com] 
Sent: Wednesday, January 30, 2008 9:50 PM
To: Nanda Annigeri
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] gcov - compilation error while using gcc 4.1.1

Hi,

Nanda Annigeri wrote:
> Then I tried linking with -lgcov and now I get below error.
>  
> -L/home/nanda/galaxy/lib -lgcov -lPerfStats -L /usr/local/lib 
> -lpthread -ldl -dynamic
> /usr/bin/ld: perfstats: hidden symbol `__gcov_init' in 
> /usr/local/gcc-411/lib/gcc/x86_64-unknown-linux-gnu/4.1.1/libgcov.a(_g
> co
> v.o) is referenced by DSO
>  
> I have tried using gcc 4.2.2 and also latest libtool but could not 
> resolve the issue.

Try using -fprofile-arcs as linker option instead of -lgcov. If that doesn't
help this is most likely a bug in gcc. Please report to the gcc maintainers.


Regards,
  Peter Oberparleiter


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35038


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]