Re: gcov/lcov code coverage of glusterfs

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

 



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@xxxxxxxxxx
> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux