Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.10
-
None
-
-
5d8a3c136 (dev), d74685542 (6.10), bb6679980 (6.9), 848cb462e (tqtc/lts-6.8)
Description
I built Qt as static on macOS, and then when building Quick applications, there are tens if not hundreds of ODR warnings for each application I build:
[9/66] Automatic QML type registration for target coffeemachine
Warning: qquickforeignutils_p.h:107: Multiple C++ types called QEventPointDerived found!
(other occurrence in : qquickforeignutils_p.h : 107 )
This violates the One Definition Rule!
Warning: qquickforeignutils_p.h:107: Multiple C++ types called QEventPointDerived found!
(other occurrence in : qquickforeignutils_p.h : 107 )
This violates the One Definition Rule!
Warning: qqmldelegatecomponent_p.h:28: Multiple C++ types called QQmlDelegateChoice found!
(other occurrence in : qqmldelegatecomponent_p.h : 28 )
This violates the One Definition Rule!
The configure-line for Qt:
../source-dev-qt/configure -prefix ./result-config-static-optimized-A/install-macos-qt -no-warnings-are-errors -confirm-license -release -ltcg -optimize-size -static -no-sbom -nomake tests -nomake examples -skip qtimageformats,qtlanguageserver -submodules qtbase,qtdeclarative,qtquicktimeline,qtsvg -- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang
The configure-line for application:
qt-cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../source-apps/app-coffee
This is on recent Qt 'dev', macOS ARM, 15.2 Sequoia
Attachments
Issue Links
- relates to
-
QTBUG-127133 Why do I get warning "Multiple C++ types called xxx found! This violates the One Definition Rule"
-
- Closed
-
-
QTBUG-132518 building with cmake 3.31 gives ODR violation warnings on webassembly
-
- Closed
-
For Gerrit Dashboard: QTBUG-134292 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
659910,8 | qmltyperegistrar: Do not process duplicate metatypes.json files | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |
660481,2 | qmltyperegistrar: Do not process duplicate metatypes.json files | 6.10 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
660658,5 | qmltyperegistrar: Do not process duplicate metatypes.json files | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | +1 |
662267,2 | qmltyperegistrar: Do not process duplicate metatypes.json files | tqtc/lts-6.8 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |