[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.
The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/systemtap_4.6-2_unstable_gcc12.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.
[...]
config.status: creating Makefile
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build
make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/bin/bash ./git_version.sh -k -s . -o git_version.h
sed -e "s#@pkgdatadir@#/usr/share/systemtap#g" < macros.systemtap.in > macros.systemtap
make all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in .
make[3]: Entering directory '/<<PKGBUILDDIR>>'
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-main.o `test -f 'main.cxx' || echo './'`main.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-session.o `test -f 'session.cxx' || echo './'`session.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-parse.o `test -f 'parse.cxx' || echo './'`parse.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-staptree.o `test -f 'staptree.cxx' || echo './'`staptree.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-elaborate.o `test -f 'elaborate.cxx' || echo './'`elaborate.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-translate.o `test -f 'translate.cxx' || echo './'`translate.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-tapsets.o `test -f 'tapsets.cxx' || echo './'`tapsets.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-buildrun.o `test -f 'buildrun.cxx' || echo './'`buildrun.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-loc2stap.o `test -f 'loc2stap.cxx' || echo './'`loc2stap.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-hash.o `test -f 'hash.cxx' || echo './'`hash.cxx
gcc -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -fexceptions -Wall -Wextra -Werror -Wunused -Wformat=2 -W -I/usr/include/nss -I/usr/include/nspr -DSTAP -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-mdfour.o `test -f 'mdfour.c' || echo './'`mdfour.c
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-cache.o `test -f 'cache.cxx' || echo './'`cache.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-util.o `test -f 'util.cxx' || echo './'`util.cxx
util.cxx: In function ‘void ltrim(std::string&)’:
util.cxx:1766:56: error: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Werror=deprecated-declarations]
1766 | std::not1(std::ptr_fun<int, int>(std::isspace))));
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
from util.h:8,
from util.cxx:17:
/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (*__x)(_Arg))
| ^~~~~~~
util.cxx:1766:33: error: ‘constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int, int>]’ is deprecated: use 'std::not_fn' instead [-Werror=deprecated-declarations]
1766 | std::not1(std::ptr_fun<int, int>(std::isspace))));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here
1046 | not1(const _Predicate& __pred)
| ^~~~
util.cxx: In function ‘void rtrim(std::string&)’:
util.cxx:1774:43: error: ‘std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]’ is deprecated: use 'std::function' instead [-Werror=deprecated-declarations]
1774 | std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:1126:5: note: declared here
1126 | ptr_fun(_Result (*__x)(_Arg))
| ^~~~~~~
util.cxx:1774:20: error: ‘constexpr std::unary_negate<_Predicate> std::not1(const _Predicate&) [with _Predicate = pointer_to_unary_function<int, int>]’ is deprecated: use 'std::not_fn' instead [-Werror=deprecated-declarations]
1774 | std::not1(std::ptr_fun<int, int>(std::isspace))).base(), s.end());
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_function.h:1046:5: note: declared here
1046 | not1(const _Predicate& __pred)
| ^~~~
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-coveragedb.o `test -f 'coveragedb.cxx' || echo './'`coveragedb.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-dwarf_wrappers.o `test -f 'dwarf_wrappers.cxx' || echo './'`dwarf_wrappers.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-tapset-been.o `test -f 'tapset-been.cxx' || echo './'`tapset-been.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-tapset-procfs.o `test -f 'tapset-procfs.cxx' || echo './'`tapset-procfs.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-tapset-timers.o `test -f 'tapset-timers.cxx' || echo './'`tapset-timers.cxx
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/bin"' -DSYSCONFDIR='"/etc"' -DPKGDATADIR='"/usr/share/systemtap"' -DPKGLIBDIR='"/usr/lib/systemtap"' -DLOCALEDIR='"/usr/share/locale"' -DDOCDIR='"/usr/share/doc/systemtap"' -DPYEXECDIR='""' -DPY3EXECDIR='""' -I./includes -I./includes/sys -DSTAP_SDT_V2 -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wextra -Werror -faligned-new -D_REENTRANT -I/usr/include/nss -I/usr/include/nspr -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o stap-tapset-netfilter.o `test -f 'tapset-netfilter.cxx' || echo './'`tapset-netfilter.cxx
cc1plus: all warnings being treated as errors
make[3]: *** [Makefile:1351: stap-util.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:2130: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:797: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:30: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2