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

Configuration issue - compiling calligra with Intel compiler on Linux

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.6
    • Fix Version/s: 4.8.7
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      rhel7 with gcc 4.8.2 and Intel compiler 15.0
    • Commits:
      e3e64ed76ab9d4e0b13cd6fb2ae6beb1ac9efb52

      Description

      Cannot build calligra with Intel compiler due to faulty configuration in QtCore/qglobal.h which basically treats icc 15.0 and later as if it were gcc.

        #  if defined(__INTEL_COMPILER) && __INTEL_COMPILER < 1500
        /* Intel C++ also masquerades as GCC 3.2.0 */
        #    define Q_CC_INTEL
        #else
        /* Intel C++ 15.0 and later are gcc compatible */
        #    define Q_CC_GNU
        #  endif
      

      This is an example of the kind of compilation error that is seen without the patch:

      $ icpc   -O2 -o TestGlobalSearch.cpp.o -c TestGlobalSearch.cpp.icc.i 
      In file included from /usr/include/QtTest/qtestkeyboard.h(50), 
                       from /local/lab_dss/calligra-20141104/kexi/main/tests/TestGlobalSearch.cpp(35): 
      /usr/include/QtTest/qtestspontaneevent.h(89): error: taking the address of a bit field is not allowed 
                qUnused(posted);; 
                        ^ 
      

      The build of calligra with Intel compiler 15.0 is successful with the patch applied.

      Thanks and regards

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            mib.bugzilla Melanie I Blower
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes