Bug#1097984: tensorpipe: ftbfs with GCC-15
Package: src:tensorpipe
Version: 0.0~git20220513.bb1473a-5
Severity: important
Tags: sid forky
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-15
[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/tensorpipe_0.0~git20220513.bb1473a-5_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
[...]
54 | void releaseChunk(uint8_t* ptr);
| ^~~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.h:54:21: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
[ 9%] Building CXX object tensorpipe/CMakeFiles/tensorpipe.dir/common/system.cc.o
cd "/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu/tensorpipe" && /usr/bin/c++ -Dtensorpipe_EXPORTS -I"/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a" -I"/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu" -I"/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/third_party/libnop/include" -g -O2 -ffile-prefix-map=/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -fPIC -MD -MT tensorpipe/CMakeFiles/tensorpipe.dir/common/system.cc.o -MF CMakeFiles/tensorpipe.dir/common/system.cc.o.d -o CMakeFiles/tensorpipe.dir/common/system.cc.o -c "/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/system.cc"
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:16:21: error: expected constructor, destructor, or type conversion before ‘(’ token
16 | Allocator::Allocator(uint8_t* data, size_t numChunks, size_t chunkSize)
| ^
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:26:36: error: ‘TAllocCallback’ has not been declared
26 | void Allocator::alloc(size_t size, TAllocCallback callback) {
| ^~~~~~~~~~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc: In member function ‘void tensorpipe::Allocator::alloc(size_t, int)’:
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:28:23: error: request for member ‘push_back’ in ‘((tensorpipe::Allocator*)this)->tensorpipe::Allocator::pendingAllocations_’, which is of non-class type ‘int’
28 | pendingAllocations_.push_back(std::move(callback));
| ^~~~~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc: In member function ‘void tensorpipe::Allocator::processAllocations()’:
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:45:31: error: request for member ‘empty’ in ‘((tensorpipe::Allocator*)this)->tensorpipe::Allocator::pendingAllocations_’, which is of non-class type ‘int’
45 | while (!pendingAllocations_.empty()) {
| ^~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:46:42: error: request for member ‘front’ in ‘((tensorpipe::Allocator*)this)->tensorpipe::Allocator::pendingAllocations_’, which is of non-class type ‘int’
46 | auto& callback = pendingAllocations_.front();
| ^~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:50:7: error: ‘TChunk’ was not declared in this scope
50 | TChunk ptr = getAvailableChunk();
| ^~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:51:12: error: ‘ptr’ was not declared in this scope
51 | if (!ptr) {
| ^~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:54:43: error: ‘ptr’ was not declared in this scope
54 | callback(Error::kSuccess, std::move(ptr));
| ^~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:56:25: error: request for member ‘pop_front’ in ‘((tensorpipe::Allocator*)this)->tensorpipe::Allocator::pendingAllocations_’, which is of non-class type ‘int’
56 | pendingAllocations_.pop_front();
| ^~~~~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc: At global scope:
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:60:12: error: ‘TChunk’ in ‘class tensorpipe::Allocator’ does not name a type
60 | Allocator::TChunk Allocator::getAvailableChunk() {
| ^~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:74:6: error: variable or field ‘releaseChunk’ declared void
74 | void Allocator::releaseChunk(uint8_t* ptr) {
| ^~~~~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:74:30: error: ‘uint8_t’ was not declared in this scope
74 | void Allocator::releaseChunk(uint8_t* ptr) {
| ^~~~~~~
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:13:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
12 | #include <tensorpipe/common/error_macros.h>
+++ |+#include <cstdint>
13 |
/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/common/allocator.cc:74:39: error: ‘ptr’ was not declared in this scope
74 | void Allocator::releaseChunk(uint8_t* ptr) {
| ^~~
[ 10%] Building CXX object tensorpipe/CMakeFiles/tensorpipe.dir/core/context.cc.o
cd "/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu/tensorpipe" && /usr/bin/c++ -Dtensorpipe_EXPORTS -I"/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a" -I"/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu" -I"/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/third_party/libnop/include" -g -O2 -ffile-prefix-map=/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++14 -fPIC -MD -MT tensorpipe/CMakeFiles/tensorpipe.dir/core/context.cc.o -MF CMakeFiles/tensorpipe.dir/core/context.cc.o.d -o CMakeFiles/tensorpipe.dir/core/context.cc.o -c "/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/tensorpipe/core/context.cc"
make[3]: *** [tensorpipe/CMakeFiles/tensorpipe.dir/build.make:124: tensorpipe/CMakeFiles/tensorpipe.dir/common/allocator.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:220: tensorpipe/CMakeFiles/tensorpipe.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 11%] Linking CXX shared library ../../../lib/libgtest.so
cd "/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu/third_party/googletest/googletest" && /usr/bin/cmake -E cmake_link_script CMakeFiles/gtest.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,--dependency-file=CMakeFiles/gtest.dir/link.d -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libgtest.so.1.15.0 -o ../../../lib/libgtest.so.1.15.0 "CMakeFiles/gtest.dir/src/gtest-all.cc.o"
cd "/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu/third_party/googletest/googletest" && /usr/bin/cmake -E cmake_symlink_library ../../../lib/libgtest.so.1.15.0 ../../../lib/libgtest.so.1.15.0 ../../../lib/libgtest.so
make[3]: Leaving directory '/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu'
[ 11%] Built target gtest
make[2]: Leaving directory '/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/tensorpipe-0.0~git20220513.bb1473a/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:14: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: