[Pkg-kde-extras] Bug#1069518: projecteur: FTBFS on armhf: deviceinput.cc:697:64: error: narrowing conversion of ‘?=(int32 t)=?UTF-8?Q?ie.DeviceInputEvent::value’ from ‘int32_t’ {aka ‘int’} to ‘__u16’ {aka ‘short unsigned int’} [-Werror=narrowing]

Lucas Nussbaum lucas at debian.org
Sat Apr 20 14:03:39 BST 2024


Source: projecteur
Version: 0.10-2
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20240420 ftbfs-trixie ftbfs-t64-armhf

Hi,

During a rebuild of all packages in sid, your package failed to build
on armhf.


Relevant part (hopefully):
> /usr/bin/c++ -DCXX_COMPILER_ID=GNU -DCXX_COMPILER_VERSION=13.2.0 -DHAS_Qt_DBus=1 -DHAS_Qt_X11Extras=1 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -I/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/projecteur_autogen/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/version/projecteur -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -isystem /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQuick -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQmlModels -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQml -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtX11Extras -isystem /usr/include/arm-linux-gnueabihf/qt5/QtDBus -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Werror -fPIC -MD -MT CMakeFiles/projecteur.dir/src/devicescan.cc.o -MF CMakeFiles/projecteur.dir/src/devicescan.cc.o.d -o CMakeFiles/projecteur.dir/src/devicescan.cc.o -c /<<PKGBUILDDIR>>/src/devicescan.cc
> /<<PKGBUILDDIR>>/src/deviceinput.cc: In member function ‘void InputMapper::Impl::emitNativeKeySequence(const NativeKeySequence&)’:
> /<<PKGBUILDDIR>>/src/deviceinput.cc:697:64: error: narrowing conversion of ‘(int32_t)ie.DeviceInputEvent::value’ from ‘int32_t’ {aka ‘int’} to ‘__u16’ {aka ‘short unsigned int’} [-Werror=narrowing]
>   697 |       events.emplace_back(input_event{{}, ie.type, ie.code, ie.value});
>       |                                                             ~~~^~~~~
> /<<PKGBUILDDIR>>/src/deviceinput.cc:697:69: error: missing initializer for member ‘input_event::value’ [-Werror=missing-field-initializers]
>   697 |       events.emplace_back(input_event{{}, ie.type, ie.code, ie.value});
>       |                                                                     ^
> /<<PKGBUILDDIR>>/src/deviceinput.cc: In lambda function:
> /<<PKGBUILDDIR>>/src/deviceinput.cc:893:55: error: narrowing conversion of ‘(int32_t)de.DeviceInputEvent::value’ from ‘int32_t’ {aka ‘int’} to ‘__u16’ {aka ‘short unsigned int’} [-Werror=narrowing]
>   893 |     struct input_event ie = {{}, de.type, de.code, de.value};
>       |                                                    ~~~^~~~~
> /<<PKGBUILDDIR>>/src/deviceinput.cc:893:60: error: missing initializer for member ‘input_event::value’ [-Werror=missing-field-initializers]
>   893 |     struct input_event ie = {{}, de.type, de.code, de.value};
>       |                                                            ^
> /<<PKGBUILDDIR>>/src/deviceinput.cc: In member function ‘void InputMapper::addEvents(const KeyEvent&)’:
> /<<PKGBUILDDIR>>/src/deviceinput.cc:906:79: error: missing initializer for member ‘input_event::value’ [-Werror=missing-field-initializers]
>   906 |   if (!hasLastSYN) { events.emplace_back(input_event{{}, EV_SYN, SYN_REPORT, 0}); }
>       |                                                                               ^
> [ 44%] Building CXX object CMakeFiles/projecteur.dir/src/deviceswidget.cc.o
> /usr/bin/c++ -DCXX_COMPILER_ID=GNU -DCXX_COMPILER_VERSION=13.2.0 -DHAS_Qt_DBus=1 -DHAS_Qt_X11Extras=1 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -I/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/projecteur_autogen/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/version/projecteur -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -isystem /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQuick -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQmlModels -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQml -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtX11Extras -isystem /usr/include/arm-linux-gnueabihf/qt5/QtDBus -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Werror -fPIC -MD -MT CMakeFiles/projecteur.dir/src/deviceswidget.cc.o -MF CMakeFiles/projecteur.dir/src/deviceswidget.cc.o.d -o CMakeFiles/projecteur.dir/src/deviceswidget.cc.o -c /<<PKGBUILDDIR>>/src/deviceswidget.cc
> [ 47%] Building CXX object CMakeFiles/projecteur.dir/src/hidpp.cc.o
> /usr/bin/c++ -DCXX_COMPILER_ID=GNU -DCXX_COMPILER_VERSION=13.2.0 -DHAS_Qt_DBus=1 -DHAS_Qt_X11Extras=1 -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -I/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/projecteur_autogen/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-arm-linux-gnueabihf/version/projecteur -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -isystem /usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQuick -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQmlModels -isystem /usr/include/arm-linux-gnueabihf/qt5/QtQml -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtX11Extras -isystem /usr/include/arm-linux-gnueabihf/qt5/QtDBus -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -Wall -Wextra -Werror -fPIC -MD -MT CMakeFiles/projecteur.dir/src/hidpp.cc.o -MF CMakeFiles/projecteur.dir/src/hidpp.cc.o.d -o CMakeFiles/projecteur.dir/src/hidpp.cc.o -c /<<PKGBUILDDIR>>/src/hidpp.cc
> cc1plus: all warnings being treated as errors
> make[3]: *** [CMakeFiles/projecteur.dir/build.make:251: CMakeFiles/projecteur.dir/src/deviceinput.cc.o] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/04/20/projecteur_0.10-2_unstable-armhf.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240420;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240420&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.



More information about the pkg-kde-extras mailing list