[This bug is NOT targeted to the upcoming trixie release]
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-15/g++-15, but succeeds to build with gcc-14/g++-14. The
severity of this report will be raised before the forky release.
The full build log can be found at:
http://qa-logs.debian.net/2025/02/16/amd64exp/polybar_3.7.2-1_unstable_gccexp.log.gz
The last lines of the build log are at the end of this report.
To build with GCC 15, either set CC=gcc-15 CXX=g++-15 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.
apt-get -t=experimental install g++
GCC 15 now defaults to the C23/C++23 standards, exposing many FTBFS.
Other 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-15/porting_to.html
[...]
24 | vector<uint8_t> encode(const type_t type, const vector<uint8_t>& payload) {
| ^~~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:10: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:17: error: template argument 1 is invalid
24 | vector<uint8_t> encode(const type_t type, const vector<uint8_t>& payload) {
| ^
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:17: error: template argument 2 is invalid
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:32: error: ‘type_t’ does not name a type; did you mean ‘time_t’?
24 | vector<uint8_t> encode(const type_t type, const vector<uint8_t>& payload) {
| ^~~~~~
| time_t
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:58: error: ‘uint8_t’ was not declared in this scope
24 | vector<uint8_t> encode(const type_t type, const vector<uint8_t>& payload) {
| ^~~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:58: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:65: error: template argument 1 is invalid
24 | vector<uint8_t> encode(const type_t type, const vector<uint8_t>& payload) {
| ^
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:24:65: error: template argument 2 is invalid
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp: In function ‘int polybar::ipc::encode(int, const int&)’:
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:26: error: ‘uint8_t’ was not declared in this scope
25 | return encode<vector<uint8_t>>(type, payload);
| ^~~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:26: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:26: error: template argument 1 is invalid
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:26: error: template argument 2 is invalid
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:35: error: no matching function for call to ‘encode<<expression error> >(const int&, const int&)’
25 | return encode<vector<uint8_t>>(type, payload);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:35: note: there are 3 candidates
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:10:19: note: candidate 1: ‘template<class V> int polybar::ipc::encode(int, const V&)’
10 | vector<uint8_t> encode(const type_t type, const V& payload) {
| ^~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:10:19: note: template argument deduction/substitution failed:
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:35: error: template argument 1 is invalid
25 | return encode<vector<uint8_t>>(type, payload);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:25:35: note: some candidates omitted; use ‘-fdiagnostics-all-candidates’ to display them
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp: At global scope:
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:28:10: error: ‘uint8_t’ was not declared in this scope
28 | vector<uint8_t> encode(const type_t type, const string& payload) {
| ^~~~~~~
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:28:10: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:28:17: error: template argument 1 is invalid
28 | vector<uint8_t> encode(const type_t type, const string& payload) {
| ^
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:28:17: error: template argument 2 is invalid
/build/reproducible-path/polybar-3.7.2/src/ipc/encoder.cpp:28:32: error: ‘type_t’ does not name a type; did you mean ‘time_t’?
28 | vector<uint8_t> encode(const type_t type, const string& payload) {
| ^~~~~~
| time_t
make[3]: *** [bin/CMakeFiles/poly.dir/build.make:404: bin/CMakeFiles/poly.dir/ipc/encoder.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /build/reproducible-path/polybar-3.7.2/src/ipc/util.cpp:9:
/build/reproducible-path/polybar-3.7.2/include/utils/string.hpp:48:3: error: ‘uint32_t’ does not name a type
48 | uint32_t codepoint{0};
| ^~~~~~~~
/build/reproducible-path/polybar-3.7.2/include/utils/string.hpp:4:1: note: ‘uint32_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
3 | #include <sstream>
+++ |+#include <cstdint>
4 |
make[3]: *** [bin/CMakeFiles/poly.dir/build.make:418: bin/CMakeFiles/poly.dir/ipc/util.cpp.o] Error 1
make[3]: Leaving directory '/build/reproducible-path/polybar-3.7.2/build'
make[2]: *** [CMakeFiles/Makefile2:631: bin/CMakeFiles/poly.dir/all] Error 2
make[2]: Leaving directory '/build/reproducible-path/polybar-3.7.2/build'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/polybar-3.7.2/build'
dh_auto_build: error: cd build && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2