undefined reference to `__gcov_init' when using FLAGS+='-fprofile-arcs -ftest-coverage'
John Smith
lbalbalba at gmail.com
Wed Dec 12 01:37:37 PST 2012
On Wed, Dec 12, 2012 at 3:04 AM, Caolán McNamara <caolanm at redhat.com> wrote:
> On Tue, 2012-12-11 at 21:50 +0100, John Smith wrote:
>> But I still get this error message (in 'make setup_native')
>>
>> undefined reference to `__gcov_init'
>>
>> Does anyone have an idea of what might be going on here ?
>
> Does
> - LDFLAGS+='-fprofile-arcs' CFLAGS+='-fprofile-arcs -ftest-coverage'
> + LDFLAGS+='-fprofile-arcs -lgcov' CFLAGS+='-fprofile-arcs
> -ftest-coverage'
>
> make any difference ?
>
Sadly, explicitly adding -glcov (-fprofile-arcs implies -lgcov) does
not make a difference. I still get this :
Making: getuid.so
No winegcc present, not building msiinfo...
Entering /usr/local/src/libreoffice/setup_native/source/win32/wintools/msimsp
../../unxlngi6.pro/slo/getuid.o: In function `_GLOBAL__sub_I_65535_0_getuid.c':
getuid.c:(.text.startup+0x1a): undefined reference to `__gcov_init'
../../unxlngi6.pro/slo/getuid.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/lib/getuid.so'
-----------------------------------------------------------------------
Oh dear - something failed during the build - sorry !
For more help with debugging build errors, please see the section in:
http://wiki.documentfoundation.org/Development
No winegcc present, not building msimsp...
internal build errors:
ERROR: error 65280 occurred while making
/usr/local/src/libreoffice/setup_native/scripts/source
it seems that the error is inside '', please re-run build
inside this module to isolate the error and/or test your fix.
-----------------------------------------------------------------------
To rebuild a specific module:
make .clean # optional
make
when the problem is isolated and fixed, re-run 'make'
make[1]: *** [setup_native] Error 1
make[1]: Leaving directory `/usr/local/src/libreoffice'
make: *** [setup_native] Error 2
[root at localhost libreoffice]#
More information about the LibreOffice
mailing list