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

androiddeployqt fails with "unknown argument '--libs'" when call llvm-readobj v14

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Fixed
    • Affects Version/s: 6.3.1
    • Fix Version/s: None
    • Labels:
      None

      Description

      androiddeployqt calls llvm-readobj with arg '-needed-libs': 1, 2

      Support of one-dash long options was removed from llvm at this commit (version=13). See also discussion.

      android-ndk v24 includes llvm v14, so problem must be reproduced with any Qt + android NDK v24 (and, likely, future v25).

      I try to change '-needed-libs' to '--needed-libs' in Qt code and androiddeployqt works. Seems, this can be a solution. As I understand, double dash long options was always supported (still need to check).
      Don't know which versions of Qt need to be fixed. I try to use 6.3.1, but the same code must be in v5.

      As for me, this is also ugly behaviour from llvm, because produced error message is confusing.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              villevoutilainen_qt Ville Voutilainen
              Reporter:
              fft fft nn
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes