--- Begin Message ---
Package: src:flatbuffers
Version: 1.12.1~git20200711.33e2d80+dfsg1-0.6
Severity: normal
Tags: sid bookworm
User: debian-...@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/flatbuffers_1.12.1~git20200711.33e2d80+dfsg1-0.6_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.
[...]
from /<<PKGBUILDDIR>>/tests/test_builder.h:7,
from /<<PKGBUILDDIR>>/tests/test_builder.cpp:1:
In constructor ‘std::_Sp_ebo_helper<_Nm, _Tp, false>::_Sp_ebo_helper(_Tp&&)
[with int _Nm = 0; _Tp =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>]’,
inlined from ‘std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc,
_Lp>::_Impl::_Impl(_Ptr, _Deleter, const _Alloc&) [with _Ptr = unsigned char*;
_Deleter =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:503:59,
inlined from ‘std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc,
_Lp>::_Sp_counted_deleter(_Ptr, _Deleter, const _Alloc&) [with _Ptr = unsigned
char*; _Deleter =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:521:9,
inlined from ‘std::__shared_count<_Lp>::__shared_count(_Ptr, _Deleter,
_Alloc) [with _Ptr = unsigned char*; _Deleter =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; <template-parameter-2-4> = void;
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/usr/include/c++/12/bits/shared_ptr_base.h:952:8,
inlined from ‘std::__shared_count<_Lp>::__shared_count(_Ptr, _Deleter)
[with _Ptr = unsigned char*; _Deleter =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:939:57,
inlined from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(_Yp*, _Deleter)
[with _Yp = unsigned char; _Deleter =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; _Tp = unsigned char; __gnu_cxx::_Lock_policy
_Lp = __gnu_cxx::_S_atomic]’ at
/usr/include/c++/12/bits/shared_ptr_base.h:1478:17,
inlined from ‘std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter) [with _Yp =
unsigned char; _Deleter =
builder_move_assign_after_releaseraw_test<flatbuffers::FlatBufferBuilder>(flatbuffers::FlatBufferBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; _Tp = unsigned char]’ at
/usr/include/c++/12/bits/shared_ptr.h:232:48,
inlined from ‘void builder_move_assign_after_releaseraw_test(Builder) [with
Builder = flatbuffers::FlatBufferBuilder]’ at
/<<PKGBUILDDIR>>/tests/test_builder.h:67:28:
/usr/include/c++/12/bits/shared_ptr_base.h:482:45: error: ‘size’ may be used
uninitialized [-Werror=maybe-uninitialized]
482 | explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { }
| ^~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/tests/test_builder.h: In function ‘void
builder_move_assign_after_releaseraw_test(Builder) [with Builder =
flatbuffers::FlatBufferBuilder]’:
/<<PKGBUILDDIR>>/tests/test_builder.h:66:10: note: ‘size’ was declared here
66 | size_t size, offset;
| ^~~~
In constructor ‘std::_Sp_ebo_helper<_Nm, _Tp, false>::_Sp_ebo_helper(_Tp&&)
[with int _Nm = 0; _Tp =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>]’,
inlined from ‘std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc,
_Lp>::_Impl::_Impl(_Ptr, _Deleter, const _Alloc&) [with _Ptr = unsigned char*;
_Deleter =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:503:59,
inlined from ‘std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc,
_Lp>::_Sp_counted_deleter(_Ptr, _Deleter, const _Alloc&) [with _Ptr = unsigned
char*; _Deleter =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:521:9,
inlined from ‘std::__shared_count<_Lp>::__shared_count(_Ptr, _Deleter,
_Alloc) [with _Ptr = unsigned char*; _Deleter =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; <template-parameter-2-4> = void;
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/usr/include/c++/12/bits/shared_ptr_base.h:952:8,
inlined from ‘std::__shared_count<_Lp>::__shared_count(_Ptr, _Deleter)
[with _Ptr = unsigned char*; _Deleter =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:939:57,
inlined from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(_Yp*, _Deleter)
[with _Yp = unsigned char; _Deleter =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; _Tp = unsigned char; __gnu_cxx::_Lock_policy
_Lp = __gnu_cxx::_S_atomic]’ at
/usr/include/c++/12/bits/shared_ptr_base.h:1478:17,
inlined from ‘std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter) [with _Yp =
unsigned char; _Deleter =
builder_move_assign_after_releaseraw_test<TestHeapBuilder>(TestHeapBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; _Tp = unsigned char]’ at
/usr/include/c++/12/bits/shared_ptr.h:232:48,
inlined from ‘void builder_move_assign_after_releaseraw_test(Builder) [with
Builder = TestHeapBuilder]’ at /<<PKGBUILDDIR>>/tests/test_builder.h:67:28:
/usr/include/c++/12/bits/shared_ptr_base.h:482:45: error: ‘size’ may be used
uninitialized [-Werror=maybe-uninitialized]
482 | explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { }
| ^~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/tests/test_builder.h: In function ‘void
builder_move_assign_after_releaseraw_test(Builder) [with Builder =
TestHeapBuilder]’:
/<<PKGBUILDDIR>>/tests/test_builder.h:66:10: note: ‘size’ was declared here
66 | size_t size, offset;
| ^~~~
In constructor ‘std::_Sp_ebo_helper<_Nm, _Tp, false>::_Sp_ebo_helper(_Tp&&)
[with int _Nm = 0; _Tp =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>]’,
inlined from ‘std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc,
_Lp>::_Impl::_Impl(_Ptr, _Deleter, const _Alloc&) [with _Ptr = unsigned char*;
_Deleter =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:503:59,
inlined from ‘std::_Sp_counted_deleter<_Ptr, _Deleter, _Alloc,
_Lp>::_Sp_counted_deleter(_Ptr, _Deleter, const _Alloc&) [with _Ptr = unsigned
char*; _Deleter =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:521:9,
inlined from ‘std::__shared_count<_Lp>::__shared_count(_Ptr, _Deleter,
_Alloc) [with _Ptr = unsigned char*; _Deleter =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>;
_Alloc = std::allocator<void>; <template-parameter-2-4> = void;
__gnu_cxx::_Lock_policy _Lp = __gnu_cxx::_S_atomic]’ at
/usr/include/c++/12/bits/shared_ptr_base.h:952:8,
inlined from ‘std::__shared_count<_Lp>::__shared_count(_Ptr, _Deleter)
[with _Ptr = unsigned char*; _Deleter =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; __gnu_cxx::_Lock_policy _Lp =
__gnu_cxx::_S_atomic]’ at /usr/include/c++/12/bits/shared_ptr_base.h:939:57,
inlined from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(_Yp*, _Deleter)
[with _Yp = unsigned char; _Deleter =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; _Tp = unsigned char; __gnu_cxx::_Lock_policy
_Lp = __gnu_cxx::_S_atomic]’ at
/usr/include/c++/12/bits/shared_ptr_base.h:1478:17,
inlined from ‘std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter) [with _Yp =
unsigned char; _Deleter =
builder_move_assign_after_releaseraw_test<GrpcLikeMessageBuilder>(GrpcLikeMessageBuilder)::<lambda(uint8_t*)>;
<template-parameter-2-3> = void; _Tp = unsigned char]’ at
/usr/include/c++/12/bits/shared_ptr.h:232:48,
inlined from ‘void builder_move_assign_after_releaseraw_test(Builder) [with
Builder = GrpcLikeMessageBuilder]’ at
/<<PKGBUILDDIR>>/tests/test_builder.h:67:28:
/usr/include/c++/12/bits/shared_ptr_base.h:482:45: error: ‘size’ may be used
uninitialized [-Werror=maybe-uninitialized]
482 | explicit _Sp_ebo_helper(_Tp&& __tp) : _M_tp(std::move(__tp)) { }
| ^~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/tests/test_builder.h: In function ‘void
builder_move_assign_after_releaseraw_test(Builder) [with Builder =
GrpcLikeMessageBuilder]’:
/<<PKGBUILDDIR>>/tests/test_builder.h:66:10: note: ‘size’ was declared here
66 | size_t size, offset;
| ^~~~
cc1plus: all warnings being treated as errors
make[4]: *** [CMakeFiles/flattests.dir/build.make:209:
CMakeFiles/flattests.dir/tests/test_builder.cpp.o] Error 1
make[4]: *** Waiting for unfinished jobs....
[ 86%] Linking CXX executable flatsampletext
/usr/bin/cmake -E cmake_link_script CMakeFiles/flatsampletext.dir/link.txt
--verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -Wno-error=date-time -std=c++0x -Wall -pedantic -Werror
-Wextra -Werror=shadow -faligned-new -Werror=implicit-fallthrough=2
-Wunused-result -Werror=unused-result -Wunused-parameter
-Werror=unused-parameter -fsigned-char -Wl,-z,relro -Wl,-z,now -rdynamic
CMakeFiles/flatsampletext.dir/src/idl_parser.cpp.o
CMakeFiles/flatsampletext.dir/src/idl_gen_text.cpp.o
CMakeFiles/flatsampletext.dir/src/reflection.cpp.o
CMakeFiles/flatsampletext.dir/src/util.cpp.o
CMakeFiles/flatsampletext.dir/samples/sample_text.cpp.o -o flatsampletext
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 87%] Built target flatsampletext
[ 88%] Linking CXX executable flatsamplebfbs
/usr/bin/cmake -E cmake_link_script CMakeFiles/flatsamplebfbs.dir/link.txt
--verbose=1
/usr/bin/c++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
-fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -Wno-error=date-time -std=c++0x -Wall -pedantic -Werror
-Wextra -Werror=shadow -faligned-new -Werror=implicit-fallthrough=2
-Wunused-result -Werror=unused-result -Wunused-parameter
-Werror=unused-parameter -fsigned-char -Wl,-z,relro -Wl,-z,now -rdynamic
CMakeFiles/flatsamplebfbs.dir/src/idl_parser.cpp.o
CMakeFiles/flatsamplebfbs.dir/src/idl_gen_text.cpp.o
CMakeFiles/flatsamplebfbs.dir/src/reflection.cpp.o
CMakeFiles/flatsamplebfbs.dir/src/util.cpp.o
CMakeFiles/flatsamplebfbs.dir/samples/sample_bfbs.cpp.o -o flatsamplebfbs
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 90%] Built target flatsamplebfbs
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:206: CMakeFiles/flattests.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:149: all] Error 2
make[2]: 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[1]: *** [debian/rules:17: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--- End Message ---