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

Qt module builds fail with older GCC versions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.4
    • 5.9.3, 5.10.0 RC
    • Packaging & Installer
    • None

    Description

      The Qt binaries installed from OnlineSDK fail to build Qt modules with GCC version that is less than 6.

      The GCC version used to build Qt is stored in mkspec/qconfig.pri, and currently with 5.10.0 it's 6.3.1

      QT_GCC_MAJOR_VERSION = 6
      QT_GCC_MINOR_VERSION = 3
      QT_GCC_PATCH_VERSION = 1
      

      When that Qt is used to build any Qt module with GCC less than 6, it fails because qmake still thinks it using GCC 6 and will include compiler options that do not work with GCC5.

      g++ -c -include .pch/Qt5Simulator -pipe -O2 -std=c++1z -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -Wvla -Wdate-time -Wshift-overflow=2 -Wduplicated-cond -D_REENTRANT -fPIC -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_BUILD_SIMULATOR_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DGIT_HASH=\"e656f345b3dbca1234b22aa6b5b5dbf7099d1b6e-dirty\" -DGIT_VERSION=\"1.0.8\" -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include -I../../include/QtSimulator -I../../include/QtSimulator/5.8.0 -I../../include/QtSimulator/5.8.0/QtSimulator -I/home/sapiippo/Qt/5.10.0/gcc_64/include -I/home/sapiippo/Qt/5.10.0/gcc_64/include/QtNetwork -I/home/sapiippo/Qt/5.10.0/gcc_64/include/QtCore -I.moc -I/home/sapiippo/Qt/5.10.0/gcc_64/mkspecs/linux-g++ -o .obj/qsimulatorguidata.o qsimulatorguidata.cpp
      g++: error: unrecognized command line option ‘-Wshift-overflow=2’
      g++: error: unrecognized command line option ‘-Wduplicated-cond’
      
      gcc version 5.4.0
      

      Attachments

        Issue Links

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

          Activity

            People

              releaseteam Qt Release Team
              sapiippo Samuli Piippo
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes