build with code coverage
lbalbalba at gmail.com
Mon Jul 8 01:02:16 PDT 2013
Thanks, but ....
Looking at 'solenv/gbuild/platform/com_GCC_defs.mk', setting
gb_GCOV=YES seemingly sets the same options as I do (apart from '-O0',
but that doesnt really matter all that much) :
ifeq ($(strip $(gb_GCOV)),YES)
gb_CFLAGS_COMMON += -fprofile-arcs -ftest-coverage
gb_CXXFLAGS_COMMON += -fprofile-arcs -ftest-coverage
gb_LinkTarget_LDFLAGS += -fprofile-arcs -lgcov
gb_COMPILERDEFAULTOPTFLAGS := -O0
So, not surprisingly, doing this :
gb_GCOV=YES ./configure --disable-online-update --with-system-libs
gb_GCOV=YES make build-nocheck
Gives me the same result and the same errors. What 'make' target does
your script run ?
On Mon, Jul 8, 2013 at 9:35 AM, Miklos Vajna <vmiklos at suse.cz> wrote:
> On Sun, Jul 07, 2013 at 11:00:12PM +0200, John Smith <lbalbalba at gmail.com> wrote:
>> Im trying to build libreoffice with gcov/lcov code coverage. Im
>> following these steps :
>> But im getting this error: http://pastebin.com/ugnMJsyd
>> I tried adding '-lgcov' for ENVLINKFLAGS and LDFLAGS, but that doesnt help.
>> Any thoughts and pointers appreciated.
> I'm regularly building part of the code with gcov options using this
> So, setting gb_GCOV does the right thing here. If you want to do that
> for the whole build, try using:
> make bootstrap fetch
> make -j <num> -rs -f Makefile.gbuild gb_GCOV=YES
> instead of plain "make".
More information about the LibreOffice