Source: nlohmann-json3 Version: 3.11.2-2 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20230726 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/tests && /usr/bin/c++ > -DDOCTEST_CONFIG_SUPER_FAST_ASSERTS -DJSON_TEST_KEEP_MACROS > -DJSON_TEST_USING_MULTIPLE_HEADERS=1 > -I/<<PKGBUILDDIR>>/tests/thirdparty/doctest > -I/<<PKGBUILDDIR>>/tests/thirdparty/fifo_map > -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/include -I/<<PKGBUILDDIR>>/include -g > -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat > -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -std=gnu++11 > -Wno-deprecated -Wno-float-equal -Wno-deprecated-declarations -MD -MT > tests/CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o -MF > CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o.d -o > CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o -c > /<<PKGBUILDDIR>>/tests/src/unit-allocator.cpp > In file included from /usr/include/c++/13/ext/alloc_traits.h:34, > from /usr/include/c++/13/bits/basic_string.h:39, > from /usr/include/c++/13/string:54, > from /usr/include/c++/13/bits/locale_classes.h:40, > from /usr/include/c++/13/bits/ios_base.h:41, > from /usr/include/c++/13/streambuf:43, > from /usr/include/c++/13/bits/streambuf_iterator.h:35, > from /usr/include/c++/13/iterator:66, > from /<<PKGBUILDDIR>>/include/nlohmann/json.hpp:28, > from /<<PKGBUILDDIR>>/tests/src/unit-allocator.cpp:12: > /usr/include/c++/13/bits/alloc_traits.h: In instantiation of ‘struct > std::__allocator_traits_base::__rebind<{anonymous}::bad_allocator<std::pair<const > std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >, std::pair<const > std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> >, void>’: > /usr/include/c++/13/bits/alloc_traits.h:94:11: required by substitution of > ‘template<class _Alloc, class _Up> using std::__alloc_rebind = typename > std::__allocator_traits_base::__rebind<_Alloc, _Up>::type [with _Alloc = > {anonymous}::bad_allocator<std::pair<const std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >; _Up = std::pair<const > std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> >]’ > /usr/include/c++/13/bits/alloc_traits.h:228:8: required by substitution of > ‘template<class _Alloc> template<class _Tp> using std::allocator_traits< > <template-parameter-1-1> >::rebind_alloc = std::__alloc_rebind<_Alloc, _Tp> > [with _Tp = std::pair<const std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> >; _Alloc = > {anonymous}::bad_allocator<std::pair<const std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >]’ > /usr/include/c++/13/ext/alloc_traits.h:126:65: required from ‘struct > __gnu_cxx::__alloc_traits<{anonymous}::bad_allocator<std::pair<const > std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >, std::pair<const > std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >::rebind<std::pair<const > std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >’ > /usr/include/c++/13/bits/stl_map.h:152:28: required from ‘class > std::map<std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>, std::less<std::__cxx11::basic_string<char> >, > {anonymous}::bad_allocator<std::pair<const std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > > >’ > /<<PKGBUILDDIR>>/include/nlohmann/detail/meta/type_traits.hpp:169:8: > recursively required by substitution of ‘template<class Default, > template<class ...> class Op, class ... Args> struct > nlohmann::json_abi_v3_11_2::detail::detector<Default, typename > nlohmann::json_abi_v3_11_2::detail::make_void<Op<Args ...> >::type, Op, Args > ...> [with Default = nlohmann::json_abi_v3_11_2::detail::nonesuch; Op = > nlohmann::json_abi_v3_11_2::detail::detect_key_compare; Args = > {std::map<std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >, nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator, nlohmann::json_abi_v3_11_2::adl_serializer, > std::vector<unsigned char, std::allocator<unsigned char> > >, > std::less<std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> > >, {anonymous}::bad_allocator<std::pair<const > std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, bool, long int, long unsigned int, double, {anonymous}::bad_allocator, > nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, > std::allocator<unsigned char> > > > > >}]’ > /<<PKGBUILDDIR>>/include/nlohmann/detail/meta/type_traits.hpp:169:8: > required from ‘struct > nlohmann::json_abi_v3_11_2::detail::has_key_compare<std::map<std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>, std::less<std::__cxx11::basic_string<char> >, > {anonymous}::bad_allocator<std::pair<const std::__cxx11::basic_string<char>, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > > > >’ > /<<PKGBUILDDIR>>/include/nlohmann/detail/meta/type_traits.hpp:177:11: > required from ‘struct > nlohmann::json_abi_v3_11_2::detail::actual_object_comparator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> >’ > /<<PKGBUILDDIR>>/include/nlohmann/detail/meta/type_traits.hpp:182:7: > required by substitution of ‘template<class BasicJsonType> using > nlohmann::json_abi_v3_11_2::detail::actual_object_comparator_t = typename > nlohmann::json_abi_v3_11_2::detail::actual_object_comparator::type [with > BasicJsonType = nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>]’ > /<<PKGBUILDDIR>>/include/nlohmann/json.hpp:369:11: required from ‘class > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>’ > /<<PKGBUILDDIR>>/tests/src/unit-allocator.cpp:46:9: required from here > /usr/include/c++/13/bits/alloc_traits.h:70:31: error: static assertion > failed: allocator_traits<A>::rebind_alloc<A::value_type> must be A > 70 | _Tp>::value, > | ^~~~~ > /usr/include/c++/13/bits/alloc_traits.h:70:31: note: > ‘std::integral_constant<bool, false>::value’ evaluates to false > /usr/include/c++/13/bits/alloc_traits.h: In instantiation of ‘struct > std::__allocator_traits_base::__rebind<{anonymous}::bad_allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> >, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>, void>’: > /usr/include/c++/13/bits/alloc_traits.h:94:11: required by substitution of > ‘template<class _Alloc, class _Up> using std::__alloc_rebind = typename > std::__allocator_traits_base::__rebind<_Alloc, _Up>::type [with _Alloc = > {anonymous}::bad_allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> >; _Up = > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>]’ > /usr/include/c++/13/bits/alloc_traits.h:228:8: required by substitution of > ‘template<class _Alloc> template<class _Tp> using std::allocator_traits< > <template-parameter-1-1> >::rebind_alloc = std::__alloc_rebind<_Alloc, _Tp> > [with _Tp = nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>; _Alloc = > {anonymous}::bad_allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> >]’ > /usr/include/c++/13/ext/alloc_traits.h:126:65: required from ‘struct > __gnu_cxx::__alloc_traits<{anonymous}::bad_allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> >, > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> > >::rebind<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator> >’ > /usr/include/c++/13/bits/stl_vector.h:88:21: required from ‘struct > std::_Vector_base<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator>, > {anonymous}::bad_allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> > >’ > /usr/include/c++/13/bits/stl_vector.h:425:11: required from ‘class > std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>, > {anonymous}::bad_allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> > >’ > /<<PKGBUILDDIR>>/include/nlohmann/detail/iterators/iter_impl.hpp:64:151: > required from ‘class > nlohmann::json_abi_v3_11_2::detail::iter_impl<nlohmann::json_abi_v3_11_2::basic_json<std::map, > std::vector, std::__cxx11::basic_string<char>, bool, long int, long unsigned > int, double, {anonymous}::bad_allocator> >’ > /<<PKGBUILDDIR>>/include/nlohmann/json.hpp:730:14: required from ‘class > nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, > std::__cxx11::basic_string<char>, bool, long int, long unsigned int, double, > {anonymous}::bad_allocator>’ > /<<PKGBUILDDIR>>/tests/src/unit-allocator.cpp:46:9: required from here > /usr/include/c++/13/bits/alloc_traits.h:70:31: error: static assertion > failed: allocator_traits<A>::rebind_alloc<A::value_type> must be A > /usr/include/c++/13/bits/alloc_traits.h:70:31: note: > ‘std::integral_constant<bool, false>::value’ evaluates to false > make[3]: *** [tests/CMakeFiles/test-allocator_cpp11.dir/build.make:79: > tests/CMakeFiles/test-allocator_cpp11.dir/src/unit-allocator.cpp.o] Error 1 The full build log is available from: http://qa-logs.debian.net/2023/07/26/nlohmann-json3_3.11.2-2_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230726;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230726&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please mark it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.