Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
6.1.2, 6.2.4
-
RHEL 7, x86_64
-
-
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
- relates to
-
QTBUG-102143 Build failure on 32bit archs
-
- Closed
-
For Gerrit Dashboard: QTBUG-101963 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
406955,10 | CMake: Handle detection of linux-g++-32 mkspec | dev | qt/qtbase | Status: MERGED | +2 | 0 |