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

Unable to build or build against Qt 5.6.2 on CentOS 6 with Intel Compiler 17

    XMLWordPrintable

Details

    Description

      I'm attempting to build Qt 5.6.2 LTS on CentOS 6 with the Intel Compiler (17.0.2) with the following configuration:

      /home/developer/Downloads/qt-everywhere-enterprise-src-5.6.2/qtbase/configure -prefix /opt/qt-5.6.2 -skip qt3d -platform linux-icc -qt-xcb -c++11 -confirm-license "$@"

      While qmake is created, the build fails immediately with errors similar to the following:

      qtbase/include/QtCore/../../src/corelib/global/qflags.h(144): error: class "std::initializer_list<Qt::AlignmentFlag>" has no member "const_iterator"

      I've attached the configuration and build log with the issue so that you can see all the details.

      I've also tried building Qt with gcc (which works fine), except that I can't build any applications against that version of Qt with the Intel compiler. Not sure if this should be a separate issue, but it generates errors similar to the following:

      icpc -c -O3 -fp-model fast=1 -inline-level=2 -falign-functions=16 -ansi-alias -msse3 -m64 -DNDEBUG -std=c++0x -w2 -Wcheck -wd654,1572,411,873,1125,2259,11074,11075 -D_REENTRANT -D_REENTRANT -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../test -I. -I/opt/qt-5.6.2_gcc/5.6/gcc_64/include -I/opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtWidgets -I/opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtGui -I/opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtCore -I. -I. -I/opt/qt-5.6.2_gcc/5.6/gcc_64/mkspecs/linux-icc-64 -o main.o ../test/main.cpp
      In file included from /opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtCore/qobjectdefs.h(41),
                       from /opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtGui/qwindowdefs.h(38),
                       from /opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtWidgets/qwidget.h(37),
                       from /opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtWidgets/qmainwindow.h(37),
                       from /opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtWidgets/QMainWindow(1),
                       from ../test/mainwindow.h(4),
                       from ../test/main.cpp(1):
      /opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtCore/qflags.h(144): error: class "std::initializer_list<Qt::AlignmentFlag>" has no member "const_iterator"
            Q_DECL_CONSTEXPR static inline Int initializer_list_helper(typename std::initializer_list<Enum>::const_iterator it,
                                                                                                             ^
                detected during instantiation of class "QFlags<Enum> [with Enum=Qt::AlignmentFlag]" at line 1671 of "/opt/qt-5.6.2_gcc/5.6/gcc_64/include/QtCore/qnamespace.h"

      I have a feeling this might be related to how Qt detects supported compiler features, but I'm not sure.

      Attachments

        1. build_log.txt
          95 kB
        2. config.status
          0.2 kB
        3. config.summary
          4 kB
        4. test_project_output.txt
          99 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            lum Luke
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes