gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] gcov/lcov code coverage of glusterfs


From: Michael Brown
Subject: Re: [Gluster-devel] gcov/lcov code coverage of glusterfs
Date: Thu, 9 May 2013 13:46:15 -0400 (EDT)

How are you passing the flags?

I just tried:

./configure --prefix=/usr/local/glusterfs 
{,GF_FUSE_,GF_GLUSTERFS_,GF_}CFLAGS="-fprofile-arcs -ftest-coverage"

and was able to build it fine.

M.

-- 
Michael Brown, Systems Consultant
Net Direct Inc.
☎: +1 519 883 1172 x5106

----- Original Message -----
> Hi,
> 
> 
> Im trying to build/instrument glusterfs for gcov code coverage, so
> that we can determine how much of the code gets tested by running the
> test suite.
> 
> But when i try to do a build using *FLAGS+='-fprofile-arcs
> -ftest-coverage', i run into this error: undefined reference to
> `__gcov_init' (http://fpaste.org/11321/36811943/)
> 
> Using '-fprofile-arcs' implies '-lgcov', so i shouldnt be getting
> that error.
> 
> 
> Does anyone have any idea what might be going wrong here ?
> 
> 
> 
> Regards,
> 
> 
> John Smith.
> 
> _______________________________________________
> Gluster-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]