views:

107

answers:

0

Hello,

I have some problems in using gcov/ lcov in a cross-compiler setting.

What I have:

I took the example main()-Program from the gcov documentation page and successfully compiled, linked and run it. I also was able to run lcov against it to produce the analysis in html pages. All this was in a native i.e. (NON cross-)compiling environment (i386, ubuntu 8.04LTS).

Now, when I cross-compile it on i386 for MIPS and run the executable on the target platform (MIPS, some busybox), the program runs successfully but needs surprisingly long to write the output (approx. 30 seconds). And when I finally copy the output (the .gcda-file) back to i386 and run lcov against it, it complains with: ERROR: cannot read myProgram0.gcda!

What can I do? Am I doing something wrong?

Thanks in advance! Wist best regards,

tom.