Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-80

-v option is confusing and inconsistant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 0.2
    • 0.2
    • General
    • None
    • qbs from git 22c8d5b4298762ba6d9890a859259fa08eff7d85
    • fb59966b904a5df4fbad9c71e23fdbd388f8e9a8

    Description

      For a project that fails at link stage I get this:

      d:\workitems\qbs-bugs>qbs -f linkfail.qbp
      Found project file D:\workitems\qbs-bugs\linkfail.qbp
      loading project took:  47 ms
      build graph took:  15 ms
      for debug:
        - [hpp, application] linkfail as debug
      
      Scanning for file dependencies...
      compiling linkfail.cpp
      linking linkfail.exe
      C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin/link.exe /nologo /DEBUG /MANIFEST /MANIFESTFILE:D:\workitems\
      qbs-bugs\build\debug\linkfail.exe.intermediate.manifest D:\workitems\qbs-bugs\build\debug\.obj\linkfail\linkfail.obj /OU
      T:D:\workitems\qbs-bugs\build\debug\linkfail.exe
      linkfail.obj : error LNK2019: unresolved external symbol "void __cdecl stuff(void)" (?stuff@@YAXXZ) referenced in functi
      on _main
      D:\workitems\qbs-bugs\build\debug\linkfail.exe : fatal error LNK1120: 1 unresolved externals
      
      ERROR: Process failed with exit code 1120.
      ERROR: The following products could not be built: linkfail.
      Build failed.
      

      If I specify a single -v however, I get less output! (This is after cleaning the build directory)

      d:\workitems\qbs-bugs>qbs -v -f linkfail.qbp
      loading project took:  47 ms
      build graph took:  0 ms
      for debug:
        - [hpp, application] linkfail as debug
      
      ERROR: Process failed with exit code 1120.
      ERROR: The following products could not be built: linkfail.
      

      It seems like I need to give 3 -vs before I get the same output as I would if I gave none at all. Very confusing.

      I'd suggest:
      -v should show the invocations of all external tools even ones that succeed (currently only possible with -vvvv which adds much more stuff)
      -vv can be more verbose about internals of calculating what needs to be compiled
      -vvv can go crazy

      If a mode is needed that outputs less that the default, I'd suggest it should have a separate flag such as -q

      Attachments

        For Gerrit Dashboard: QBS-80
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            tomsci Tom Sutcliffe
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes