conan-center-index: [package] qwt/6.2.0: Compilation error with gcc9 profile
Package and Environment Details
- Package Name/Version: qwt/6.2.0
- Operating System+version: Debian bullseye/sid from Github codespace
- Compiler+version: GCC 9
- Conan version: conan 1.52.0
- Python version: Python 3.10.4
Conan profile
[settings] os=Linux os_build=Linux arch=x86_64 arch_build=x86_64 compiler=gcc compiler.version=9 compiler.libcxx=libstdc++11 build_type=Release [options] [build_requires] [env]
Steps to reproduce
As CONAN_SYSREQUIRES_MODE=enabled use doesn’t succeed to install all requirement we do it manually:
sudo apt install -y libx11-xcb-dev libfontenc-dev libxaw7-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxi-dev libxinerama-dev libxkbfile-dev libxmu-dev libxmuu-dev libxpm-dev libxrandr-dev libxres-dev libxtst-dev libxv-dev libxvmc-dev libxxf86vm-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-util-dev
sudo apt install -y libxcb-util-dev
To have qmake as we don’t have it through conan center as we can have it with cmake as tool_requires:
sudo apt install -y qt5-qmake
Strangly qwt build doesn’t looks for qt in conan cache, then we install qt dev files from apt repo:
sudo apt install -y qtbase5-dev
Then we try to build qwt:
conan create . --build missing --profile:build profile --profile:host profile
But we get compilation error:
error: cannot convert ‘const QMetaObject* const*’ to ‘const QMetaObject::SuperData*’ in initialization
See https://github.com/EstebanDugueperoux2/qwtExample to reproduce.
Regards.
Logs
Click to expand log
compiling ../source_subfolder/src/qwt_polar_canvas.cpp
In file included from ../source_subfolder/src/qwt_plot_glcanvas.cpp:239:
moc/moc_qwt_plot_glcanvas.cpp:153:5: error: cannot convert ‘const QMetaObject* const*’ to ‘const QMetaObject::SuperData*’ in initialization
153 | qt_meta_extradata_QwtPlotGLCanvas,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const QMetaObject* const*
make[1]: *** [Makefile:2169: obj/qwt_plot_glcanvas.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from ../source_subfolder/src/qwt_plot_opengl_canvas.cpp:257:
moc/moc_qwt_plot_opengl_canvas.cpp:154:5: error: cannot convert ‘const QMetaObject* const*’ to ‘const QMetaObject::SuperData*’ in initialization
154 | qt_meta_extradata_QwtPlotOpenGLCanvas,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const QMetaObject* const*
make[1]: *** [Makefile:2181: obj/qwt_plot_opengl_canvas.o] Error 1
make[1]: Leaving directory '/home/codespace/.conan/data/qwt/6.2.0/_/_/build/54a7422544bfa3320a8a50eacf7c38ca26e754a9/src'
make: *** [Makefile:53: sub-src-make_first-ordered] Error 2
qwt/6.2.0:
qwt/6.2.0: ERROR: Package '54a7422544bfa3320a8a50eacf7c38ca26e754a9' build failed
qwt/6.2.0: WARN: Build folder /home/codespace/.conan/data/qwt/6.2.0/_/_/build/54a7422544bfa3320a8a50eacf7c38ca26e754a9
ERROR: qwt/6.2.0: Error in build() method, line 99
self.run("make -j {}".format(tools.cpu_count()))
ConanException: Error 2 while executing make -j 4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (18 by maintainers)
Commits related to this issue
- qwt: add qt to tool_requirements fixes conan-io/conan-center-index#12830 — committed to ericLemanissier/conan-center-index by ericLemanissier 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
- (#12830): qwt.6.2.0: Use patch strategy with cmake instead of qmake — committed to EstebanDugueperoux2/conan-center-index by EstebanDugueperoux2 2 years ago
You are welcome. Nothing is ever removed from conan-center (remote). When a recipe is deleted in conan-center-index (git), the corresponding package in conan-center just stops being updated (no rew recipe revision or binaries)
this should be addressed by this part of the PR: https://github.com/conan-io/conan-center-index/pull/12831/files#diff-881dd1a2a6606bba307e34450ae2cc3c0a44aae04078cc771234c5b8db62faacR86