I am trying to generate lcov (version: 1.9) data within the following source directory:
src/
foo.o
foo.gcno
test/inc
foo.h
test/src
foo.cc
Note: that the src/ directory does contain the .gcno file I need, but when I run the lcov command an error occurs during initialization from geninfo:
$LCOV --initial --directory . --base-directory . --gcov-tool $GCOV -c -output-file $initCovFile
geninfo: ERROR: no .bb files found in .!
I have read that --initial
should be detecting filetypes .bb, .bbg, or .gcno, but the error above seems to prevent further execution. Next I tried to suppress the errors, so that I might be able to get some output using --ignore-errors
option as follows:
geninfo -i . --ignore-errors no .bb files found in . --ignore-errors cannot read .bb!
geninfo: ERROR: cannot read .bb!
I was not able to get past the above error. I do not understand is why geninfo wouldn't just ignore these errors and use the .gcno file in the directory structure above.
How can I get geninfo/lcov to cleanly initialize as I would expect it to?