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

Build fails because of signed/unsigned compare warning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.1, 5.5.0
    • 5.4.0
    • GUI: Font handling
    • None
    • OS: Arch Linux
      GCC 4.9.2
      make 4.1
    • 9d2edfe5248fce8b16693fad8304f94a1f101bab

    Description

      I'm trying to build qt like this:

      ./configure -confirm-license -opensource
      -prefix /usr
      -bindir /usr/lib/qt/bin
      -docdir /usr/share/doc/qt
      -headerdir /usr/include/qt
      -archdatadir /usr/lib/qt
      -datadir /usr/share/qt
      -sysconfdir /etc/xdg
      -examplesdir /usr/share/doc/qt/examples
      plugin-sql

      {psql,mysql,sqlite,odbc,ibase}

      -system-sqlite
      -openssl-linked
      -nomake examples
      -no-rpath
      -optimized-qmake
      -dbus-linked
      -system-harfbuzz
      -journald
      -reduce-relocations ${SSE2}
      -developer-build

      make -j4

      The compiler gives the following warning and aborts because of the -Werror compiler flag:

      ../gui/text/qfontengine_ft.cpp:1126:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
      for (int x = 0; x < slot->bitmap.width; x++) {

      ../gui/text/qfontengine_ft.cpp:1137:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
      for (int x = 0; x < slot->bitmap.width; x++) {

      ../gui/text/qfontengine_ft.cpp:1146:39: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
      for (int x = 0; x < slot->bitmap.width; x++) {

      The output of the configure and make command is attached.

      Attachments

        1. build.log
          1.88 MB
        2. configure.log
          163 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ntg Pierre Rossi
            davidk David Kahles
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes