Bug#846996: Unable to compile with g++-6
Hi Dmitry, >> Trying to compile lxqt-panel with g++-6 and qtbase5-dev_5.7.1 results in the >> following errors: >> >> /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h: In function ‘uint >> qCountTrailingZeroBits(quint16)’: >> /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:630:32: error: >> ‘__builtin_ctzs’ was not declared in this scope >> return v ? __builtin_ctzs(v) : 16U; >> ^ >> /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h: In function ‘uint >> qCountLeadingZeroBits(quint16)’: >> /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:693:32: error: >> ‘__builtin_clzs’ was not declared in this scope >> return v ? __builtin_clzs(v) : 16U; >> ^ >> >> This is because g++ removed __builtin_clzs and __builtin_ctzs. > There is a potential fix for this at https://codereview.qt-project.org/175542, > but unfortunately it needs some more work. > > I have just asked the upstream author about the status, if he does not reply > in a few days, I will write my own patch and add it to the next Debian upload. according to Uroš Bizjak it should be sufficient to use return __tzcnt_u16(v); instead of return v ? __tzcnt_u16(v) : 16U; I haven't checked it...
Processed: Re: Bug#846996: Unable to compile with g++-6
Processing control commands: > tags -1 confirmed upstream Bug #846996 [qtbase5-dev] Unable to compile with g++-6 Added tag(s) upstream and confirmed. -- 846996: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846996 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#846996: Unable to compile with g++-6
Control: tags -1 confirmed upstream Hi Thomas, On Sun, Dec 04, 2016 at 09:34:27PM +0100, Thomas Viehweger wrote: > Trying to compile lxqt-panel with g++-6 and qtbase5-dev_5.7.1 results in the > following errors: > > /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h: In function ‘uint > qCountTrailingZeroBits(quint16)’: > /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:630:32: error: > ‘__builtin_ctzs’ was not declared in this scope > return v ? __builtin_ctzs(v) : 16U; > ^ > /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h: In function ‘uint > qCountLeadingZeroBits(quint16)’: > /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:693:32: error: > ‘__builtin_clzs’ was not declared in this scope > return v ? __builtin_clzs(v) : 16U; > ^ > > This is because g++ removed __builtin_clzs and __builtin_ctzs. There is a potential fix for this at https://codereview.qt-project.org/175542, but unfortunately it needs some more work. I have just asked the upstream author about the status, if he does not reply in a few days, I will write my own patch and add it to the next Debian upload. -- Dmitry Shachnev signature.asc Description: PGP signature
Bug#846996: Unable to compile with g++-6
Package: qtbase5-dev Version: 5.7.1~20161021+dfsg-6 Severity: important Trying to compile lxqt-panel with g++-6 and qtbase5-dev_5.7.1 results in the following errors: In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:43:0, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qplugin.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtPlugin:1, from /home/src/lxqt-panel-de/plugin-clock/../panel/ilxqtpanelplugin.h:32, from /home/src/lxqt-panel-de/plugin-clock/lxqtclock.h:34, from /home/src/lxqt-panel-de/plugin-clock/lxqtclock.cpp:32: /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h: In function ‘uint qCountTrailingZeroBits(quint16)’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:630:32: error: ‘__builtin_ctzs’ was not declared in this scope return v ? __builtin_ctzs(v) : 16U; ^ /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h: In function ‘uint qCountLeadingZeroBits(quint16)’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qalgorithms.h:693:32: error: ‘__builtin_clzs’ was not declared in this scope return v ? __builtin_clzs(v) : 16U; ^ This is because g++ removed __builtin_clzs and __builtin_ctzs. See for example https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg511530.html