Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-3897

Some gcc 3.4.6 errors are not reported

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • warnings-plugin
    • 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

      Attachments

        Activity

          paskalad paskalad created issue -
          drulli Ulli Hafner added a comment -

          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

          drulli Ulli Hafner added a comment - 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
          paskalad paskalad added a comment -

          I did not find a way to change the gcc output format.
          Most of the gcc 3.4.6 warnings/errors are correctly parsed by Hudson.
          Some examples I have:
          /dir/file.cpp:1060: warning: NULL used in arithmetic
          /dir/file.cpp:49:30: warning: backslash and newline separated by space
          /dir/file.h:263: warning: converting to `int' from `double
          /dir/file.h:40: warning: width of `File::Data::dataPrivate' exceeds its type
          /dir/file.cpp:319: warning: passing NULL used for non-pointer converting 2 of
          `void* memset(void*, int, size_t)
          /dir/file.cpp:183: error: `Value1' was not declared in this scope

          For the not parsed error, I haven't bigger example to submit.

          paskalad paskalad added a comment - I did not find a way to change the gcc output format. Most of the gcc 3.4.6 warnings/errors are correctly parsed by Hudson. Some examples I have: /dir/file.cpp:1060: warning: NULL used in arithmetic /dir/file.cpp:49:30: warning: backslash and newline separated by space /dir/file.h:263: warning: converting to `int' from `double /dir/file.h:40: warning: width of `File::Data::dataPrivate' exceeds its type /dir/file.cpp:319: warning: passing NULL used for non-pointer converting 2 of `void* memset(void*, int, size_t) /dir/file.cpp:183: error: `Value1' was not declared in this scope For the not parsed error, I haven't bigger example to submit.

          Code changed in hudson
          User: : drulli
          Path:
          trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/GccParser.java
          trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/GccParserTest.java
          trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java
          trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/all.txt
          http://fisheye4.cenqua.com/changelog/hudson/?cs=20634
          Log:
          [FIXED JENKINS-3897][FIXED JENKINS-3898] Improved regular expression for gcc warnings.

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/warnings/src/main/java/hudson/plugins/warnings/parser/GccParser.java trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/GccParserTest.java trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/ParserRegistryTest.java trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/all.txt http://fisheye4.cenqua.com/changelog/hudson/?cs=20634 Log: [FIXED JENKINS-3897] [FIXED JENKINS-3898] Improved regular expression for gcc warnings.
          drulli Ulli Hafner added a comment -

          Fixed and released.

          drulli Ulli Hafner added a comment - Fixed and released.
          drulli Ulli Hafner made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          abayer Andrew Bayer made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 133970 ] JNJira + In-Review [ 202529 ]

          People

            drulli Ulli Hafner
            paskalad paskalad
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: