Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
Platform: PC, OS: Linux
Description
By using gcc 3.4.6 version, the following errors are not reported by the
Warnings plugin :
/dir1/dir2/file.c:12:15: file.h: No such file or directory
/dir1/dir3/file.cpp:233: undefined reference to `MyInterface::getValue() const'
It seems with previous version of gcc the output format was not exactly the same.
I had a look on the Hudson plugin code and I think the regular expression can be
replaced by the following one :
/^(.\.[CHPSOLAXchpsolax0-9]+)?
\d)
?:\d*
.(warning|error|undefined
reference to|No such file or directory|cannot find):?)(.*)$
NB: I did not test it with Hudson
Is there a gcc option to change the output format? Seems that the error: and
warning: prefixes are missing. Are there gcc 3.4.6 warnings that get parsed with
the current parser? If yes please attach a bigger sample so that I can adjust
the regular expression.
This is a working example from the testcase:
testhist.l:451: warning: `void yyunput(int, char*)' defined but not used
/u1/drjohn/bfdist/packages/RegrTest/V00-03-01/RgtAddressLineScan.cc:73: error:
implicit typename is deprecated, please see the documentation for details
foo.cc:4:39: error: foo.h: No such file or directory
foo.so: undefined reference to 'missing_symbol'
../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp:678: warning:
missing initializer for member sigaltstack::ss_sp
../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp:678: warning:
missing initializer for member sigaltstack::ss_flags
../../lib/linux-i686/include/boost/test/impl/execution_monitor.ipp:678: warning:
missing initializer for member sigaltstack::ss_size
src/test_simple_sgs_message.cxx:52: warning: large integer implicitly truncated
to unsigned type