Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22287

How to solve - genhtml error : File or path name too long

$
0
0

I use MingW (Ver for windows 10), Cunit (Ver 2.1.2), LCOV(1.14) combination for cunit testing and code coverage. I see that html report is not generated on some PCs but successfully generated on my PC. Note: compilation is through, cunit results are displayed and only genhtml has problems in some PCs

Below is the error:

Generating output. mkdir: cannot create directory `c/Folder1/Folder2/Folder3/Folder4/Folder5/Folder6/Folder7/Folder8/Folder9': File or path name too long genhtml: ERROR: cannot create directory c/Folder1/Folder2/Folder3/Folder4/Folder5/Folder6/Folder7/Folder8/Folder9/Folder10! HTML REPORT GEN failed

Below is the example code:

GENHTML = C:/LONG_PATH_COMES_HERE/Tools/lcov-1.14/bin/genhtml

GCOV_FILES = C:/LONG_PATH_COMES_HERE/User_folder1/coverage_app.info

GENHTML_PATH = C:/LONG_PATH_COMES_HERE/User_folder2/html_coverage_report

$(GENHTML) $(GCOV_FILES) --rc lcov_branch_coverage=1 --demangle-cpp --ignore-errors source --output-directory $(GENHTML_PATH) || ( echo " HTML REPORT GEN failed" )

Viewing all articles
Browse latest Browse all 22287

Latest Images

Trending Articles



Latest Images