-ftest-coverage -fprofile-arcs doesnt produce the datafiles ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Im working on a rather big project where we are doing compilations for
multiple build targets (arm & x86). Im  using scratch as my
"crosscompilation" platform and i've stumbled upon a rather
problematic issue with compiling the project with coverage options.

Ok, so the basic situation is that i have x86 & arm targets in
scratchbox and everything is working: compiling the project results
all the files being generated during compilation time and when the
code is executed, datafiles are updated and gcov is able to produce
its reports.

However, on another machine that should have exact same version of g++
 (4.2.1) and libraries, compiling the same project does not produce
the datafiles ($SOURCE.gcno) and thus no coverage data cannot be
harvested afterwards.

Build is automated via qt4's qmake and the exact compilation switches are:

g++ -c -pipe -ftest-coverage -fprofile-arcs -g -Wall -W


I've tried to do a simple test application on the machines where the
coverage does not work with our project and for the test application,
g++ is able to create the files but not for the actual project. And
with same exact parameters everything works on other machines.

Any ideas what could be causing this or any pointers on how to try to
isolate the problem ?

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux