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

Error building qtwebengine/qtpdf since 6.5.3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.3
    • None
    • Android

    Description

      I'm trying to build QtPdf/QtWebEngine for android abi armeabi-v7a
      Failure is with Qt 6.5.3. It used to work with Qt 6.5.1

      Bug was probably introduced with
      https://github.com/qt/qtwebengine/commit/b698955b933e20ef3cf83ed6c7bb8bbd7cce3aca

      To reproduce:

      First build GN:

        cmake -S qtwebengine/src/gn -B debian/build-qtpdf/qtwebengine -DCMAKE_INSTALL_PREFIX=debian/build-qtpdf/qtwebengine/install
        cmake --build debian/build-qtpdf/qtwebengine --parallel
        cmake --install debian/build-qtpdf/qtwebengine
      
        mkdir -p debian/build-qtpdf-armeabi-v7a/qtwebengine/install
        cp -a debian/build-qtpdf/qtwebengine/install/bin debian/build-qtpdf-armeabi-v7a/qtwebengine/install
      

      Then build qtwebengine only:

        cmake -B debian/build-qtpdf-armeabi-v7a -S . --log-level=STATUS \
          -DCMAKE_INSTALL_PREFIX=/usr/lib/qt-android-6.5-armeabi-v7a \
          -DBUILD_WITH_PCH=OFF \
          -DANDROID_SDK_ROOT="$ANDROID_SDK_ROOT" \
          -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK_ROOT"/build/cmake/android.toolchain.cmake \
          -DANDROID_ABI=armeabi-v7a \
          -DCMAKE_BUILD_TYPE=Release \
          -DBUILD_qtwayland=OFF \
          -DQT_HOST_PATH=/usr \
          -DQT_HOST_PATH_CMAKE_DIR=/usr/lib/x86_64-linux-gnu/qt-android-6.5-host/cmake \
          -GNinja \
          -DFEATURE_qtwebengine_build=OFF \
          -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON
          
          cmake --build debian/build-qtpdf-armeabi-v7a -t qtwebengine
      

      Output:

      [488/1577] Performing configure step for 'hostBuild'
      FAILED: qtwebengine/src/host/src/hostBuild-stamp/hostBuild-configure /mnt/packages/git_repos/dpkg/qt-android/debian/build-qtpdf-armeabi-v7a/qtwebengine/src/host/src/hostBuild-stamp/hostBuild-configure 
      cd /mnt/packages/git_repos/dpkg/qt-android/debian/build-qtpdf-armeabi-v7a/qtwebengine/src/host && /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE=/usr/lib/x86_64-linux-gnu/qt-android-6.5-host/cmake/Qt6/qt.toolchain.cmake -DWEBENGINE_ROOT_BUILD_DIR=/mnt/packages/git_repos/dpkg/qt-android/debian/build-qtpdf-armeabi-v7a/qtwebengine -DWEBENGINE_ROOT_SOURCE_DIR=/mnt/packages/git_repos/dpkg/qt-android/qtwebengine -DGN_TARGET_CPU=arm -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= -DQT_FEATURE_qtwebengine_build=OFF -DQT_FEATURE_qtpdf_build=ON -GNinja /mnt/packages/git_repos/dpkg/qt-android/qtwebengine/src/host && /usr/bin/cmake -E touch /mnt/packages/git_repos/dpkg/qt-android/debian/build-qtpdf-armeabi-v7a/qtwebengine/src/host/src/hostBuild-stamp/hostBuild-configure
      -- The CXX compiler identification is GNU 12.2.0
      -- The C compiler identification is GNU 12.2.0
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /usr/bin/c++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/cc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE  
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE  
      CMake Error at CMakeLists.txt:66 (MESSAGE):
        Compiler does not support 32bit compilation
      

      Line 66 refers to file in qtwebengine/src/host/config.tests/hostcompiler/

       

      You might also be interested in the result of this command:

      debian/build-qtpdf-armeabi-v7a/qtwebengine/src/host/config.tests/hostcompiler$ ninja 
      

      Output:

      [1/2] Building CXX object CMakeFiles/host_compiler_test.dir/main.cpp.o
      FAILED: CMakeFiles/host_compiler_test.dir/main.cpp.o 
      /usr/bin/c++   -m32 -o CMakeFiles/host_compiler_test.dir/main.cpp.o -c /mnt/packages/git_repos/dpkg/qt-android/qtwebengine/src/host/config.tests/hostcompiler/main.cpp
      In file included from /mnt/packages/git_repos/dpkg/qt-android/qtwebengine/src/host/config.tests/hostcompiler/main.cpp:4:
      /usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
         27 | #include <bits/libc-header-start.h>
            |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
      compilation terminated.
      ninja: build stopped: subcommand failed.
      

      On Debian 12 (bookworm), libc-header-start.h is found in /usr/include/x86_64-linux-gnu/bits/libc-header-start.h

      Attachments

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

        Activity

          People

            michal Michal Klocek
            ban F S
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes