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

Setting QT_ANDROID_EXTRA_LIBS crashes LLVM in NDK: 25.1.8937393

    XMLWordPrintable

Details

    • Android

    Description

      My SDK: Android\Sdk\ndk\25.1.8937393

      I have some libs files which gets loaded at runtime through qt plugin system. I want to deploy this into my android-build libs folder file using androiddeployqt.

      I do this like this:

      list(APPEND EXTRA_LIBS myFirst.so mySecond.so)

      set_target_properties(myExecutableTarget
          PROPERTIES
          QT_ANDROID_EXTRA_LIBS "${EXTRA_LIBS}"
      )

      when the build runs androiddeployqt then I get this error:

      LLVM ERROR: IO failure on output stream: Invalid argument
      PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace.
       #0 0x00007ff7f6904fb6 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x2b4fb6)
       #1 0x00007ffe8505e6d5 (C:\Windows\System32\ucrtbase.dll+0x7e6d5)
       #2 0x00007ffe8505f6e1 (C:\Windows\System32\ucrtbase.dll+0x7f6e1)
       #3 0x00007ff7f6847c93 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x1f7c93)
       #4 0x00007ff7f685c382 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x20c382)
       #5 0x00007ff7f686b39d (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x21b39d)
       #6 0x00007ffe84ffbfe4 (C:\Windows\System32\ucrtbase.dll+0x1bfe4)
       #7 0x00007ffe84ffbf6a (C:\Windows\System32\ucrtbase.dll+0x1bf6a)
       #8 0x00007ffe84ffc087 (C:\Windows\System32\ucrtbase.dll+0x1c087)
       #9 0x00007ff7f6651485 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x1485)
      #10 0x00007ff7f66514c8 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x14c8)
      #11 0x00007ffe866a257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
      #12 0x00007ffe87c2aa48 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa48)
      LLVM ERROR: IO failure on output stream: Invalid argument
      PLEASE submit a bug report to https://github.com/android-ndk/ndk/issues and include the crash backtrace.
       #0 0x00007ff7f6904fb6 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x2b4fb6)
       #1 0x00007ffe8505e6d5 (C:\Windows\System32\ucrtbase.dll+0x7e6d5)
       #2 0x00007ffe8505f6e1 (C:\Windows\System32\ucrtbase.dll+0x7f6e1)
       #3 0x00007ff7f6847c93 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x1f7c93)
       #4 0x00007ff7f685c382 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x20c382)
       #5 0x00007ff7f686b39d (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x21b39d)
       #6 0x00007ffe84ffbfe4 (C:\Windows\System32\ucrtbase.dll+0x1bfe4)
       #7 0x00007ffe84ffbf6a (C:\Windows\System32\ucrtbase.dll+0x1bf6a)
       #8 0x00007ffe84ffc087 (C:\Windows\System32\ucrtbase.dll+0x1c087)
       #9 0x00007ff7f6651485 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x1485)
      #10 0x00007ff7f66514c8 (C:\Users\dev\AppData\Local\Android\Sdk\ndk\25.1.8937393\toolchains\llvm\prebuilt\windows-x86_64\bin\llvm-readobj.exe+0x14c8)
      #11 0x00007ffe866a257d (C:\Windows\System32\KERNEL32.DLL+0x1257d)
      #12 0x00007ffe87c2aa48 (C:\Windows\SYSTEM32\ntdll.dll+0x5aa48)

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jbosb Jeremias Bosch
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes