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

cannot build some modules with -developer-build on 32bit architectures without -no-warnings-are-errors

    XMLWordPrintable

Details

    • Android

    Description

      When building qtdeclarative with " -android-abis armeabi-v7a" and " -developer-build", it fails, because there are signed/unsigned comparison warnings which are treated as errors.

      Currently, my workaround is to pass "-no-warnings-are-errors" to "configure".

      Build commands:

      git clone git://code.qt.io/qt/qt5.git
      cd qt5
      perl init-repository --module-subset=qtbase,qtdeclarative,qtandroidextras,qtconnectivity,qtsvg --codereview-username andreasbuhr
      git submodule foreach git checkout dev
      git submodule foreach git pull
      cd ..
      mkdir hostbuild
      cd hostbuild
      ../qt5/configure -developer-build -opensource -make examples -make tests -confirm-license
      cmake --build .
      cd ..
      mkdir androidbuild
      cd androidbuild
      ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -confirm-license -xplatform android-clang -qt-host-path /home/andreasbuhr/development/qtdev/androidbuild2/hostbuild/qtbase -android-ndk ~/Android/Sdk/ndk/21.3.6528147 -android-sdk ~/Android/Sdk -android-abis armeabi-v7a
      cmake --build .
      
      

      One of the errors:

      /home/andreasbuhr/development/qtdev/androidbuild2/qt5/qtbase/src/gui/util/qktxhandler.cpp:151:42: error: comparison of integers of different signs: 'unsigned int' and 'qsizetype' (aka 'int') [-Werror,-Wsign-compare]
          if (headerSize + bytesOfKeyValueData < buf.length()) // oob check
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~
      /home/andreasbuhr/development/qtdev/androidbuild2/qt5/qtbase/src/gui/util/qktxhandler.cpp:230:42: error: comparison of integers of different signs: 'unsigned int' and 'qsizetype' (aka 'int') [-Werror,-Wsign-compare]
              if (offset + keyAndValueByteSize > view.size())
      
      

      Attachments

        For Gerrit Dashboard: QTBUG-91163
        # Subject Branch Project Status CR V

        Activity

          People

            assam Assam Boudjelthia
            andreasbuhr Andreas Buhr
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: