Bug#984125: flamp: ftbfs with GCC-11
Package: src:flamp
Version: 2.2.05-1
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11
[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.
The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/flamp_2.2.05-1_unstable_gcc11.log
The last lines of the build log are at the end of this report.
To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html
GCC 11 defaults to the GNU++17 standard. If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.
[...]
./include/amp.h:381:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
381 | if (rxnumblocks == 0 || rx_ok_blocks == 0) return empty; static char percent[6];
| ^~
./include/amp.h:381:89: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
381 | if (rxnumblocks == 0 || rx_ok_blocks == 0) return empty; static char percent[6];
| ^~~~~~
In file included from ./include/flamp.h:39,
from flamp.cxx:62:
./include/amp.h: In member function ‘const char* cAmp::rx_sz_percent()’:
./include/amp.h:381:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
381 | if (rxnumblocks == 0 || rx_ok_blocks == 0) return empty; static char percent[6];
| ^~
./include/amp.h:381:89: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
381 | if (rxnumblocks == 0 || rx_ok_blocks == 0) return empty; static char percent[6];
| ^~~~~~
gcc -DHAVE_CONFIG_H -I. -I. -I./include -I/usr/include/flxmlrpc -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I. -I./include -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG -I/usr/include/flxmlrpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o lzma/flamp-LzmaLib.o `test -f 'lzma/LzmaLib.c' || echo './'`lzma/LzmaLib.c
flamp_dialog.cxx: In function ‘void set_txt_tx_interval()’:
flamp_dialog.cxx:921:15: warning: unused variable ‘t’ [-Wunused-variable]
921 | float t = cnt_tx_interval_mins->value();
| ^
g++ -DHAVE_CONFIG_H -I. -I. -I./include -I/usr/include/flxmlrpc -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -I. -I./include -pipe -Wall -fexceptions -O2 -ffast-math -finline-functions -fomit-frame-pointer -DNDEBUG -I/usr/include/flxmlrpc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o utils/flamp-amp.o `test -f 'utils/amp.cxx' || echo './'`utils/amp.cxx
flamp.cxx: In function ‘void addfile(std::string, void*, bool, char*, char*)’:
flamp.cxx:841:15: error: ordered comparison of pointer with integer zero (‘void*’ and ‘int’)
841 | if(rx > 0 && !rAmp->rx_completed()) {
| ~~~^~~
flamp.cxx:937:15: error: ordered comparison of pointer with integer zero (‘void*’ and ‘int’)
937 | if(rx > 0) {
| ~~~^~~
make[3]: *** [Makefile:1190: flamp-flamp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from utils/amp.cxx:29:
./include/amp.h: In member function ‘const char* cAmp::rx_sz_percent()’:
./include/amp.h:381:17: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
381 | if (rxnumblocks == 0 || rx_ok_blocks == 0) return empty; static char percent[6];
| ^~
./include/amp.h:381:89: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
381 | if (rxnumblocks == 0 || rx_ok_blocks == 0) return empty; static char percent[6];
| ^~~~~~
utils/amp.cxx: In member function ‘std::string cAmp::rx_missing()’:
utils/amp.cxx:1190:61: warning: ‘__builtin___snprintf_chk’ output may be truncated before the last format character [-Wformat-truncation=]
1190 | snprintf(number, sizeof(number), "%d", i);
| ^
In file included from /usr/include/stdio.h:867,
from ./include/amp.h:26,
from utils/amp.cxx:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 2 and 11 bytes into a destination of size 10
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
utils/amp.cxx: In member function ‘std::string cAmp::rx_report()’:
utils/amp.cxx:1216:61: warning: ‘ ’ directive output may be truncated writing 1 byte into a region of size between 0 and 9 [-Wformat-truncation=]
1216 | snprintf(number, sizeof(number), "%d ", i);
| ^
In file included from /usr/include/stdio.h:867,
from ./include/amp.h:26,
from utils/amp.cxx:29:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:67:35: note: ‘__builtin___snprintf_chk’ output between 3 and 12 bytes into a destination of size 10
67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
68 | __bos (__s), __fmt, __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:588: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:400: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:4: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
Reply to: