Bug 38840 - Adding coverage analysis to unit tests

John Smith lbalbalba at gmail.com
Tue Aug 21 02:17:04 PDT 2012


Hi,


Im running into an issue I havent seen before on LibreOffice. When I
do a make with

LDFLAGS+='-fprofile-arcs' CFLAGS+='-fprofile-arcs -ftest-coverage'
CXXFLAGS+='-fprofile-arcs -ftest-coverage' CPPFLAGS+='-fprofile-arcs
-ftest-coverage'

I now still get an error about "undefined reference to
`__gcov_merge_add'" in a specific module 'odk'. Everything up until
that point works as expected. I also tried specifying '-lgcov' and
'-coverage', but the result is the same.

When I 'make odk' I get the output below, but I have no idea what
could be causing this ? Any and all help is sincerely appreciated.


log for /usr/local/src/libreoffice/odk/source/unoapploader/unx
Making:    unoapploader
/usr/local/src/libreoffice/solver/unxlngi6.pro/lib/findsofficepath.o:
In function `_GLOBAL__sub_I_65535_0_findsofficepath.c':
findsofficepath.c:(.text+0x429): undefined reference to `__gcov_init'
/usr/local/src/libreoffice/solver/unxlngi6.pro/lib/findsofficepath.o:(.data.rel+0x10):
undefined reference to `__gcov_merge_add'
collect2: error: ld returned 1 exit status
dmake:  Error code 1, while making '../../../unxlngi6.pro/bin/unoapploader'



Regards,


John Smith


More information about the LibreOffice mailing list