Details
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 |
36753,2 | Sanitize the semantics of the command line verbosity setting. | master | qbs/qbs | Status: MERGED | +2 | 0 |