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

Build failure on x32 ABI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.6.3, 6.7.0 RC, 6.8.0 FF
    • 6.6.1, 6.6.2, 6.6.3
    • Core: Threads
    • None
    • Linux/X11
    • 08349ef0f (dev), f5738ab46 (6.7), 71f10d4f4 (6.6)

    Description

      I'm trying to build Qt on Gentoo x32 ABI (x86_64 with 32bit pointers), and I run into following problem:
      /var/tmp/portage/dev-qt/qtbase-6.6.1-r4/work/qtbase-everywhere-src-6.6.1_build/include/QtCore/../../../qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread.h: Assembler messages:
      /var/tmp/portage/dev-qt/qtbase-6.6.1-r4/work/qtbase-everywhere-src-6.6.1_build/include/QtCore/../../../qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread.h:168: Error: incorrect register `%r14d' used with `q' suffix
      /var/tmp/portage/dev-qt/qtbase-6.6.1-r4/work/qtbase-everywhere-src-6.6.1_build/include/QtCore/../../../qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread.h:168: Error: incorrect register `%ebx' used with `q' suffix
      /var/tmp/portage/dev-qt/qtbase-6.6.1-r4/work/qtbase-everywhere-src-6.6.1_build/include/QtCore/../../../qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread.h:168: Error: incorrect register `%r14d' used with `q' suffix

      Fix (patch) is attached to this ticket.

      Comment: pthread_t on x32 ABI is 32bit, therefore it should not be 'movq' but rather 'mov'. I made simple program to compare output of asm command and pthread_self(), and they provide identical output.

       

      Reference Gentoo bug: https://bugs.gentoo.org/925103 

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hate-engine Andrey Batyiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change