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

gcc warnings parser retrieves parts of contextual informations into errors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • warnings-plugin
    • None
    • using hudson 1.345 on ubuntu karmic

    Description

      The gcc error parser gets an incorrect error message when it is preceded by a contextual information using the following syntax "In file included from <file1>\n from <file2>\n [...] from <fileN>".
      example:
      In file included from /usr/include/c++/4.4/backward/hash_set:59,
      from ../../../../extlibs/miniBoost/boost/graph/adjacency_list.hpp:25,
      from Node.cpp:50:
      /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

      The message matched by the regular expression starts at: " from Node.cpp:50:".
      I ran the regexp in a text editor and it seems to be matching these 2 lines, which is obviously wrong:
      from Node.cpp:50:
      /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future

      The reported error is set to high priority and details look like this:
      File: from Node.cpp, Line: 0, Type: gcc, Priority: High, Category: GCC error

      Here are other lines where the same error occurs:
      In file included from /usr/include/c++/4.4/backward/hash_set:59,
      from ../../../../extlibs/miniBoost/boost/graph/adjacency_list.hpp:25,
      from ../../../../modules/sofa/simulation/bgl/BglGraphManager.h:44,
      from ../../../../modules/sofa/simulation/bgl/BglNode.h:41,
      from BglCollisionGroupManager.cpp:33:
      /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

      In file included from /usr/include/c++/4.4/backward/hash_set:59,
      from ../../../../extlibs/miniBoost/boost/graph/adjacency_list.hpp:25,
      from ../../../../modules/sofa/simulation/bgl/BglGraphManager.h:44,
      from ../../../../modules/sofa/simulation/bgl/BglSimulation.h:41,
      from BglSimulation.cpp:38:
      /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

      In file included from /usr/include/c++/4.4/backward/hash_set:59,
      from ../../../../extlibs/miniBoost/boost/graph/adjacency_list.hpp:25,
      from ../../../../modules/sofa/simulation/bgl/BglGraphManager.h:44,
      from ../../../../modules/sofa/simulation/bgl/BglGraphManager.inl:42,
      from BglGraphManager.cpp:39:
      /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

      In file included from /usr/include/c++/4.4/backward/hash_set:59,
      from ../../../../extlibs/miniBoost/boost/graph/adjacency_list.hpp:25,
      from ../../../../modules/sofa/simulation/bgl/BglGraphManager.h:44,
      from ../../../../modules/sofa/simulation/bgl/BglSimulation.h:41,
      from ../../../../modules/sofa/simulation/bgl/GetObjectsVisitor.h:31,
      from GetObjectsVisitor.cpp:27:
      /usr/include/c++/4.4/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.

      Attachments

        Issue Links

          Activity

            drulli Ulli Hafner added a comment -

            This seems to be related to JENKINS-4753 and JENKINS-5329.

            drulli Ulli Hafner added a comment - This seems to be related to JENKINS-4753 and JENKINS-5329 .

            Code changed in hudson
            User: : drulli
            Path:
            trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/Gcc4CompilerParserTest.java
            trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/issue5605.txt
            http://jenkins-ci.org/commit/29242
            Log:
            [FIXED JENKINS-5605] Added test case.

            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : drulli Path: trunk/hudson/plugins/warnings/src/test/java/hudson/plugins/warnings/parser/Gcc4CompilerParserTest.java trunk/hudson/plugins/warnings/src/test/resources/hudson/plugins/warnings/parser/issue5605.txt http://jenkins-ci.org/commit/29242 Log: [FIXED JENKINS-5605] Added test case.

            People

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

              Dates

                Created:
                Updated:
                Resolved: