Bug#1131337: reflect-cpp: FTBFS on armhf, i386: error: ‘void operator delete(void*, std::size_t)’ called on a pointer to an unallocated object ‘2328306436’ [-Werror=free-nonheap-object]
Sebastian Ramacher <[email protected]>
| Newsgroups | gmane.linux.debian.ports.arm |
|---|---|
| Message-ID | <ab0vc1AVgAdleLss__25773.9333946787$1774006309$gmane$org@ramacher.at> |
Source: reflect-cpp Version: 0.21.0+ds-2 Severity: serious Tags: ftbfs Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: [email protected], [email protected] User: [email protected] Usertags: armhf User: [email protected] Usertags: i386 Dear maintainer, reflect-cpp FTBFS on armhf and i386: [361/656] /usr/bin/c++ -I/build/reproducible-path/reflect-cpp-0.21.0+ds/PUBLIC -I/build/reproducible-path/reflect-cpp-0.21.0+ds/include -I/build/reproducible-path/reflect-cpp-0.21.0+ds/include/rfl/thirdparty -I/build/reproducible-path/reflect-cpp-0.21.0+ds/obj-i686-linux-gnu/include -isystem /usr/include/bson-2.2.3 -g -O2 -ffile-prefix-map=/build/reproducible-path/reflect-cpp-0.21.0+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=maybe-uninitialized -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -Wall -Werror -ggdb -ftemplate-backtrace-limit=0 -std=gnu++20 -DTOML_HEADER_ONLY=0 -DTOML_SHARED_LIB=1 -DGTEST_HAS_PTHREAD=1 -Winvalid-pch -include /build/reproducible-path/reflect-cpp-0.21.0+ds/obj-i686-linux-gnu/tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/cmake_pch.hxx -MD -MT tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o -MF tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o.d -o tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o -c /build/reproducible-path/reflect-cpp-0.21.0+ds/tests/cbor/test_array.cpp FAILED: [code=1] tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o /usr/bin/c++ -I/build/reproducible-path/reflect-cpp-0.21.0+ds/PUBLIC -I/build/reproducible-path/reflect-cpp-0.21.0+ds/include -I/build/reproducible-path/reflect-cpp-0.21.0+ds/include/rfl/thirdparty -I/build/reproducible-path/reflect-cpp-0.21.0+ds/obj-i686-linux-gnu/include -isystem /usr/include/bson-2.2.3 -g -O2 -ffile-prefix-map=/build/reproducible-path/reflect-cpp-0.21.0+ds=. -fstack-protector-strong -Wformat -Werror=format-security -Wno-error=maybe-uninitialized -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -Wall -Werror -ggdb -ftemplate-backtrace-limit=0 -std=gnu++20 -DTOML_HEADER_ONLY=0 -DTOML_SHARED_LIB=1 -DGTEST_HAS_PTHREAD=1 -Winvalid-pch -include /build/reproducible-path/reflect-cpp-0.21.0+ds/obj-i686-linux-gnu/tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/cmake_pch.hxx -MD -MT tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o -MF tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o.d -o tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/test_array.cpp.o -c /build/reproducible-path/reflect-cpp-0.21.0+ds/tests/cbor/test_array.cpp In file included from /usr/include/i386-linux-gnu/c++/15/bits/c++allocator.h:33, from /usr/include/c++/15/bits/allocator.h:46, from /usr/include/c++/15/bits/alloc_traits.h:39, from /usr/include/c++/15/ext/alloc_traits.h:36, from /usr/include/c++/15/bits/hashtable_policy.h:39, from /usr/include/c++/15/bits/hashtable.h:37, from /usr/include/c++/15/bits/unordered_map.h:33, from /usr/include/c++/15/unordered_map:43, from /usr/include/c++/15/functional:65, from /build/reproducible-path/reflect-cpp-0.21.0+ds/include/rfl/Literal.hpp:6, from /build/reproducible-path/reflect-cpp-0.21.0+ds/include/rfl/Field.hpp:10, from /build/reproducible-path/reflect-cpp-0.21.0+ds/include/rfl/AddStructName.hpp:6, from /build/reproducible-path/reflect-cpp-0.21.0+ds/include/rfl.hpp:10, from /build/reproducible-path/reflect-cpp-0.21.0+ds/obj-i686-linux-gnu/tests/cbor/CMakeFiles/reflect-cpp-cbor-tests.dir/cmake_pch.hxx:5, from <command-line>: In member function ‘void std::__new_allocator<_Tp>::deallocate(_Tp*, size_type) [with _Tp = long long unsigned int]’, inlined from ‘constexpr void std::allocator< <template-parameter-1-1> >::deallocate(_Tp*, std::size_t) [with _Tp = long long unsigned int]’ at /usr/include/c++/15/bits/allocator.h:215:35, inlined from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::deallocate(allocator_type&, pointer, size_type) [with _Tp = long long unsigned int]’ at /usr/include/c++/15/bits/alloc_traits.h:649:23, inlined from ‘void jsoncons::detail::bigint_storage<Allocator>::allocated_storage::destroy(const real_allocator_type&) [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:248:71, inlined from ‘void jsoncons::detail::bigint_storage<Allocator>::destroy() [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:475:31, inlined from ‘void jsoncons::detail::bigint_storage<Allocator>::destroy() [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:471:10, inlined from ‘jsoncons::basic_bigint<Allocator>::~basic_bigint() [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:694:25, inlined from ‘void jsoncons::basic_bigint<Allocator>::write_string(std::__cxx11::basic_string<_CharT2, _Traits2, _Alloc>&) const [with Ch = char; Traits = std::char_traits<char>; Alloc = std::allocator<char>; Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:1338:9: /usr/include/c++/15/bits/new_allocator.h:172:66: error: ‘void operator delete(void*, std::size_t)’ called on a pointer to an unallocated object ‘2328306436’ [-Werror=free-nonheap-object] 172 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n)); | ^ In member function ‘void std::__new_allocator<_Tp>::deallocate(_Tp*, size_type) [with _Tp = long long unsigned int]’, inlined from ‘constexpr void std::allocator< <template-parameter-1-1> >::deallocate(_Tp*, std::size_t) [with _Tp = long long unsigned int]’ at /usr/include/c++/15/bits/allocator.h:215:35, inlined from ‘static constexpr void std::allocator_traits<std::allocator<_CharT> >::deallocate(allocator_type&, pointer, size_type) [with _Tp = long long unsigned int]’ at /usr/include/c++/15/bits/alloc_traits.h:649:23, inlined from ‘void jsoncons::detail::bigint_storage<Allocator>::allocated_storage::destroy(const real_allocator_type&) [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:248:71, inlined from ‘void jsoncons::detail::bigint_storage<Allocator>::destroy() [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:475:31, inlined from ‘void jsoncons::detail::bigint_storage<Allocator>::destroy() [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:471:10, inlined from ‘jsoncons::basic_bigint<Allocator>::~basic_bigint() [with Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:694:25, inlined from ‘void jsoncons::basic_bigint<Allocator>::write_string_hex(std::__cxx11::basic_string<_CharT2, _Traits2, _Alloc>&) const [with Ch = char; Traits = std::char_traits<char>; Alloc = std::allocator<char>; Allocator = std::allocator<long long unsigned int>]’ at /usr/include/jsoncons/utility/bigint.hpp:1390:9: /usr/include/c++/15/bits/new_allocator.h:172:66: error: ‘void operator delete(void*, std::size_t)’ called on a pointer to an unallocated object ‘268435456’ [-Werror=free-nonheap-object] 172 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n)); | ^ cc1plus: all warnings being treated as errors See https://buildd.debian.org/status/fetch.php?pkg=reflect-cpp&arch=i386&ver=0.21.0%2Bds-2%2Bb1&stamp=1773997002&raw=0 for more details. Cheers -- Sebastian Ramacher