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

            fchateau fchateau created issue -
            fchateau fchateau made changes -
            Field Original Value New Value
            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.

            Summary gcc warnings parsers takes contextual informations as errors gcc warnings parsers retrieves parts of contextual informations into errors
            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
            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 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            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 [ 135697 ] JNJira + In-Review [ 203626 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: