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

Cannot build QT 6.8 without GNU extensions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.8.0, 6.8.1, 6.8.2, 6.8.3, 6.8.4
    • Conan, Core: Other
    • None
    • Linux/X11
    • 195802c24 (dev), e6ddf7227 (dev), b3dc859f0 (6.10), dd38096ae (6.9), 8006acd5d (tqtc/lts-6.8), ddd5da17e (6.10), 93c415b9e (6.9), a6cf81f45 (tqtc/lts-6.8)

      When I build QT with GCC but explicitly disable the GNU extensions by using -std=c++17  instead of -std=gnu17, the compilation gets aborted by the error pragma in https://github.com/qt/qtbase/blob/v6.8.0/src/corelib/global/qtypes.cpp#L506-L511

      QT_SUPPORTS_INT128 is correctly undefined in https://github.com/qt/qtbase/blob/v6.8.0/src/corelib/global/qtypes.h#L72-L74 

      This behavior was added in commit https://github.com/qt/qtbase/commit/7805b3c32f88a5405a4a12b402c93cf6cb5dedc4 . But the check "Qt needs to be compiled in a mode that enables INT128 if the compiler supports it in principle." was left in place.

      When disabling this additional check the compilation works as expected and the 128-bit types are just not available.

      This is for example leading to issues when using QT via conan: https://github.com/conan-io/conan-center-index/issues/27912

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

            mmutz Marc Mutz
            hsauermann Hannah Sauermann
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: