Bug 2799

Summary: update or remove lcov installation in utils/
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: build systemAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED MOVED    
Severity: normal CC: ns-bugs
Priority: P3    
Version: unspecified   
Hardware: All   
OS: All   

Description Tom Henderson 2017-10-10 09:15:10 EDT
Our wscript has some hooks to enable gcov and print lcov report information, for code coverage analysis:

./waf configure --enable-gcov ...
./waf build
./test.py
./waf --lcov-report

The problem is that running lcov-report even on a modestly scoped build will immediately generate the following error (e.g. from a Fedora 26 machine):

Capturing coverage data from .
Found gcov version: 7.1.1
Scanning . for .gcda files ...
Found 389 data files in .
Processing src/mobility/model/waypoint.cc.1.gcda
Out of memory!

However, running lcov at the command line (if lcov is installed somewhere else on the machine) will succeed:
$ lcov --capture --directory . --output-file coverage.info
$ genhtml coverage.info --output-directory out

Our version of lcov is 1.9 (which is reported to exhibit the above 'Out of memory!' problem).  Upstream is now at 1.13.  We need to either update our local patched version or abandon it and just run the system installed version.
Comment 1 Tom Henderson 2019-12-13 14:18:27 EST
This issue moved to GitLab.com:  https://gitlab.com/nsnam/ns-3-dev/issues/119