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

Android multi abi build sometimes fail when running parallel

    XMLWordPrintable

Details

    • Android
    • 84e22f9e822cc71799bad01423cc407f2ea26fcd 39480e1841bcf6d8ad627ef63e78d1d7f84a27d8 a4b137adce57afd6062ae33b5eea76bc80576527

    Description

      When building running an Android multi abi builds using cmake (qt-cmake for configuration) the execution of androiddeployqt sometimes fails, e.g.:

       

      cmake --build . --target apk --parallel
      
      ...
      
      Failed to copy /<path_to_qt>/Qt/6.3.1/android_armv7/qml/QtQuick/Controls/Universal/qmldir to /<path_to_project_build_dir>/android-build//assets/android_rcc_bundle/qml/QtQuick/Controls/Universal/qmldir.
      

      This issue is easier to reproduce with Ninja than with Unix Makefiles, but it happens with both build systems. My guess would be that Ninja is just better to run things in parallel. It's also more likely to happen when doing an incremental build.

      My guess would be that two parallel calls to androiddeployqt are trying to write the same files.

      When I create dependencies between the external projects, so that they are being sequenced this never happens.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            jschwers Jan Schwers
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes