Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.8.6
-
None
-
rhel7 with gcc 4.8.2 and Intel compiler 15.0
-
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