Comments you submit will be routed for moderation. If you have an account, please log in first.
Modify

Ticket #3913 (closed defect: invalid)

Opened 7 years ago

Last modified 6 years ago

on windows , filtering C: , and removing gcov --preserve-paths option

Reported by: jmuller@… Owned by: jdsiiro
Priority: normal Milestone:
Component: gcovr Version:
Keywords: Cc:

Description

We fix some problems on Windows system,
here they are :

1) the line 211

segments=line.split(":")

filter out filename like  C:/dir/dir/file.c
replacing with

segments=line.split("Source:")

work fine.

2) When path names are too long , gcov can't write gcov files (it's seems to be a Windows limitation).

comenting option to have smaller file names
# --preserve-paths, (line 398)
is a solution (when file names are not duplicated).
may be it could be a new option.

Thanks

version is
#

TracMath macro processor has detected an error. Please fix the problem before continuing.


The command:

'/usr/bin/pdflatex -interaction=nonstopmode cfe9cfc088759c9e66e1a3b0bcd4b8e6b8d34738.tex'
failed with the following output:
"This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)\n %&-line parsing enabled.\nentering extended mode\n(./cfe9cfc088759c9e66e1a3b0bcd4b8e6b8d34738.tex\nLaTeX2e <2005/12/01>\nBabel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh\nyphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng\nerman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,\n french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc\nus, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por\ntuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish, \nturkish, ukenglish, ukrainian, loaded.\n(/usr/share/texmf/tex/latex/base/article.cls\nDocument Class: article 2005/09/16 v1.4f Standard LaTeX document class\n(/usr/share/texmf/tex/latex/base/size10.clo))\n(/usr/share/texmf/tex/latex/base/inputenc.sty\n(/usr/share/texmf/tex/latex/base/utf8.def\n(/usr/share/texmf/tex/latex/base/t1enc.dfu)\n(/usr/share/texmf/tex/latex/base/ot1enc.dfu)\n(/usr/share/texmf/tex/latex/base/omsenc.dfu)))\n(/usr/share/texmf/tex/latex/cmap/cmap.sty)\n\n! LaTeX Error: File `type1ec.sty' not found.\n\nType X to quit or <RETURN> to proceed,\nor enter new name. (Default extension: sty)\n\nEnter file name: \n! Emergency stop.\n<read *> \n         \nl.5 \\usepackage\n               [T1]{fontenc}^^M\n!  ==> Fatal error occurred, no output PDF file produced!\nTranscript written on cfe9cfc088759c9e66e1a3b0bcd4b8e6b8d34738.log.\n"


#
TracMath macro processor has detected an error. Please fix the problem before continuing.


The command:

'/usr/bin/pdflatex -interaction=nonstopmode 5315aee97305295a1f41541403e469ccd524787c.tex'
failed with the following output:
"This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)\n %&-line parsing enabled.\nentering extended mode\n(./5315aee97305295a1f41541403e469ccd524787c.tex\nLaTeX2e <2005/12/01>\nBabel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh\nyphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng\nerman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,\n french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc\nus, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por\ntuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish, \nturkish, ukenglish, ukrainian, loaded.\n(/usr/share/texmf/tex/latex/base/article.cls\nDocument Class: article 2005/09/16 v1.4f Standard LaTeX document class\n(/usr/share/texmf/tex/latex/base/size10.clo))\n(/usr/share/texmf/tex/latex/base/inputenc.sty\n(/usr/share/texmf/tex/latex/base/utf8.def\n(/usr/share/texmf/tex/latex/base/t1enc.dfu)\n(/usr/share/texmf/tex/latex/base/ot1enc.dfu)\n(/usr/share/texmf/tex/latex/base/omsenc.dfu)))\n(/usr/share/texmf/tex/latex/cmap/cmap.sty)\n\n! LaTeX Error: File `type1ec.sty' not found.\n\nType X to quit or <RETURN> to proceed,\nor enter new name. (Default extension: sty)\n\nEnter file name: \n! Emergency stop.\n<read *> \n         \nl.5 \\usepackage\n               [T1]{fontenc}^^M\n!  ==> Fatal error occurred, no output PDF file produced!\nTranscript written on 5315aee97305295a1f41541403e469ccd524787c.log.\n"


Attachments

Change History

comment:1 Changed 7 years ago by jdsiiro

Referenced in changeset [2756]:

Cleanup in how we parse/split gcov result lines. This resolves path issues on Windows (see #3913, item 1).

comment:2 Changed 7 years ago by jdsiiro

Can you describe the gcovr behavior when gcov tries to write a file that exceeds the OS path limits? Does gcovr report an error, or just silently die?

comment:3 Changed 7 years ago by jmuller@…

Hi,
e-mail doesn't work a few weeks ago, I answer here

When this probleme appends, Gcov (v 4.5.2) writes an error on stderr. (the
stardard output stdout is Ok, see nota )
the message is like that :
C:\Users\user\Documents\project\sources\src\the\very\long\file\path\algo\src\etcetc\etcetc\classes\file.c:could
not open output file
'C~#Users#user#Documents#project#sources#src#the#very#long#file#path#algo#src#etcetc#etcetc#classes#file.c.gcov'

perhalps the variable 'source_re' (regexp expression line 49) have to be
modified to catch this defect.

Thanks
j-l Muller

Nota : the error doesn't affect standard output: standard Output for the exemple :
[
File
'C:\Users\user\Documents\project\sources\src\the\very\long\file\path\algo\src\etcetc\etcetc\classes\file.c'
Lines executed:0.00% of 7
Branches executed:0.00% of 4
Taken at least once:0.00% of 4
Calls executed:0.00% of 2

]

comment:4 Changed 6 years ago by wehart

  • Status changed from new to closed
  • Resolution set to invalid

Moved to github ticket 7

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.