Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11315

nvcc messages are not parsed correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • None
    • Qt Creator 3.1.0-beta
    • Ubuntu x64 12.04
      gcc 4.6.3
      Cuda compilation tools, release 5.0, V0.2.1221

    Description

      I use Qt Creator in a CMake based CUDA project.
      While building works fine, there is one flaw:

      CUDA files are compiled using NVIDIA's nvcc compiler, which produces warnings and error messages in a different format than gcc does.

      gcc

      filename:linenum:column: status: message
      example:
      test.cpp:3:6: warning: unused variable ‘test’

      nvcc

      filename(linenum): status: message
      example
      test.cu(3): warning: variable "test" was declared but never referenced

      When GnuMakeParser parses the output of nvcc, it interprets the message incorrect, e.g. in the above example the filename of the file is assumed to be test.cu(3), which of course does not exist.

      Now this wrong parsing leads to the fact that I can't click on the error / warning message in the issue list in Qt Creator, because that wrong filename cannot be found.

      A way to solve this issue could be to change the m_makefileError regular expression in gnumakeparser.cpp and add support for line numbers in parentheses.

      What do you think?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              dt Daniel Teske
              manuel.schiller Manuel Schiller
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes