[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984190: marked as done (libnop: ftbfs with GCC-11)



Your message dated Sat, 13 Nov 2021 20:24:10 +0000
with message-id <E1mlzZK-000CbI-Nw@fasolo.debian.org>
and subject line Bug#984190: fixed in libnop 0.0~git20200728.45dfe0f-4
has caused the Debian Bug report #984190,
regarding libnop: ftbfs with GCC-11
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
984190: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984190
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: src:libnop
Version: 0.0~git20200728.45dfe0f-3
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye 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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/libnop_0.0~git20200728.45dfe0f-3_unstable_gcc11.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.

[...]
make[1]: Entering directory '/<<PKGBUILDDIR>>'
compile test/nop_tests.cpp
compile test/encoding_tests.cpp
compile test/serializer_tests.cpp
compile test/utility_tests.cpp
compile test/variant_tests.cpp
compile test/handle_tests.cpp
compile test/thread_local_tests.cpp
compile test/enum_flags_tests.cpp
compile test/sip_hash_tests.cpp
compile test/interface_tests.cpp
In file included from include/nop/serializer.h:24,
                 from test/serializer_tests.cpp:28:
include/nop/base/map.h: In instantiation of ‘static constexpr nop::Status<void> nop::Encoding<std::map<_Key, _Tp, _Compare, _Alloc> >::WritePayload(nop::EncodingByte, const Type&, Writer*) [with Writer = nop::testing::MockWriter; Key = int; T = std::__cxx11::basic_string<char>; Compare = std::less<int>; Allocator = std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > >; nop::Encoding<std::map<_Key, _Tp, _Compare, _Alloc> >::Type = std::map<int, std::__cxx11::basic_string<char> >]’:
include/nop/base/encoding.h:120:39:   required from ‘static constexpr nop::Status<void> nop::EncodingIO<T>::Write(const T&, Writer*) [with Writer = nop::testing::MockWriter; T = std::map<int, std::__cxx11::basic_string<char> >]’
include/nop/base/serializer.h:64:30:   required from ‘static constexpr nop::Status<void> nop::SerializerCommon::Write(const T&, Writer*) [with T = std::map<int, std::__cxx11::basic_string<char> >; Writer = nop::testing::MockWriter]’
include/nop/base/serializer.h:121:35:   required from ‘constexpr nop::Status<void> nop::Serializer<Writer*>::Write(const T&) [with T = std::map<int, std::__cxx11::basic_string<char> >; Writer = nop::testing::MockWriter]’
test/serializer_tests.cpp:4173:34:   required from here
include/nop/base/map.h:70:35: error: loop variable ‘element’ of type ‘const std::pair<int, std::__cxx11::basic_string<char> >&’ binds to a temporary constructed from type ‘const std::pair<const int, std::__cxx11::basic_string<char> >’ [-Werror=range-loop-construct]
   70 |     for (const std::pair<Key, T>& element : value) {
      |                                   ^~~~~~~
include/nop/base/map.h:70:35: note: use non-reference type ‘const std::pair<int, std::__cxx11::basic_string<char> >’ to make the copy explicit or ‘const std::pair<const int, std::__cxx11::basic_string<char> >&’ to prevent copying
include/nop/base/map.h: In instantiation of ‘static constexpr nop::Status<void> nop::Encoding<std::map<_Key, _Tp, _Compare, _Alloc> >::WritePayload(nop::EncodingByte, const Type&, Writer*) [with Writer = nop::TestWriter; Key = int; T = std::__cxx11::basic_string<char>; Compare = std::less<int>; Allocator = std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > >; nop::Encoding<std::map<_Key, _Tp, _Compare, _Alloc> >::Type = std::map<int, std::__cxx11::basic_string<char> >]’:
include/nop/base/encoding.h:120:39:   required from ‘static constexpr nop::Status<void> nop::EncodingIO<T>::Write(const T&, Writer*) [with Writer = nop::TestWriter; T = std::map<int, std::__cxx11::basic_string<char> >]’
include/nop/base/serializer.h:64:30:   required from ‘static constexpr nop::Status<void> nop::SerializerCommon::Write(const T&, Writer*) [with T = std::map<int, std::__cxx11::basic_string<char> >; Writer = nop::TestWriter]’
include/nop/base/serializer.h:121:35:   required from ‘constexpr nop::Status<void> nop::Serializer<Writer*>::Write(const T&) [with T = std::map<int, std::__cxx11::basic_string<char> >; Writer = nop::TestWriter]’
test/serializer_tests.cpp:4509:36:   required from here
include/nop/base/map.h:70:35: error: loop variable ‘element’ of type ‘const std::pair<int, std::__cxx11::basic_string<char> >&’ binds to a temporary constructed from type ‘const std::pair<const int, std::__cxx11::basic_string<char> >’ [-Werror=range-loop-construct]
include/nop/base/map.h:70:35: note: use non-reference type ‘const std::pair<int, std::__cxx11::basic_string<char> >’ to make the copy explicit or ‘const std::pair<const int, std::__cxx11::basic_string<char> >&’ to prevent copying
include/nop/base/map.h: In instantiation of ‘static constexpr nop::Status<void> nop::Encoding<std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc> >::WritePayload(nop::EncodingByte, const Type&, Writer*) [with Writer = nop::testing::MockWriter; Key = int; T = std::__cxx11::basic_string<char>; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; Allocator = std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > >; nop::Encoding<std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc> >::Type = std::unordered_map<int, std::__cxx11::basic_string<char> >]’:
include/nop/base/encoding.h:120:39:   required from ‘static constexpr nop::Status<void> nop::EncodingIO<T>::Write(const T&, Writer*) [with Writer = nop::testing::MockWriter; T = std::unordered_map<int, std::__cxx11::basic_string<char> >]’
include/nop/base/serializer.h:64:30:   required from ‘static constexpr nop::Status<void> nop::SerializerCommon::Write(const T&, Writer*) [with T = std::unordered_map<int, std::__cxx11::basic_string<char> >; Writer = nop::testing::MockWriter]’
include/nop/base/serializer.h:121:35:   required from ‘constexpr nop::Status<void> nop::Serializer<Writer*>::Write(const T&) [with T = std::unordered_map<int, std::__cxx11::basic_string<char> >; Writer = nop::testing::MockWriter]’
test/serializer_tests.cpp:4550:34:   required from here
include/nop/base/map.h:142:35: error: loop variable ‘element’ of type ‘const std::pair<int, std::__cxx11::basic_string<char> >&’ binds to a temporary constructed from type ‘const value_type’ {aka ‘const std::pair<const int, std::__cxx11::basic_string<char> >’} [-Werror=range-loop-construct]
  142 |     for (const std::pair<Key, T>& element : value) {
      |                                   ^~~~~~~
include/nop/base/map.h:142:35: note: use non-reference type ‘const std::pair<int, std::__cxx11::basic_string<char> >’ to make the copy explicit or ‘const value_type&’ {aka ‘const std::pair<const int, std::__cxx11::basic_string<char> >&’} to prevent copying
include/nop/base/map.h: In instantiation of ‘static constexpr nop::Status<void> nop::Encoding<std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc> >::WritePayload(nop::EncodingByte, const Type&, Writer*) [with Writer = nop::TestWriter; Key = int; T = std::__cxx11::basic_string<char>; Hash = std::hash<int>; KeyEqual = std::equal_to<int>; Allocator = std::allocator<std::pair<const int, std::__cxx11::basic_string<char> > >; nop::Encoding<std::unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc> >::Type = std::unordered_map<int, std::__cxx11::basic_string<char> >]’:
include/nop/base/encoding.h:120:39:   required from ‘static constexpr nop::Status<void> nop::EncodingIO<T>::Write(const T&, Writer*) [with Writer = nop::TestWriter; T = std::unordered_map<int, std::__cxx11::basic_string<char> >]’
include/nop/base/serializer.h:64:30:   required from ‘static constexpr nop::Status<void> nop::SerializerCommon::Write(const T&, Writer*) [with T = std::unordered_map<int, std::__cxx11::basic_string<char> >; Writer = nop::TestWriter]’
include/nop/base/serializer.h:121:35:   required from ‘constexpr nop::Status<void> nop::Serializer<Writer*>::Write(const T&) [with T = std::unordered_map<int, std::__cxx11::basic_string<char> >; Writer = nop::TestWriter]’
test/serializer_tests.cpp:4886:36:   required from here
include/nop/base/map.h:142:35: error: loop variable ‘element’ of type ‘const std::pair<int, std::__cxx11::basic_string<char> >&’ binds to a temporary constructed from type ‘const value_type’ {aka ‘const std::pair<const int, std::__cxx11::basic_string<char> >’} [-Werror=range-loop-construct]
include/nop/base/map.h:142:35: note: use non-reference type ‘const std::pair<int, std::__cxx11::basic_string<char> >’ to make the copy explicit or ‘const value_type&’ {aka ‘const std::pair<const int, std::__cxx11::basic_string<char> >&’} to prevent copying
compile test/fungible_tests.cpp
compile test/optional_tests.cpp
compile test/result_tests.cpp
compile test/endian_tests.cpp
compile test/constexpr_tests.cpp
compile examples/stream.cpp
compile examples/simple_protocol.cpp
compile examples/interface.cpp
compile examples/pipe.cpp
compile examples/table.cpp
compile examples/variant.cpp
compile examples/shared.cpp
link out/stream_example
link out/simple_protocol_example
link out/pipe_example
link out/table_example
link out/variant_example
link out/interface_example
link out/shared_protocol.so
cc1plus: all warnings being treated as errors
make[1]: *** [build/host-executable.mk:17: out/host-obj/test/test/serializer_tests.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 "INSTALL=install --strip-program=true" returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

--- End Message ---
--- Begin Message ---
Source: libnop
Source-Version: 0.0~git20200728.45dfe0f-4
Done: Mo Zhou <lumin@debian.org>

We believe that the bug you reported is fixed in the latest version of
libnop, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 984190@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mo Zhou <lumin@debian.org> (supplier of updated libnop package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 13 Nov 2021 15:08:42 -0500
Source: libnop
Architecture: source
Version: 0.0~git20200728.45dfe0f-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Deep Learning Team <debian-ai@lists.debian.org>
Changed-By: Mo Zhou <lumin@debian.org>
Closes: 984190
Changes:
 libnop (0.0~git20200728.45dfe0f-4) unstable; urgency=medium
 .
   * Cherry-pick upstream commit to fix GCC-11 FTBFS. (Closes: #984190)
   * Add d/watch file to track upstream changes.
Checksums-Sha1:
 676f93f3f4b08dcadfd88e7da958cc2401d68e21 2066 libnop_0.0~git20200728.45dfe0f-4.dsc
 a3fd1c973cf2033b948c7bc0e974e5ae96e47960 3232 libnop_0.0~git20200728.45dfe0f-4.debian.tar.xz
 f38699595ed7a321e5841fd7d5d76403f28dcf15 5646 libnop_0.0~git20200728.45dfe0f-4_source.buildinfo
Checksums-Sha256:
 6f7443baa5b45007db5dff754898c57ac2de010e8def781c5bdded9c3317bc88 2066 libnop_0.0~git20200728.45dfe0f-4.dsc
 eee3ed42e927955dfd0e2e5685435c0b47d14f2f7d69115fa720a7e18a7cd29c 3232 libnop_0.0~git20200728.45dfe0f-4.debian.tar.xz
 a576cbbe44c0b0e86c20a9ec7e67f1f981a6b1a96ed1ccf6d5316b95319bedda 5646 libnop_0.0~git20200728.45dfe0f-4_source.buildinfo
Files:
 3c9ff2b6964e048477af6170b10c1b8e 2066 libdevel optional libnop_0.0~git20200728.45dfe0f-4.dsc
 5d1706131b617af13278fd0616fca4cc 3232 libdevel optional libnop_0.0~git20200728.45dfe0f-4.debian.tar.xz
 6439404041f458fd36ced35f60267e7a 5646 libdevel optional libnop_0.0~git20200728.45dfe0f-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEY4vHXsHlxYkGfjXeYmRes19oaooFAmGQG2IRHGx1bWluQGRl
Ymlhbi5vcmcACgkQYmRes19oaoqcBxAAjSP/dqu1PYJHWn0N45x37wZxZUkDtqjo
uJSA5GBxz0n35X8jxIsNkayYQ5/8dFKJtQpCkhjk2Pt/2WJa/CMaopPUW8MA8J3F
KLrb84VaBBPJAUlXLTyiTXT51XY3w6Y1bJ/Zg1W2xqTd327EKXLuKNoZVgme3YEs
x7WH3Ouv3sL+PNcMy5HhQESmcGodfuhD9vUmJbuVoDFwfab1MAOML/wqpTk+Wmn9
ecdTXPC4+Ev/OippQHKzG9013Hhz5ZxEMTVLlred+CZ6vtRjbZfL27/Og/MVdxW7
6SGxPaDa+eENwP2XowS4wFO69xsPrP6+sFNbFBzpUZusFXDc3aVzNXedHuHGinZ6
xQP4u0letllYwy0nwCOBeoyqWlEKT6YkHmvjZLVVE2bXB1rO0oZCgPM7FU87Q+i2
ptzywf/mwMb7IqKKzKveLRsmd05EvJshuMWYIxBpppMyIjQU/BJ7HWi/X5zjSPj9
T1oj+Y1n+GYpg3haiEXMNAejsZq+HaJ0TsY+Mk/NSw1XroEbba1oKKBVgBCcWZc0
n187ULzRoUZjP68Vxf4EZ+BZBdNylUIEHMSz8mi4d/cMhTCKhKh8MUtEONpaHayC
cJ3N59bo+QXtpi79IEmaiq7RzNfPw45RHnGPIHGolAEe3PC6+KdgZuzNhyP6XR3g
o4sltwszLms=
=Yy9I
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: