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

QMake generates invalid ar object script on Win32/MinGW when path to object is absolute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.5.0, 4.5.1, 4.5.2, 4.5.3, 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
    • Build tools: qmake
    • None
    • Windows, MinGW
    • 0e443155c99a1ba9b990e7a2195132b2b8a1d36e

    Description

      On Windows/MinGW, when QMake decides to use absolute path for some object file, the code that generates ar object script does not prepend the object file name with ADDMOD command. This makes the generated ar object script file invalid and yields following errors from the issued "ar -M" command:

      Syntax error in archive script, line 2
      Syntax error in archive script, line 3
      etc...

      And the build failed in the linking phase, because the generated static library was empty.

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            suutari Tuomas Suutari
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes