Re: error while building leon3 with gcov flags

2018-06-13 Thread Vijay Kumar Banerjee
On Wed, 13 Jun 2018, 11:51 Joel Sherrill, wrote: > > > On Sun, Jun 10, 2018, 6:02 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> >> >> On Sun, 10 Jun 2018, 20:52 Joel Sherrill, wrote: >> >>> >>> >>> On Sat, Jun 9, 2018, 6:02 PM Vijay Kumar Banerjee < >>>

Re: error while building leon3 with gcov flags

2018-06-13 Thread Joel Sherrill
On Sun, Jun 10, 2018, 6:02 PM Vijay Kumar Banerjee wrote: > > > On Sun, 10 Jun 2018, 20:52 Joel Sherrill, wrote: > >> >> >> On Sat, Jun 9, 2018, 6:02 PM Vijay Kumar Banerjee < >> vijaykumar9...@gmail.com> wrote: >> >>> On 10 June 2018 at 04:16, Joel Sherrill wrote: >>> I suggest this

Re: error while building leon3 with gcov flags

2018-06-11 Thread Vijay Kumar Banerjee
On 6 June 2018 at 20:49, Joel Sherrill 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 \ >

Re: error while building leon3 with gcov flags

2018-06-10 Thread Vijay Kumar Banerjee
On Sun, 10 Jun 2018, 20:52 Joel Sherrill, wrote: > > > On Sat, Jun 9, 2018, 6:02 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 10 June 2018 at 04:16, Joel Sherrill wrote: >> >>> I suggest this because it is a work around for you. The long term >>> solution could be to add

Re: error while building leon3 with gcov flags

2018-06-10 Thread Joel Sherrill
On Sat, Jun 9, 2018, 6:02 PM Vijay Kumar Banerjee wrote: > On 10 June 2018 at 04:16, Joel Sherrill wrote: > >> I suggest this because it is a work around for you. The long term >> solution could be to add the symbol to newlib's dummy RTEMS crt0.c, add it >> to librtemscpu.a (which is the

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
I suggest this because it is a work around for you. The long term solution could be to add the symbol to newlib's dummy RTEMS crt0.c, add it to librtemscpu.a (which is the temporary hack I suggested), add a libgcov.a implementation or stub to RTEMS, or modify GCC. Up until now, we have avoided

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
For now, add a file to libcsupport/src which provides the symbols needed. Make sure things are methods or data as needed. Check GCC source for the prototype. On Sat, Jun 9, 2018, 3:34 PM Vijay Kumar Banerjee wrote: > On 10 June 2018 at 01:28, Joel Sherrill wrote: > >> >> >> On Sat, Jun 9,

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 10 June 2018 at 01:28, Joel Sherrill wrote: > > > On Sat, Jun 9, 2018, 2:29 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 10 June 2018 at 00:55, Joel Sherrill wrote: >> >>> >>> >>> On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee < >>> vijaykumar9...@gmail.com> wrote:

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
On Sat, Jun 9, 2018, 2:29 PM Vijay Kumar Banerjee wrote: > On 10 June 2018 at 00:55, Joel Sherrill wrote: > >> >> >> On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee < >> vijaykumar9...@gmail.com> wrote: >> >>> On 9 June 2018 at 19:56, Joel Sherrill wrote: >>> On Sat, Jun 9,

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 10 June 2018 at 00:55, Joel Sherrill wrote: > > > On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 9 June 2018 at 19:56, Joel Sherrill wrote: >> >>> >>> >>> On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee < >>> vijaykumar9...@gmail.com> wrote:

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
On Sat, Jun 9, 2018, 2:22 PM Vijay Kumar Banerjee wrote: > On 9 June 2018 at 19:56, Joel Sherrill wrote: > >> >> >> On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee < >> vijaykumar9...@gmail.com> wrote: >> >>> Hello, >>> >>> I was going through the gcc manual for gcov >>> >>>

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
On 9 June 2018 at 19:56, Joel Sherrill wrote: > > > On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> Hello, >> >> I was going through the gcc manual for gcov >> https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and- >> Optimization >>

Re: error while building leon3 with gcov flags

2018-06-09 Thread Joel Sherrill
On Sat, Jun 9, 2018, 6:01 AM Vijay Kumar Banerjee wrote: > Hello, > > I was going through the gcc manual for gcov > > https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and-Optimization > > It mentions that the flag -fprofile-arcs is necessary for generating the > .gcda files. >

Re: error while building leon3 with gcov flags

2018-06-09 Thread Vijay Kumar Banerjee
Hello, I was going through the gcc manual for gcov https://gcc.gnu.org/onlinedocs/gcc/Gcov-and-Optimization.html#Gcov-and-Optimization It mentions that the flag -fprofile-arcs is necessary for generating the .gcda files. I have tried it with a small hello world program to see the reports, and it

Re: error while building leon3 with gcov flags

2018-06-07 Thread Vijay Kumar Banerjee
On Fri, 8 Jun 2018, 01:09 Joel Sherrill, wrote: > Bringing in Krzysztof. Hoping he can get us on the right track here. > > I don't think you can run GcovData.cc independent of a covoar run. > Understood. > If you can figure out how to write a unit test that would be helpful. > Will try to do

Re: error while building leon3 with gcov flags

2018-06-07 Thread Joel Sherrill
Bringing in Krzysztof. Hoping he can get us on the right track here. I don't think you can run GcovData.cc independent of a covoar run. If you can figure out how to write a unit test that would be helpful. On Thu, Jun 7, 2018 at 2:29 PM, Vijay Kumar Banerjee < vijaykumar9...@gmail.com> wrote: >

Re: error while building leon3 with gcov flags

2018-06-07 Thread Vijay Kumar Banerjee
Hello, I was looking into the code in GcovData.cc to see how it works and what it's doing, too me it looked like very messed up, I couldn't understand (yet) what it's trying to do. Is there some way I can manually run it for one file? Is there any place where I can read how it was intended to

Re: error while building leon3 with gcov flags

2018-06-06 Thread Vijay Kumar Banerjee
On Thu, 7 Jun 2018, 02:39 Joel Sherrill, wrote: > > > On Wed, Jun 6, 2018, 3:56 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 7 June 2018 at 01:48, Joel Sherrill wrote: >> >>> >>> >>> On Wed, Jun 6, 2018, 2:07 PM Vijay Kumar Banerjee < >>> vijaykumar9...@gmail.com> wrote:

Re: error while building leon3 with gcov flags

2018-06-06 Thread Joel Sherrill
On Wed, Jun 6, 2018, 3:56 PM Vijay Kumar Banerjee wrote: > On 7 June 2018 at 01:48, Joel Sherrill wrote: > >> >> >> On Wed, Jun 6, 2018, 2:07 PM Vijay Kumar Banerjee < >> vijaykumar9...@gmail.com> wrote: >> >>> On 6 June 2018 at 20:49, Joel Sherrill wrote: >>> I can't duplicate this. My

Re: error while building leon3 with gcov flags

2018-06-06 Thread Vijay Kumar Banerjee
On 7 June 2018 at 01:48, Joel Sherrill wrote: > > > On Wed, Jun 6, 2018, 2:07 PM Vijay Kumar Banerjee < > vijaykumar9...@gmail.com> wrote: > >> On 6 June 2018 at 20:49, Joel Sherrill wrote: >> >>> I can't duplicate this. My configure command was: >>> >>> ../rtems/configure --target=sparc-rtems5

Re: error while building leon3 with gcov flags

2018-06-06 Thread Joel Sherrill
On Wed, Jun 6, 2018, 2:07 PM Vijay Kumar Banerjee wrote: > On 6 June 2018 at 20:49, Joel Sherrill 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 \ >>

Re: error while building leon3 with gcov flags

2018-06-06 Thread Vijay Kumar Banerjee
On 6 June 2018 at 20:49, Joel Sherrill 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 \ >

Re: error while building leon3 with gcov flags

2018-06-06 Thread Joel Sherrill
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

error while building leon3 with gcov flags

2018-06-06 Thread Vijay Kumar Banerjee
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: