[Bug fortran/42945] Gcov -a fails on Fortan generated object file (infinite loop?)
cleme051 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 17 13:53:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42945
--- Comment #6 from cleme051 at gmail dot com ---
Hello,
I'm trying to use lcov with a research code developed in Fortran (F77,F90) but
I have a similar problem than Graeme Parkin.
The code is structured as follow :
./CODE/
./CODE/bin
./CODE/src
./CODE/testcases
./CODE/tools
After compiling the code (gfortran-4.4.5) with the "-fprofile-arcs"
"-ftest-coverage" options, I launch the following command :
"lcov -c -z ."
Then, I run a test by using the executable located in ./CODE/bin where all the
".gda" and ".gcno" files are well generated.
The next command is the source of my problems
"lcov -b . -c -d . -o CODE.info"
More precisely, the problem comes from the following command (launched by lcov)
"gcov file-problem.gcda -o file -b -c -p -a "
and, more particularly, from the uses of the option '-a'. The ".gcov" file is
never generated and, by using "strace", I see that the process is waited (what?
I don't know).
Without the option "-a", gcov works well.
Richard Biener advices to avoid the use of '-a' but lcov uses it automatically.
My work is still in progress to understand the source of this problem but if
you have any ideas about it or advices....
Thanks you.
More information about the Gcc-bugs
mailing list