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

Warnings from gcc-4 build output being picked up when using Warnings MSBuild filter

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-plugin
    • None
    • Jenkins system is Ubuntu 12.04 Server

      I build for 2 platforms serially on 2 different build VMs and have the output go to the same common log file.

      I use MSBuild to parse that log file for the Win MSBuild related warnings and gcc-4 for the MacOS gcc warnings.

      Currently, the MSBuild warning filter is picking up this output from the MacOS build (note the forward slashes among other evidence that show this is not on Windows):

      ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/gcc/powerpc-apple-darwin10/4.0.1/crt2.o creating bin/paqa_devs
      ld: warning: object file compiled with -mlong-branch which is no longer needed. To remove this warning, recompile without -mlong-branch: /usr/lib/gcc/powerpc-apple-darwin10/4.0.1/crt2.o creating bin/patest1

      I think the regex needs to be improved for MSBuild to ignore non-Windows output or perhaps the format of the error code (in this case "ld:") should be more strict so as not to allow invalid MSBuild codes (I can't imagine that ld: is a valid MSBuild code).

      What this ends up doing is greatly tilting our MSBuild warnings count and including unusable information in the MSBuild warnings result page.

          [JENKINS-20544] Warnings from gcc-4 build output being picked up when using Warnings MSBuild filter

          Shannon Kerr created issue -
          Ulli Hafner made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Shannon Kerr made changes -
          Attachment New: Screen Shot 2014-03-05 at 7.53.56 AM.png [ 25507 ]
          Shannon Kerr made changes -
          Attachment New: Screen Shot 2014-03-05 at 8.20.46 AM.png [ 25508 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Shannon Kerr made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 152069 ] New: JNJira + In-Review [ 207138 ]

            drulli Ulli Hafner
            kerrhome Shannon Kerr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: