Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678332 - >=dev-qt/qtwebengine-5.12 fails to build when <dev-qt/qtwebengine-5.12 is already installed
Summary: >=dev-qt/qtwebengine-5.12 fails to build when <dev-qt/qtwebengine-5.12 is alr...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-18 20:53 UTC by Arfrever Frehtes Taifersar Arahesis
Modified: 2021-05-28 09:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis 2019-02-18 20:53:44 UTC
>=dev-qt/qtwebengine-5.12 fails to build when <dev-qt/qtwebengine-5.12 is already installed.


Building has succeeded after uninstalling dev-qt/qtwebengine-5.11.* (actually just renaming /usr/include/qt5/QtWebEngine* headers).

[ebuild   R   *] dev-qt/qtwebengine-5.12.9999:5/5.12::qt  USE="alsa designer jumbo-build system-ffmpeg system-icu widgets -bindist -debug -geolocation -pax_kernel -pulseaudio -test" 0 KiB
Comment 1 Arfrever Frehtes Taifersar Arahesis 2019-02-18 20:58:22 UTC
Error for src/core/browser_message_filter_qt.cpp:


/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:71:37: error: variable ‘QtWebEngineCore::QWEBENGINECORE_EXPORT QtWebEngineCore::WebEngineSettings’ has initializer but incomplete type
 class QWEBENGINECORE_PRIVATE_EXPORT WebEngineSettings {
                                     ^~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:72:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:72:1: error: expected ‘}’ before ‘public’
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:71:55: note: to match this ‘{’
 class QWEBENGINECORE_PRIVATE_EXPORT WebEngineSettings {
                                                       ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:72:1: error: expected ‘,’ or ‘;’ before ‘public’
 public:
 ^~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:135:32: error: ISO C++ forbids declaration of ‘WebEngineSettings’ with no type [-fpermissive]
     explicit WebEngineSettings(WebEngineSettings *parentSettings = 0);
                                ^~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:135:5: error: ‘explicit’ outside class declaration
     explicit WebEngineSettings(WebEngineSettings *parentSettings = 0);
     ^~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:135:51: error: ‘parentSettings’ was not declared in this scope
     explicit WebEngineSettings(WebEngineSettings *parentSettings = 0);
                                                   ^~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:136:23: error: expected class-name before ‘(’ token
     ~WebEngineSettings();
                       ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:138:28: error: variable or field ‘setParentSettings’ declared void
     void setParentSettings(WebEngineSettings *parentSettings);
                            ^~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:138:47: error: ‘parentSettings’ was not declared in this scope
     void setParentSettings(WebEngineSettings *parentSettings);
                                               ^~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:142:23: error: variable or field ‘setAttribute’ declared void
     void setAttribute(Attribute, bool on);
                       ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:142:23: error: ‘Attribute’ was not declared in this scope
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:142:23: note: suggested alternative: ‘QtPrivate’
     void setAttribute(Attribute, bool on);
                       ^~~~~~~~~
                       QtPrivate
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:142:34: error: expected primary-expression before ‘bool’
     void setAttribute(Attribute, bool on);
                                  ^~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:143:24: error: ‘Attribute’ was not declared in this scope
     bool testAttribute(Attribute) const;
                        ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:143:24: note: suggested alternative: ‘testAttribute’
     bool testAttribute(Attribute) const;
                        ^~~~~~~~~
                        testAttribute
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:144:34: error: variable or field ‘resetAttribute’ declared void
     void resetAttribute(Attribute);
                                  ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:144:25: error: ‘Attribute’ was not declared in this scope
     void resetAttribute(Attribute);
                         ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:144:25: note: suggested alternative: ‘testAttribute’
     void resetAttribute(Attribute);
                         ^~~~~~~~~
                         testAttribute
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:145:35: error: ‘Attribute’ was not declared in this scope
     bool isAttributeExplicitlySet(Attribute) const;
                                   ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:145:35: note: suggested alternative: ‘testAttribute’
     bool isAttributeExplicitlySet(Attribute) const;
                                   ^~~~~~~~~
                                   testAttribute
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:152:33: error: non-member function ‘int QtWebEngineCore::fontSize(QtWebEngineCore::FontSize)’ cannot have cv-qualifier
     int fontSize(FontSize type) const;
                                 ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:156:35: error: non-member function ‘QString QtWebEngineCore::defaultTextEncoding()’ cannot have cv-qualifier
     QString defaultTextEncoding() const;
                                   ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:159:53: error: non-member function ‘QtWebEngineCore::UnknownUrlSchemePolicy QtWebEngineCore::unknownUrlSchemePolicy()’ cannot have cv-qualifier
     UnknownUrlSchemePolicy unknownUrlSchemePolicy() const;
                                                     ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:168:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h: In function ‘void QtWebEngineCore::setWebContentsAdapter(QtWebEngineCore::WebContentsAdapter*)’:
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:172:63: error: ‘m_adapter’ was not declared in this scope
     void setWebContentsAdapter(WebContentsAdapter *adapter) { m_adapter = adapter; }
                                                               ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:172:63: note: suggested alternative: ‘adapter’
     void setWebContentsAdapter(WebContentsAdapter *adapter) { m_adapter = adapter; }
                                                               ^~~~~~~~~
                                                               adapter
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h: At global scope:
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:175:11: error: ‘Attribute’ was not declared in this scope
     QHash<Attribute, bool> m_attributes;
           ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:175:11: note: suggested alternative: ‘testAttribute’
     QHash<Attribute, bool> m_attributes;
           ^~~~~~~~~
           testAttribute
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:175:26: error: template argument 1 is invalid
     QHash<Attribute, bool> m_attributes;
                          ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:182:5: error: ‘WebEngineSettings’ does not name a type; did you mean ‘WebEngineContext’?
     WebEngineSettings *parentSettings;
     ^~~~~~~~~~~~~~~~~
     WebEngineContext
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:183:29: error: template argument 1 is invalid
     QSet<WebEngineSettings *> childSettings;
                             ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:185:18: error: ‘Attribute’ was not declared in this scope
     static QHash<Attribute, bool> s_defaultAttributes;
                  ^~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:185:18: note: suggested alternative: ‘m_attributes’
     static QHash<Attribute, bool> s_defaultAttributes;
                  ^~~~~~~~~
                  m_attributes
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:185:33: error: template argument 1 is invalid
     static QHash<Attribute, bool> s_defaultAttributes;
                                 ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:190:5: error: ‘friend’ used outside of class
     friend class BatchTimer;
     ^~~~~~
     ------
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:191:5: error: ‘friend’ used outside of class
     friend class WebContentsAdapter;
     ^~~~~~
     ------
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:194:1: error: expected declaration before ‘}’ token
 } // namespace QtWebEngineCore
 ^
In file included from /usr/include/qt5/QtCore/qobject.h:53,
                 from /usr/include/qt5/QtCore/qiodevice.h:45,
                 from /usr/include/qt5/QtCore/qfiledevice.h:43,
                 from /usr/include/qt5/QtCore/qfile.h:44,
                 from /usr/include/qt5/QtCore/qfileinfo.h:43,
                 from /usr/include/qt5/QtCore/qdir.h:44,
                 from /usr/include/qt5/QtCore/QDir:1,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/type_conversion.h:45,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/browser_message_filter_qt.cpp:47:
/usr/include/qt5/QtCore/qscopedpointer.h: In instantiation of ‘static void QScopedPointerDeleter<T>::cleanup(T*) [with T = QtWebEngineCore::BatchTimer]’:
/usr/include/qt5/QtCore/qscopedpointer.h:107:25:   required from ‘QScopedPointer<T, Cleanup>::~QScopedPointer() [with T = QtWebEngineCore::BatchTimer; Cleanup = QScopedPointerDeleter<QtWebEngineCore::BatchTimer>]’
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:180:32:   required from here
/usr/include/qt5/QtCore/qscopedpointer.h:57:40: error: invalid application of ‘sizeof’ to incomplete type ‘QtWebEngineCore::BatchTimer’
         typedef char IsIncompleteType[ sizeof(T) ? 1 : -1 ];
                                        ^~~~~~~~~
/usr/include/qt5/QtCore/qscopedpointer.h:60:9: warning: possible problem detected in invocation of delete operator: [-Wdelete-incomplete]
         delete pointer;
         ^~~~~~
/usr/include/qt5/QtCore/qscopedpointer.h:52:35: warning: ‘pointer’ has incomplete type
     static inline void cleanup(T *pointer)
                                ~~~^~~~~~~
In file included from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/favicon_manager.h:62,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/type_conversion.h:57,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/browser_message_filter_qt.cpp:47:
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/web_engine_settings.h:68:7: note: forward declaration of ‘class QtWebEngineCore::BatchTimer’
 class BatchTimer;
       ^~~~~~~~~~
In file included from /usr/include/qt5/QtCore/qobject.h:53,
                 from /usr/include/qt5/QtCore/qiodevice.h:45,
                 from /usr/include/qt5/QtCore/qfiledevice.h:43,
                 from /usr/include/qt5/QtCore/qfile.h:44,
                 from /usr/include/qt5/QtCore/qfileinfo.h:43,
                 from /usr/include/qt5/QtCore/qdir.h:44,
                 from /usr/include/qt5/QtCore/QDir:1,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/type_conversion.h:45,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/browser_message_filter_qt.cpp:47:
/usr/include/qt5/QtCore/qscopedpointer.h:60:9: note: neither the destructor nor the class-specific operator delete will be called, even if they are declared when the class is defined
         delete pointer;
         ^~~~~~
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-02-18 21:00:49 UTC
Error for src/core/certificate_error_controller.cpp:


In file included from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.cpp:40:
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:63:37: error: variable ‘QWEBENGINECORE_EXPORT CertificateErrorController’ has initializer but incomplete type
 class QWEBENGINECORE_PRIVATE_EXPORT CertificateErrorController {
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:64:1: error: expected primary-expression before ‘public’
 public:
 ^~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:64:1: error: expected ‘}’ before ‘public’
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:63:64: note: to match this ‘{’
 class QWEBENGINECORE_PRIVATE_EXPORT CertificateErrorController {
                                                                ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:64:1: error: expected ‘,’ or ‘;’ before ‘public’
 public:
 ^~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:66:32: error: expected class-name before ‘(’ token
     ~CertificateErrorController();
                                ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:91:30: error: non-member function ‘CertificateError error()’ cannot have cv-qualifier
     CertificateError error() const;
                              ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:92:16: error: non-member function ‘QUrl url()’ cannot have cv-qualifier
     QUrl url() const;
                ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:93:24: error: non-member function ‘bool overridable()’ cannot have cv-qualifier
     bool overridable() const;
                        ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:94:30: error: non-member function ‘bool strictEnforcement()’ cannot have cv-qualifier
     bool strictEnforcement() const;
                              ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:95:27: error: non-member function ‘QString errorString()’ cannot have cv-qualifier
     QString errorString() const;
                           ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:96:28: error: non-member function ‘QDateTime validStart()’ cannot have cv-qualifier
     QDateTime validStart() const;
                            ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:97:29: error: non-member function ‘QDateTime validExpiry()’ cannot have cv-qualifier
     QDateTime validExpiry() const;
                             ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:124:33: error: non-member function ‘ResourceType resourceType()’ cannot have cv-qualifier
     ResourceType resourceType() const;
                                 ^~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:126:1: error: expected unqualified-id before ‘private’
 private:
 ^~~~~~~
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/certificate_error_controller.h:128:1: error: expected declaration before ‘}’ token
 };
 ^
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-02-18 21:02:06 UTC
Error for src/core/renderer/content_renderer_client_qt.cpp:


In file included from /usr/include/qt5/QtWebEngineCore/qtwebenginecoreglobal.h:43,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/api/qtwebenginecoreglobal_p.h:54,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.h:42,
                 from /var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:40:
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.h:68:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_spellchecker)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.h:123:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_spellchecker)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:45:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_spellchecker)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:85:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_webchannel)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:132:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_spellchecker)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:153:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_webchannel)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:161:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_spellchecker)
     ^~~~~~~~~
/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
 #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
                              ^
/var/tmp/portage/dev-qt/qtwebengine-5.12.9999/work/qtwebengine-5.12.9999/src/core/renderer/content_renderer_client_qt.cpp:483:5: note: in expansion of macro ‘QT_CONFIG’
 #if QT_CONFIG(webengine_spellchecker)
     ^~~~~~~~~
Comment 4 Andreas Sturmlechner gentoo-dev 2020-04-30 09:37:50 UTC
I never got this error, is this bug still relevant with current versions?
Comment 5 Serg Truf 2020-04-30 10:09:04 UTC
yes, still relevant just got today:



/usr/include/qt5/QtCore/qglobal.h:86:30: error: division by zero in #if
   86 | #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1)
      |                              ^


thanks for the first comment, mooving existing qtwebengine headers helped 

compiling * qtwebengine-5.14.2
Comment 6 Squat 2021-05-28 09:42:31 UTC
same here while upgrading from 5.11.1 to 5.15.2_p20210224

hope removing th headers will work around the issue, trying that now
thanks for the tip