This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
-ftest-coverage -fprofile-arcs doesnt produce the datafiles ?
- From: "Jani Mikkonen" <jani dot mikkonen at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 30 Oct 2008 12:32:09 +0200
- Subject: -ftest-coverage -fprofile-arcs doesnt produce the datafiles ?
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 ?