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

gcc warnings parser retrieves parts of contextual informations into errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: warnings-plugin
    • Labels:
      None
    • Environment:
      using hudson 1.345 on ubuntu karmic
    • Similar Issues:

      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

            fchateau fchateau created issue -
            fchateau fchateau made changes -
            Field Original Value New Value
            Summary gcc warnings parsers takes contextual informations as errors gcc warnings parsers retrieves parts of contextual informations into errors
            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:"
            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.

            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.

            fchateau fchateau made changes -
            Summary gcc warnings parsers retrieves parts of contextual informations into errors gcc warnings parser retrieves parts of contextual informations into errors
            Hide
            drulli Ulli Hafner added a comment -

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

            Show
            drulli Ulli Hafner added a comment - This seems to be related to JENKINS-4753 and JENKINS-5329 .
            drulli Ulli Hafner made changes -
            Link This issue is blocking JENKINS-5870 [ JENKINS-5870 ]
            drulli Ulli Hafner made changes -
            Link This issue depends on JENKINS-4753 [ JENKINS-4753 ]
            Hide
            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.

            Show
            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.
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            abayer Andrew Bayer made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 135697 ] JNJira + In-Review [ 203626 ]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: