error while building leon3 with gcov flags

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Wed Jun 6 14:40:33 UTC 2018


Hello,

I have added the following changes in the bsps/sparc/leon3/config/leon3.cfg

----------
CFLAGS_OPTIMIZE_V = -Os -g
CFLAGS_OPTIMIZE_V += -ftest-coverage
-------

While trying to build with these flags, I got a bunch of
the following errors:

==========
{standard input}: Assembler messages:
{standard input}:6510: Error: can't resolve `.data._SPARC_Counter'
{.data._SPARC_Counter section} - `.LLtext0' {.text section}
{standard input}:6511: Error: can't resolve `.data._SPARC_Counter'
{.data._SPARC_Counter section} - `.LLtext0' {.text section}

===================

after the `make install` I do get a lot of .gcno files, and no
executables.

-- vijay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180606/7a934011/attachment.html>


More information about the devel mailing list