error while building leon3 with gcov flags

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Mon Jun 11 15:55:19 UTC 2018


On 6 June 2018 at 20:49, Joel Sherrill <joel at rtems.org> wrote:

> I can't duplicate this. My configure command was:
>
> ../rtems/configure --target=sparc-rtems5 --enable-rtemsbsp=leon3
> --prefix=/home/joel/rtems-work/tools/5 \
>    --disable-networking --enable-posix --disable-smp
> --disable-multiprocessing \
>    --enable-tests --enable-cxx --enable-maintainer-mode
>
> What was yours?
>
>
> On Wed, Jun 6, 2018 at 9:40 AM, Vijay Kumar Banerjee <
> vijaykumar9597 at gmail.com> wrote:
>
>> 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.
>>
>> I am again getting these errors. Sometimes it builds just fine and
sometimes
I get these errors with the exact same steps.

here's the command I'm using to build leon3

../rtems/configure --target=sparc-rtems5 --enable-rtemsbsp=leon3 \
--prefix=/home/lunatic/development/rtems/5 --disable-networking \
--enable-posix --disable-smp --disable-multiprocessing --enable-tests \
--enable-cxx --enable-maintainer-mode

please have a look at the full error in this gist.

https://gist.github.com/thelunatic/12f3091505afe7a79dcd74c106e1a10f
<https://gist.github.com/thelunatic/12f3091505afe7a79dcd74c106e1a10f>

-- vijay
>>
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180611/08cb2e51/attachment-0002.html>


More information about the devel mailing list