Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Out of scope
-
Affects Version/s: 5.9.0 Beta 1
-
Fix Version/s: 5.6.3, 5.9.0 Beta 1
-
Component/s: Build System, QML: Declarative and Javascript Engine
-
Labels:None
Description
QtDeclarative fails to compile with GCC 7.0.1 (20170225 (experimental)). It warns about cpp macros expanding to defined(). Subset of errors:
/home/marc/Qt/qt5/qtdeclarative/src/3rdparty/masm/wtf/StdLibExtras.h:161:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if COMPILER(GCC) ^~~~~~~~~~~~~~~~ /home/marc/Qt/qt5/qtdeclarative/src/qml/memory/qv4mm.cpp:80:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if OS(QNX) ^~~~~~~~~~ /home/marc/Qt/qt5/qtdeclarative/src/qml/memory/qv4mm.cpp:84:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if USE(PTHREADS) && HAVE(PTHREAD_NP_H) ^~~~~~~~~~~~~~~~ /home/marc/Qt/qt5/qtdeclarative/src/qml/memory/qv4mm.cpp:84:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined] #if USE(PTHREADS) && HAVE(PTHREAD_NP_H) ^~~~~~~~~~~~~~~~~
Probably easiest to disable the warning.