Bug#1037688: heaptrack: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:25:29 BST 2023


Package: src:heaptrack
Version: 1.4.0-2
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[This bug is 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-13/g++-13, but succeeds to build with gcc-12/g++-12. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2023/05/22/logs/heaptrack_1.4.0-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html

[...]
  +++ |+#include <cstdint>
   11 | #include <string>
/<<PKGBUILDDIR>>/tests/benchmarks/bench_linereader.cpp:28:21: error: expected ‘;’ before ‘hex’
   28 |             uint64_t hex;
      |                     ^~~~
      |                     ;
/<<PKGBUILDDIR>>/tests/benchmarks/bench_linereader.cpp:29:35: error: ‘hex’ was not declared in this scope; did you mean ‘std::hex’?
   29 |             while (reader.readHex(hex)) {
      |                                   ^~~
      |                                   std::hex
In file included from /usr/include/c++/13/ios:44,
                 from /usr/include/c++/13/istream:40,
                 from /<<PKGBUILDDIR>>/tests/benchmarks/../../src/util/linereader.h:10:
/usr/include/c++/13/bits/ios_base.h:1067:3: note: ‘std::hex’ declared here
 1067 |   hex(ios_base& __base)
      |   ^~~
/<<PKGBUILDDIR>>/tests/benchmarks/bench_linereader.cpp:30:17: error: ‘ret’ was not declared in this scope
   30 |                 ret += hex;
      |                 ^~~
/<<PKGBUILDDIR>>/tests/benchmarks/bench_linereader.cpp:35:18: error: ‘ret’ was not declared in this scope
   35 |     std::cout << ret << '\n';
      |                  ^~~
make[3]: *** [tests/benchmarks/CMakeFiles/bench_linereader.dir/build.make:79: tests/benchmarks/CMakeFiles/bench_linereader.dir/bench_linereader.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[2]: *** [CMakeFiles/Makefile2:1898: tests/benchmarks/CMakeFiles/bench_linereader.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 54%] Building CXX object src/track/CMakeFiles/heaptrack_preload.dir/libheaptrack.cpp.o
cd /<<PKGBUILDDIR>>/debian/build/src/track && /usr/bin/c++ -Dheaptrack_preload_EXPORTS -I/<<PKGBUILDDIR>>/3rdparty/robin-map/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/debian/build/src -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -fPIC -std=gnu++14 -MD -MT src/track/CMakeFiles/heaptrack_preload.dir/libheaptrack.cpp.o -MF CMakeFiles/heaptrack_preload.dir/libheaptrack.cpp.o.d -o CMakeFiles/heaptrack_preload.dir/libheaptrack.cpp.o -c /<<PKGBUILDDIR>>/src/track/libheaptrack.cpp
[ 55%] Building CXX object tests/auto/CMakeFiles/tst_libheaptrack.dir/__/__/src/track/libheaptrack.cpp.o
cd /<<PKGBUILDDIR>>/debian/build/tests/auto && /usr/bin/c++ -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_SYSTEM_DYN_LINK -DCATCH_CONFIG_MAIN -I/<<PKGBUILDDIR>>/3rdparty/robin-map/include -I/<<PKGBUILDDIR>>/tests -I/<<PKGBUILDDIR>>/debian/build/tests/auto -I/<<PKGBUILDDIR>>/tests/auto/../.. -I/<<PKGBUILDDIR>>/tests/auto/../../src -I/<<PKGBUILDDIR>>/debian/build/tests/auto/../../src -I/<<PKGBUILDDIR>>/tests/auto/../../src/track -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -g -std=gnu++14 -MD -MT tests/auto/CMakeFiles/tst_libheaptrack.dir/__/__/src/track/libheaptrack.cpp.o -MF CMakeFiles/tst_libheaptrack.dir/__/__/src/track/libheaptrack.cpp.o.d -o CMakeFiles/tst_libheaptrack.dir/__/__/src/track/libheaptrack.cpp.o -c /<<PKGBUILDDIR>>/src/track/libheaptrack.cpp
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 55%] Built target bench_pointerhash
[ 56%] Linking CXX shared module ../../lib/heaptrack/libheaptrack_preload.so
cd /<<PKGBUILDDIR>>/debian/build/src/track && /usr/bin/cmake -E cmake_link_script CMakeFiles/heaptrack_preload.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -shared  -o ../../lib/heaptrack/libheaptrack_preload.so CMakeFiles/heaptrack_preload.dir/heaptrack_preload.cpp.o CMakeFiles/heaptrack_preload.dir/libheaptrack.cpp.o  -ldl libheaptrack_unwind.a -lrt -lunwind 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 56%] Built target heaptrack_preload
[ 57%] Linking CXX static library libsharedprint.a
cd /<<PKGBUILDDIR>>/debian/build/src/analyze && /usr/bin/cmake -P CMakeFiles/sharedprint.dir/cmake_clean_target.cmake
cd /<<PKGBUILDDIR>>/debian/build/src/analyze && /usr/bin/cmake -E cmake_link_script CMakeFiles/sharedprint.dir/link.txt --verbose=1
/usr/bin/ar qc libsharedprint.a CMakeFiles/sharedprint.dir/accumulatedtracedata.cpp.o CMakeFiles/sharedprint.dir/suppressions.cpp.o
/usr/bin/ranlib libsharedprint.a
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 57%] Built target sharedprint
[ 58%] Linking CXX executable tst_trace
cd /<<PKGBUILDDIR>>/debian/build/tests/auto && /usr/bin/cmake -E cmake_link_script CMakeFiles/tst_trace.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -g -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/tst_trace.dir/tst_trace.cpp.o -o tst_trace  ../../src/track/libheaptrack_unwind.a -lunwind 
[ 59%] Linking CXX executable tst_libheaptrack
cd /<<PKGBUILDDIR>>/debian/build/tests/auto && /usr/bin/cmake -E cmake_link_script CMakeFiles/tst_libheaptrack.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -g -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/tst_libheaptrack.dir/tst_libheaptrack.cpp.o CMakeFiles/tst_libheaptrack.dir/__/__/src/track/libheaptrack.cpp.o -o tst_libheaptrack  -ldl ../../src/track/libheaptrack_unwind.a -lrt /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 -lunwind 
[ 60%] Linking CXX executable tst_inject
cd /<<PKGBUILDDIR>>/debian/build/tests/auto && /usr/bin/cmake -E cmake_link_script CMakeFiles/tst_inject.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -g -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/tst_inject.dir/tst_inject.cpp.o -o tst_inject  -ldl /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 
[ 61%] Linking CXX executable tst_io
cd /<<PKGBUILDDIR>>/debian/build/tests/auto && /usr/bin/cmake -E cmake_link_script CMakeFiles/tst_io.dir/link.txt --verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -flto=auto -ffat-lto-objects -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpedantic -g -flto=auto -ffat-lto-objects -Wl,-z,relro -Wl,-z,now -rdynamic CMakeFiles/tst_io.dir/tst_io.cpp.o -o tst_io  /usr/lib/x86_64-linux-gnu/libboost_system.so.1.74.0 /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.74.0 
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 61%] Built target tst_trace
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 61%] Built target tst_io
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 61%] Built target tst_libheaptrack
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
[ 61%] Built target tst_inject
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/build'
dh_auto_build: error: cd debian/build && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the debian-science-maintainers mailing list