https://bugs.kde.org/show_bug.cgi?id=527278
Bug ID: 527278
Summary: qenums test fails with Qt 6.12.0 due to deprecation of
Q_ENUMS
Classification: Developer tools
Product: clazy
Version First unspecified
Reported In:
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
Created attachment 197234
--> https://bugs.kde.org/attachment.cgi?id=197234&action=edit
Complete build log (plain text)
DESCRIPTION
The `qenums` test fails after migrating from Qt 6.11.2 to Qt 6.12.0, due to
deprecation.
STEPS TO REPRODUCE
1. Build clazy with Qt 6.12.0.
OBSERVED RESULT
Test suite fails with:
```
43/96 Test: qenums
Command:
"/gnu/store/g9h2sl7ljhn4vgl8442fr775fbwgjzgh-python-3.12.12/bin/python3"
"run_tests.py" "qenums" "--verbose" "--qt-versions=6"
Directory: /tmp/guix-build-clazy-1.17.1.drv-0/source/tests/
"qenums" start time: Oct 17 12:41 UTC
Output:
----------------------------------------------------------
QT_SELECT=6 qmake -query QT_VERSION
QT_SELECT=6 qmake -query QT_INSTALL_HEADERS
QT_SELECT=6 qmake -query QT_INSTALL_LIBS
Found Qt 61200 using qmake QT_SELECT=6 qmake
/gnu/store/i7qd8dm1w4x9l4y2bckwdv467qgmjf6q-clang-22.1.8/bin/clang --version
Found clang version: 22.1.8
QT_SELECT=5 qmake -query QT_VERSION
qmake-qt5 -query QT_VERSION
qmake -query QT_VERSION
qmake5 -query QT_VERSION
Error: Couldn't find a Qt5 installation
Qt major versions required by the test: [5, 6]
Currently considering Qt major version: 5
Qt versions required by the test: min=50500 max=69999
Qt int version: 0
Qt headers: /usr/include/qt/
Skipping qenums (c++14) (Qt 5) (plugin) because required version is not
available
Qt major versions required by the test: [5, 6]
Currently considering Qt major version: 6
Qt versions required by the test: min=50500 max=69999
Qt int version: 61200
Qt headers:
/gnu/store/cg90hqvs0aq1hba1wcs7xp7fbj5qvjcs-qtbase-6.12.0/include/qt6
Running: /gnu/store/i7qd8dm1w4x9l4y2bckwdv467qgmjf6q-clang-22.1.8/bin/clang
-Xclang -load -Xclang
/tmp/guix-build-clazy-1.17.1.drv-0/build/lib/ClazyPlugin.so -Xclang -add-plugin
-Xclang clazy -Wno-unused-value -Qunused-arguments -std=c++17 -isystem
/gnu/store/nb93wddhgyl6l0dfij5gd71gf4cmkiz1-gcc-14.3.0-lib/lib/gcc/x86_64-unknown-linux-gnu/14.3.0/include
-isystem /gnu/store/cg90hqvs0aq1hba1wcs7xp7fbj5qvjcs-qtbase-6.12.0/include/qt6
-fPIC -L /gnu/store/cg90hqvs0aq1hba1wcs7xp7fbj5qvjcs-qtbase-6.12.0/lib -isystem
/gnu/store/pq8lynkkx57gg9xv58968f0lmbhrg8kc-qtdeclarative-6.12.0/include/qt6
-fno-diagnostics-show-line-numbers -c -Xclang -plugin-arg-clazy -Xclang qenums
/tmp/guix-build-clazy-1.17.1.drv-0/source/tests/qenums/main.cpp
output_file=qenums/main.cpp.out
[FAIL] qenums (c++17) (Qt 6) (plugin)
diff -Naur --strip-trailing-cr qenums/main.cpp.expected qenums/main.cpp.result
--- qenums/main.cpp.expected 1970-01-01 00:00:01.000000000 +0000
+++ qenums/main.cpp.result 2026-10-17 12:41:46.157333519 +0000
@@ -1 +1,3 @@
+qenums/main.cpp:17:5: warning: macro 'Q_ENUMS' has been marked as deprecated:
Use Q_ENUM instead. [-Wdeprecated-pragma]
qenums/main.cpp:17:5: warning: Use Q_ENUM instead of Q_ENUMS [-Wclazy-qenums]
+qenums/main.cpp:24:5: warning: macro 'Q_ENUMS' has been marked as deprecated:
Use Q_ENUM instead. [-Wdeprecated-pragma]
FAIL
<end of output>
Test time = 1.73 sec
----------------------------------------------------------
Test Failed.
"qenums" end time: Oct 17 12:41 UTC
"qenums" time elapsed: 00:00:01
----------------------------------------------------------
```
EXPECTED RESULT
Test suite passes.
SOFTWARE/OS VERSIONS
Operating System: Guix System
KDE Plasma Version: N/A
KDE Frameworks Version: N/A
Qt Version: 6.12.0
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are watching all bug changes.