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

[Reg 5.15 -> 6.x] -platform linux-g++-32 now produces 64-bit libraries

    XMLWordPrintable

Details

    • Linux/X11
    • 7616e4aecf (qt/qtbase/dev) 7616e4aecf (qt/tqtc-qtbase/dev)

    Description

      On a x86_64 machine with GCC-multilib and 32-bit dependencies installed, ./configure -platform linux-g++-32 produces:

      • 32-bit libraries for Qt 5.15.6 (correct)
      • 64-bit libraries for Qt 6.1.2 (wrong)

       

      $ file qt-5.15.6/rh/lib/libQt5Widgets.so.5.15.6
      qt-5.15.6/rh/lib/libQt5Widgets.so.5.15.6: ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=7a476704d7f59027907eadba652820277b3871d5, stripped
      
      $ file qt-6.1.2/rh/lib/libQt6Widgets.so.6.1.2
      qt-6.1.2/rh/lib/libQt6Widgets.so.6.1.2: ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked, BuildID[sha1]=1309c9c845235cf819d1564415d2150eb437f439, not stripped
      

       

      Notes

      The linux-g++-32 mkspecs sets the -m32 option, but only in qmake.conf: https://code.qt.io/cgit/qt/qtbase.git/tree/mkspecs/linux-g++-32/qmake.conf?h=6.3.0

      That explains why it works in Qt 5 but not Qt 6, since Qt 6 is no longer built using qmake.

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes