Package: src:sleepd Version: 2.10 Severity: normal Tags: sid bullseye User: debian-...@lists.debian.org Usertags: ftbfs-gcc-10
Please keep this issue open in the bug tracker for the package it was filed for. If a fix in another package is required, please file a bug for the other package (or clone), and add a block in this package. Please keep the issue open until the package can be built in a follow-up test rebuild. The package fails to build in a test rebuild on at least amd64 with gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The severity of this report will be raised before the bullseye release, so nothing has to be done for the buster release. The full build log can be found at: http://people.debian.org/~doko/logs/gcc10-20200225/sleepd_2.10_unstable_gcc10.log The last lines of the build log are at the end of this report. To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly, or install the gcc, g++, gfortran, ... packages from experimental. apt-get -t=experimental install g++ Common build failures are new warnings resulting in build failures with -Werror turned on, or new/dropped symbols in Debian symbols files. For other C/C++ related build failures see the porting guide at http://gcc.gnu.org/gcc-10/porting_to.html [...] /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 38 and 45 bytes into a destination of size 44 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from sleepd.c:35: sleepd.h:9:16: warning: ‘__builtin___sprintf_chk’ may write a terminating nul past the end of the destination [-Wformat-overflow=] 9 | #define RXFILE "/sys/class/net/%s/statistics/rx_packets" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sleepd.h:9:16: note: in definition of macro ‘RXFILE’ 9 | #define RXFILE "/sys/class/net/%s/statistics/rx_packets" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sleepd.h:9:56: note: format string is defined here 9 | #define RXFILE "/sys/class/net/%s/statistics/rx_packets" | ^ In file included from /usr/include/stdio.h:867, from sleepd.c:18: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 38 and 45 bytes into a destination of size 44 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DACPI_APM -pthread -DUPOWER -DACPI_APM -Wdate-time -D_FORTIFY_SOURCE=2 -c -o acpi.o acpi.c acpi.c: In function ‘find_items’: acpi.c:21:20: warning: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size 104 [-Wformat-truncation=] 21 | #define SYSFS_PATH "/sys/class/power_supply" | ^~~~~~~~~~~~~~~~~~~~~~~~~ acpi.c:194:40: note: in expansion of macro ‘SYSFS_PATH’ 194 | snprintf(filename, sizeof(filename), SYSFS_PATH "/%s/type", ent->d_name); | ^~~~~~~~~~ acpi.c:218:65: note: format string is defined here 218 | snprintf(statusarray[i], sizeof(statusarray[i]), SYSFS_PATH "/%s/%s", devices[i], | ^~ In file included from /usr/include/stdio.h:867, from acpi.c:7: /usr/include/x86_64-linux-gnu/bits/stdio2.h:67:10: note: ‘__builtin___snprintf_chk’ output between 30 and 285 bytes into a destination of size 128 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DACPI_APM -pthread -DUPOWER -DACPI_APM -Wdate-time -D_FORTIFY_SOURCE=2 -c -o eventmonitor.o eventmonitor.c cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DACPI_APM -pthread -DUPOWER -DACPI_APM -pthread -I/usr/include/libupower-glib -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -c upower.c -o upower.o upower.c: In function ‘upower_supported’: upower.c:65:3: warning: ‘up_client_get_devices’ is deprecated: Use 'up_client_get_devices2' instead [-Wdeprecated-declarations] 65 | GPtrArray *devices = up_client_get_devices(up); | ^~~~~~~~~ In file included from /usr/include/libupower-glib/upower.h:38, from upower.c:9: /usr/include/libupower-glib/up-client.h:82:12: note: declared here 82 | GPtrArray *up_client_get_devices (UpClient *client) G_DEPRECATED_FOR(up_client_get_devices2); | ^~~~~~~~~~~~~~~~~~~~~ upower.c: In function ‘upower_read’: upower.c:93:2: warning: ‘up_client_get_devices’ is deprecated: Use 'up_client_get_devices2' instead [-Wdeprecated-declarations] 93 | devices = up_client_get_devices(up); | ^~~~~~~ In file included from /usr/include/libupower-glib/upower.h:38, from upower.c:9: /usr/include/libupower-glib/up-client.h:82:12: note: declared here 82 | GPtrArray *up_client_get_devices (UpClient *client) G_DEPRECATED_FOR(up_client_get_devices2); | ^~~~~~~~~~~~~~~~~~~~~ cc -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DACPI_APM -pthread -DUPOWER -DACPI_APM -Wl,-z,relro -o sleepd sleepd.o acpi.o eventmonitor.o upower.o -lpthread -lupower-glib -lgobject-2.0 -lglib-2.0 /usr/bin/ld: eventmonitor.o:./eventmonitor.h:9: multiple definition of `eventData'; sleepd.o:./eventmonitor.h:9: first defined here collect2: error: ld returned 1 exit status make[2]: *** [Makefile:51: sleepd] Error 1 make[2]: Leaving directory '/<<PKGBUILDDIR>>' dh_auto_build: error: make -j1 USE_UPOWER=1 returned exit code 2 make[1]: *** [debian/rules:6: override_dh_auto_build] Error 25 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:3: build] Error 2 dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2