[Gluster-devel] gcov/lcov code coverage of glusterfs
Michael Brown
michael at netdirect.ca
Thu May 9 17:46:15 UTC 2013
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
> Gluster-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>
More information about the Gluster-devel
mailing list