Bug#1013051: tensorpipe: ftbfs with GCC-12
Package: src:tensorpipe
Version: 0.0~git20210304.369e855-2.1
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-12
[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/tensorpipe_0.0~git20210304.369e855-2.1_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.
[...]
168 | std::memcpy(buffers[0].ptr, buffer, buffers[0].len);
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:169:21: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
169 | return buffers[0].len;
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:171:26: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
171 | std::memcpy(buffers[0].ptr, buffer, buffers[0].len);
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:171:50: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
171 | std::memcpy(buffers[0].ptr, buffer, buffers[0].len);
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:173:18: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
173 | buffers[1].ptr,
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:174:61: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
174 | reinterpret_cast<const uint8_t*>(buffer) + buffers[0].len,
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:175:18: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
175 | buffers[1].len);
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:176:21: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
176 | return buffers[0].len + buffers[1].len;
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:176:38: error: no match for ‘operator[]’ (operand types are ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2>’ and ‘int’)
176 | return buffers[0].len + buffers[1].len;
| ^
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/consumer.h: In instantiation of ‘ssize_t tensorpipe::util::ringbuffer::Consumer::readInTx(void*, size_t) [with bool AllowPartial = false; ssize_t = long int; size_t = long unsigned int]’:
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/consumer.h:192:43: required from here
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/consumer.h:153:27: error: ‘std::array<tensorpipe::util::ringbuffer::Consumer::Buffer, 2> buffers’ has incomplete type
153 | std::array<Buffer, 2> buffers;
| ^~~~~~~
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h: In instantiation of ‘ssize_t tensorpipe::util::ringbuffer::Producer::writeInTx(const void*, size_t) [with bool AllowPartial = false; ssize_t = long int; size_t = long unsigned int]’:
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:196:44: required from here
/<<PKGBUILDDIR>>/tensorpipe/util/ringbuffer/producer.h:157:27: error: ‘std::array<tensorpipe::util::ringbuffer::Producer::Buffer, 2> buffers’ has incomplete type
157 | std::array<Buffer, 2> buffers;
| ^~~~~~~
[ 53%] Building CXX object tensorpipe/CMakeFiles/tensorpipe.dir/util/shm/segment.cc.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tensorpipe" && /usr/bin/c++ -Dtensorpipe_EXPORTS -I"/<<PKGBUILDDIR>>" -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -I"/<<PKGBUILDDIR>>/third_party/libnop/include" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14 -MD -MT tensorpipe/CMakeFiles/tensorpipe.dir/util/shm/segment.cc.o -MF CMakeFiles/tensorpipe.dir/util/shm/segment.cc.o.d -o CMakeFiles/tensorpipe.dir/util/shm/segment.cc.o -c "/<<PKGBUILDDIR>>/tensorpipe/util/shm/segment.cc"
[ 54%] Building CXX object tensorpipe/CMakeFiles/tensorpipe.dir/common/ibv.cc.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tensorpipe" && /usr/bin/c++ -Dtensorpipe_EXPORTS -I"/<<PKGBUILDDIR>>" -I"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" -I"/<<PKGBUILDDIR>>/third_party/libnop/include" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14 -MD -MT tensorpipe/CMakeFiles/tensorpipe.dir/common/ibv.cc.o -MF CMakeFiles/tensorpipe.dir/common/ibv.cc.o.d -o CMakeFiles/tensorpipe.dir/common/ibv.cc.o -c "/<<PKGBUILDDIR>>/tensorpipe/common/ibv.cc"
make[3]: *** [tensorpipe/CMakeFiles/tensorpipe.dir/build.make:723: tensorpipe/CMakeFiles/tensorpipe.dir/transport/shm/reactor.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[ 55%] Linking CXX shared library ../../../lib/libgmock.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock" && /usr/bin/cmake -E cmake_link_script CMakeFiles/gmock.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libgmock.so.1.11.0 -o ../../../lib/libgmock.so.1.11.0 "CMakeFiles/gmock.dir/src/gmock-all.cc.o" -Wl,-rpath,"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib:" ../../../lib/libgtest.so.1.11.0 -lpthread
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock" && /usr/bin/cmake -E cmake_symlink_library ../../../lib/libgmock.so.1.11.0 ../../../lib/libgmock.so.1.11.0 ../../../lib/libgmock.so
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 55%] Built target gmock
make -f third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/build.make third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/depend
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" && /usr/bin/cmake -E cmake_depends "Unix Makefiles" "/<<PKGBUILDDIR>>" "/<<PKGBUILDDIR>>/third_party/googletest/googlemock" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock" "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/DependInfo.cmake" --color=
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make -f third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/build.make third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/build
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 56%] Building CXX object third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock" && /usr/bin/c++ -DGTEST_CREATE_SHARED_LIBRARY=1 -Dgmock_main_EXPORTS -isystem "/<<PKGBUILDDIR>>/third_party/googletest/googlemock/include" -isystem "/<<PKGBUILDDIR>>/third_party/googletest/googlemock" -isystem "/<<PKGBUILDDIR>>/third_party/googletest/googletest/include" -isystem "/<<PKGBUILDDIR>>/third_party/googletest/googletest" -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Wall -Wshadow -Wno-error=dangling-else -DGTEST_HAS_PTHREAD=1 -fexceptions -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -DGTEST_HAS_PTHREAD=1 -std=c++14 -MD -MT third_party/googletest/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o -MF CMakeFiles/gmock_main.dir/src/gmock_main.cc.o.d -o CMakeFiles/gmock_main.dir/src/gmock_main.cc.o -c "/<<PKGBUILDDIR>>/third_party/googletest/googlemock/src/gmock_main.cc"
[ 57%] Linking CXX shared library ../../../lib/libgmock_main.so
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock" && /usr/bin/cmake -E cmake_link_script CMakeFiles/gmock_main.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -Wl,-z,now -shared -Wl,-soname,libgmock_main.so.1.11.0 -o ../../../lib/libgmock_main.so.1.11.0 CMakeFiles/gmock_main.dir/src/gmock_main.cc.o -Wl,-rpath,"/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/lib:" ../../../lib/libgmock.so.1.11.0 ../../../lib/libgtest.so.1.11.0 -lpthread
cd "/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/third_party/googletest/googlemock" && /usr/bin/cmake -E cmake_symlink_library ../../../lib/libgmock_main.so.1.11.0 ../../../lib/libgmock_main.so.1.11.0 ../../../lib/libgmock_main.so
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 57%] Built target gmock_main
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:189: tensorpipe/CMakeFiles/tensorpipe.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/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:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
Reply to: