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

textfinder fails to compile with Android arm64

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Sprint:
      2021wk38POAndroid&Mobile, 2021wk40POAndroid&Mobile, 2021wk42POAndroid&Mobile, 2021wk44POAndroid&Mobile, 2021wk46POAndroid&Mobile, 2021wk48POAndroid&Mobile

      Description

      Qt6.2.0 RC Android binaries on Ubuntu20.04 x64. Open Creator and project uitools/textfinder, configure with Android arm64 and build. Fails with:

      [1/8 10.3/sec] Automatic MOC and UIC for target textfinder
      [2/8 20.3/sec] Running rcc for resource textfinder
      [3/8 27.4/sec] Building CXX object CMakeFiles/textfinder.dir/.rcc/qrc_textfinder.cpp.o
      [4/8 4.8/sec] Building CXX object CMakeFiles/textfinder.dir/textfinder_autogen/mocs_compilation.cpp.o
      [5/8 5.1/sec] Building CXX object CMakeFiles/textfinder.dir/main.cpp.o
      [6/8 5.2/sec] Building CXX object CMakeFiles/textfinder.dir/textfinder.cpp.o
      [7/8 6.0/sec] Linking CXX shared module libtextfinder_arm64-v8a.so
      FAILED: libtextfinder_arm64-v8a.so 
      : && /home/johanna/android/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --gcc-toolchain=/home/johanna/android/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/johanna/android/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot -fPIC -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security   -O0 -fno-limit-debug-info  -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libgcc_real.a -Wl,--exclude-libs,libatomic.a -Wl,--build-id -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -shared  -o libtextfinder_arm64-v8a.so CMakeFiles/textfinder.dir/textfinder_autogen/mocs_compilation.cpp.o CMakeFiles/textfinder.dir/main.cpp.o CMakeFiles/textfinder.dir/textfinder.cpp.o CMakeFiles/textfinder.dir/.rcc/qrc_textfinder.cpp.o  /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/libQt6UiTools.so.6.2.0  /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/libQt6OpenGLWidgets.so.6.2.0  /home/johanna/RTA/qt5/6.2.0/android_arm64_v8a/lib/libQt6Widgets_arm64-v8a.so  /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/libQt6OpenGL.so.6.2.0  /home/johanna/RTA/qt5/6.2.0/android_arm64_v8a/lib/libQt6Gui_arm64-v8a.so  /home/johanna/RTA/qt5/6.2.0/android_arm64_v8a/lib/libQt6Core_arm64-v8a.so  -llog  -pthread  /home/johanna/android/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/23/libGLESv2.so  /home/johanna/android/android-sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/23/libEGL.so  -latomic -lm && :
      /home/johanna/RTA/qt5/6.2.0/gcc_64/lib/libQt6UiTools.so.6.2.0: error adding symbols: File in wrong format
      clang++: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      13:21:35: The process "/home/johanna/RTA/qt5/Tools/CMake/bin/cmake" exited with code 1.
      Error while building/deploying project textfinder (kit: Android Qt 6.2.0 Clang arm64-v8a)
      When executing step "Build"
      

      If same project is configured with Android armeabi, x86 or x64  it will build fine, only the arm64 has this issue.

      Reproduces also on macOS, I don't know about Windows yet.

        Attachments

        1. image 1.PNG
          image 1.PNG
          30 kB
        2. image 2.PNG
          image 2.PNG
          35 kB

          Issue Links

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

            Activity

              People

              Assignee:
              jani-korteniemi Jani Korteniemi
              Reporter:
              joaijala Johanna Äijälä
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes