Bug 431507 - qt6-header-fixes fails when Qt5 is build using OpenGL ES
Summary: qt6-header-fixes fails when Qt5 is build using OpenGL ES
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR normal
Target Milestone: ---
Assignee: Jörg Bornemann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-12 15:35 UTC by Pino Toscano
Modified: 2021-01-12 15:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pino Toscano 2021-01-12 15:35:45 UTC
SUMMARY
When testing clazy 1.9 on current Debian unstable, the qt6-header-fixes test fails when run on architectures (armel and armhf, i.e. 32bit ARM) where Qt is built using OpenGL ES instead of "desktop" OpenGL.

STEPS TO REPRODUCE
1. build clazy against Qt built using OpenGL ES
2. run the test suite, either from the build directory, or after installation

OBSERVED RESULT
This is the output on armhf (it is the same on armel, only the library & include directories change):

Qt version: 51502
Qt headers: /usr/include/arm-linux-gnueabihf/qt5
clazy-standalone qstring-varargs/main.cpp  -checks=qstring-varargs  -- -Wno-unused-value -Qunused-arguments -std=c++14 -isystem /usr/include/arm-linux-gnueabihf/qt5 -fPIC -L /usr/lib/arm-linux-gnueabihf -Wno-non-pod-varargs
Running: clang -Xclang -load -Xclang ClazyPlugin.so -Xclang -add-plugin -Xclang clazy  -Wno-unused-value -Qunused-arguments -std=c++14 -isystem /usr/include/arm-linux-gnueabihf/qt5 -fPIC -L /usr/lib/arm-linux-gnueabihf -c  -Xclang -plugin-arg-clazy -Xclang qt6-header-fixes -Xclang -plugin-arg-clazy -Xclang export-fixes qt6-header-fixes/main.cpp
output_file=qt6-header-fixes/main.cpp.out
[FAIL] qt6-header-fixes (plugin)
diff -Naur --strip-trailing-cr qt6-header-fixes/main.cpp.expected qt6-header-fixes/main.cpp.result
--- qt6-header-fixes/main.cpp.expected	2021-01-10 17:43:52.000000000 +0000
+++ qt6-header-fixes/main.cpp.result	2021-01-11 01:08:38.665301734 +0000
@@ -46,6 +46,7 @@
 qt6-header-fixes/main.cpp:47:10: warning: including QtGui/QOpenGLFunctions_4_5_Compatibility [-Wclazy-qt6-header-fixes]
 qt6-header-fixes/main.cpp:48:10: warning: including QtGui/QOpenGLFunctions_4_5_Core [-Wclazy-qt6-header-fixes]
 qt6-header-fixes/main.cpp:49:10: warning: including QtGui/QOpenGLFunctions_ES2 [-Wclazy-qt6-header-fixes]
+/usr/include/arm-linux-gnueabihf/qt5/QtGui/qopenglfunctions_es2.h:47:10: warning: including QtGui/QOpenGLVersionFunctions [-Wclazy-qt6-header-fixes]
 qt6-header-fixes/main.cpp:50:10: warning: including QtGui/QOpenGLPaintDevice [-Wclazy-qt6-header-fixes]
 qt6-header-fixes/main.cpp:51:10: warning: including QtGui/QOpenGLPixelTransferOptions [-Wclazy-qt6-header-fixes]
 qt6-header-fixes/main.cpp:52:10: warning: including QtGui/QOpenGLShader [-Wclazy-qt6-header-fixes]

Full logs:
https://buildd.debian.org/status/fetch.php?pkg=clazy&arch=armel&ver=1.9-1&stamp=1610334563&raw=1
https://buildd.debian.org/status/fetch.php?pkg=clazy&arch=armhf&ver=1.9-1&stamp=1610327402&raw=1

EXPECTED RESULT
qt6-header-fixes passes on any architecture.

SOFTWARE/OS VERSIONS
Qt Version: 5.15.2