Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-62985

Building static libs with mingw32-make and Git Bash generates NUL files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.1
    • Fix Version/s: 5.9.3
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Commits:
      5fa64386336b3072a12054726483e4850fc53dea

      Description

      Since this commit http://code.qt.io/cgit/qt/qtbase.git/commit/?id=f5f772849ca1ada44f3de537633eec2664b14fd4, qmake deletes .a files before calling ar. When building on Windows with mingw32-make from the Git Bash shell, this generates a command like this:

      rm foo.a 2>NUL

      This causes the creation of a NUL file instead of suppressing the error message.

      I believe the code should use the isWindowsShell() function to decide whether it should redirect to NUL or to /dev/null instead of hardcoding it at build time.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              orgads Orgad Shaneh
              Reporter:
              agateau Aurélien Gâteau
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes