[Android-tools-devel] Bug#1072129: android-platform-art: FTBFS: libartbase/base/strlcpy.h:31:22: error: static declaration of 'strlcpy' follows non-static declaration

Santiago Vila sanvila at debian.org
Tue May 28 23:36:14 BST 2024


Package: src:android-platform-art
Version: 14.0.0+r15-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary
    dh_update_autotools_config
    dh_autoreconf
    debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- --file=debian/dmtracedump.mk
	make -j2 "INSTALL=install --strip-program=true" --file=debian/dmtracedump.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
clang++ -c -o tools/dmtracedump/tracedump.o tools/dmtracedump/tracedump.cc -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -I/usr/include/android -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -Itools/dmtracedump  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu++2a -gdwarf-4
tools/dmtracedump/tracedump.cc:1482:3: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result]
   system(command);
   ^~~~~~ ~~~~~~~
1 warning generated.

[... snipped ...]

# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debug_print.cc:23:
In file included from runtime/class_loader_utils.h:20:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
   using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
8 warnings generated.
clang++ -c -o runtime/debugger.o runtime/debugger.cc -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -I/usr/include/android -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DART_BASE_ADDRESS_MAX_DELTA=0x1000000 -DART_BASE_ADDRESS_MIN_DELTA=-0x1000000 -DART_BASE_ADDRESS=0x60000000 -DART_DEFAULT_COMPACT_DEX_LEVEL=fast -DART_DEFAULT_GC_TYPE_IS_CMS -DART_ENABLE_ADDRESS_SANITIZER=1 -DART_ENABLE_CODEGEN_x86_64 -DART_FRAME_SIZE_LIMIT=1736 -DART_READ_BARRIER_TYPE_IS_BAKER=1 -DART_STACK_OVERFLOW_GAP_arm=8192 -DART_STACK_OVERFLOW_GAP_arm64=8192 -DART_STACK_OVERFLOW_GAP_riscv64=8192 -DART_STACK_OVERFLOW_GAP_x86_64=8192 -DART_STACK_OVERFLOW_GAP_x86=8192 -DART_TARGET -DART_TARGET_LINUX -DART_USE_READ_BARRIER=1 -DBUILDING_LIBART=1 -DIMT_SIZE=43 -DUSE_D8_DESUGAR=1 -I. -I/usr/include/android/cpu_features -I/usr/include/android/nativehelper -I/usr/include/android/lzma -Icmdline -Idebian/out -Ilibartbase -Ilibartbase/arch -Ilibartpalette/include -Ilibdexfile -Ilibdexfile/external/include -Ilibelffile -Ilibnativebridge/include -Ilibnativeloader/include -Ilibprofile -Iodrefresh/include -Iruntime -Isigchainlib -Itools/cpp-define-generator  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu++2a -gdwarf-4 -std=gnu++17 -fno-omit-frame-pointer -fno-rtti -fstrict-aliasing -fvisibility=protected -Wa,--noexecstack -Wno-invalid-offsetof -Wno-invalid-partial-specialization
In file included from runtime/debug_print.cc:23:
In file included from runtime/class_loader_utils.h:20:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:33:
In file included from runtime/gc_root-inl.h:25:
In file included from runtime/read_barrier-inl.h:23:
In file included from runtime/gc/collector/concurrent_copying-inl.h:25:
In file included from runtime/gc/space/region_space-inl.h:21:
In file included from runtime/mirror/object-inl.h:26:
In file included from runtime/mirror/class-inl.h:24:
In file included from libartbase/base/array_slice.h:24:
In file included from libartbase/base/length_prefixed_array.h:26:
libartbase/base/stride_iterator.h:27:36: warning: 'iterator<std::random_access_iterator_tag, art::ArtField>' is deprecated [-Wdeprecated-declarations]
class StrideIterator : public std::iterator<std::random_access_iterator_tag, T> {
                                    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:162:27: note: in instantiation of template class 'art::StrideIterator<art::ArtField>' requested here
                              __void_t<typename _Iterator::iterator_category,
                                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: during template argument deduction for class template partial specialization '__iterator_traits<_Iterator>' [with _Iterator = art::StrideIterator<art::ArtField>]
     : public __iterator_traits<_Iterator> { };
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: in instantiation of template class 'std::__iterator_traits<art::StrideIterator<art::ArtField>>' requested here
libartbase/base/iteration_range.h:31:41: note: in instantiation of template class 'std::iterator_traits<art::StrideIterator<art::ArtField>>' requested here
   using difference_type = typename std::iterator_traits<Iter>::difference_type;
                                         ^
runtime/mirror/class-inl.h:986:56: note: in instantiation of template class 'art::IterationRange<art::StrideIterator<art::ArtField>>' requested here
inline IterationRange<StrideIterator<ArtField>> Class::GetIFields() {
                                                        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::ArtField>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debug_print.cc:23:
In file included from runtime/class_loader_utils.h:20:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:33:
In file included from runtime/gc_root-inl.h:25:
In file included from runtime/read_barrier-inl.h:23:
In file included from runtime/gc/collector/concurrent_copying-inl.h:25:
In file included from runtime/gc/space/region_space-inl.h:21:
In file included from runtime/mirror/object-inl.h:26:
In file included from runtime/mirror/class-inl.h:24:
In file included from libartbase/base/array_slice.h:24:
In file included from libartbase/base/length_prefixed_array.h:26:
libartbase/base/stride_iterator.h:30:21: warning: 'iterator<std::random_access_iterator_tag, art::ArtField>' is deprecated [-Wdeprecated-declarations]
       typename std::iterator<std::random_access_iterator_tag, T>::difference_type;
                     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::ArtField>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:26:
libdexfile/dex/class_iterator.h:44:35: warning: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' is deprecated [-Wdeprecated-declarations]
class ClassIterator : public std::iterator<std::forward_iterator_tag, ClassIteratorData> {
                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:26:
libdexfile/dex/class_iterator.h:46:27: warning: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' is deprecated [-Wdeprecated-declarations]
   using value_type = std::iterator<std::forward_iterator_tag, ClassIteratorData>::value_type;
                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:26:
libdexfile/dex/class_iterator.h:47:32: warning: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' is deprecated [-Wdeprecated-declarations]
   using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
         std::iterator<std::forward_iterator_tag, DexInstructionPcPair> {
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
   using value_type = std::iterator<std::forward_iterator_tag, DexInstructionPcPair>::value_type;
                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
   using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debug_print.cc:21:
In file included from runtime/class_linker.h:42:
In file included from runtime/mirror/class.h:30:
runtime/mirror/object_array.h:165:31: warning: 'iterator<std::forward_iterator_tag, art::ObjPtr<art::mirror::Object>>' is deprecated [-Wdeprecated-declarations]
class ArrayIter : public std::iterator<std::forward_iterator_tag, ObjPtr<T>> {
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:162:27: note: in instantiation of template class 'art::mirror::ArrayIter<art::mirror::Object, art::Handle<art::mirror::ObjectArray<art::mirror::Object>>>' requested here
                              __void_t<typename _Iterator::iterator_category,
                                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: during template argument deduction for class template partial specialization '__iterator_traits<_Iterator>' [with _Iterator = art::mirror::ArrayIter<art::mirror::Object, art::Handle<art::mirror::ObjectArray<art::mirror::Object>>>]
     : public __iterator_traits<_Iterator> { };
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: in instantiation of template class 'std::__iterator_traits<art::mirror::ArrayIter<art::mirror::Object, art::Handle<art::mirror::ObjectArray<art::mirror::Object>>>>' requested here
libartbase/base/iteration_range.h:31:41: note: in instantiation of template class 'std::iterator_traits<art::mirror::ArrayIter<art::mirror::Object, art::Handle<art::mirror::ObjectArray<art::mirror::Object>>>>' requested here
   using difference_type = typename std::iterator_traits<Iter>::difference_type;
                                         ^
runtime/class_loader_utils.h:85:40: note: in instantiation of template class 'art::IterationRange<art::mirror::ArrayIter<art::mirror::Object, art::Handle<art::mirror::ObjectArray<art::mirror::Object>>>>' requested here
       for (auto element : dex_elements.Iterate<mirror::Object>()) {
                                        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ObjPtr<art::mirror::Object>>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:33:
In file included from runtime/gc_root-inl.h:25:
In file included from runtime/read_barrier-inl.h:23:
In file included from runtime/gc/collector/concurrent_copying-inl.h:25:
In file included from runtime/gc/space/region_space-inl.h:21:
In file included from runtime/mirror/object-inl.h:26:
In file included from runtime/mirror/class-inl.h:24:
In file included from libartbase/base/array_slice.h:24:
In file included from libartbase/base/length_prefixed_array.h:26:
libartbase/base/stride_iterator.h:27:36: warning: 'iterator<std::random_access_iterator_tag, art::ArtField>' is deprecated [-Wdeprecated-declarations]
class StrideIterator : public std::iterator<std::random_access_iterator_tag, T> {
                                    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:162:27: note: in instantiation of template class 'art::StrideIterator<art::ArtField>' requested here
                              __void_t<typename _Iterator::iterator_category,
                                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: during template argument deduction for class template partial specialization '__iterator_traits<_Iterator>' [with _Iterator = art::StrideIterator<art::ArtField>]
     : public __iterator_traits<_Iterator> { };
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: in instantiation of template class 'std::__iterator_traits<art::StrideIterator<art::ArtField>>' requested here
libartbase/base/iteration_range.h:31:41: note: in instantiation of template class 'std::iterator_traits<art::StrideIterator<art::ArtField>>' requested here
   using difference_type = typename std::iterator_traits<Iter>::difference_type;
                                         ^
runtime/mirror/class-inl.h:986:56: note: in instantiation of template class 'art::IterationRange<art::StrideIterator<art::ArtField>>' requested here
inline IterationRange<StrideIterator<ArtField>> Class::GetIFields() {
                                                        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::ArtField>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:30:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:33:
In file included from runtime/gc_root-inl.h:25:
In file included from runtime/read_barrier-inl.h:23:
In file included from runtime/gc/collector/concurrent_copying-inl.h:25:
In file included from runtime/gc/space/region_space-inl.h:21:
In file included from runtime/mirror/object-inl.h:26:
In file included from runtime/mirror/class-inl.h:24:
In file included from libartbase/base/array_slice.h:24:
In file included from libartbase/base/length_prefixed_array.h:26:
libartbase/base/stride_iterator.h:30:21: warning: 'iterator<std::random_access_iterator_tag, art::ArtField>' is deprecated [-Wdeprecated-declarations]
       typename std::iterator<std::random_access_iterator_tag, T>::difference_type;
                     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::ArtField>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
9 warnings generated.
clang++ -c -o runtime/dex/dex_file_annotations.o runtime/dex/dex_file_annotations.cc -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -UDEBUG -I/usr/include/android -fmessage-length=0 -fno-exceptions -fno-strict-aliasing -no-canonical-prefixes  -Wno-c99-designator -Wno-gnu-designator -Wno-gnu-folding-constant  -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DART_BASE_ADDRESS_MAX_DELTA=0x1000000 -DART_BASE_ADDRESS_MIN_DELTA=-0x1000000 -DART_BASE_ADDRESS=0x60000000 -DART_DEFAULT_COMPACT_DEX_LEVEL=fast -DART_DEFAULT_GC_TYPE_IS_CMS -DART_ENABLE_ADDRESS_SANITIZER=1 -DART_ENABLE_CODEGEN_x86_64 -DART_FRAME_SIZE_LIMIT=1736 -DART_READ_BARRIER_TYPE_IS_BAKER=1 -DART_STACK_OVERFLOW_GAP_arm=8192 -DART_STACK_OVERFLOW_GAP_arm64=8192 -DART_STACK_OVERFLOW_GAP_riscv64=8192 -DART_STACK_OVERFLOW_GAP_x86_64=8192 -DART_STACK_OVERFLOW_GAP_x86=8192 -DART_TARGET -DART_TARGET_LINUX -DART_USE_READ_BARRIER=1 -DBUILDING_LIBART=1 -DIMT_SIZE=43 -DUSE_D8_DESUGAR=1 -I. -I/usr/include/android/cpu_features -I/usr/include/android/nativehelper -I/usr/include/android/lzma -Icmdline -Idebian/out -Ilibartbase -Ilibartbase/arch -Ilibartpalette/include -Ilibdexfile -Ilibdexfile/external/include -Ilibelffile -Ilibnativebridge/include -Ilibnativeloader/include -Ilibprofile -Iodrefresh/include -Iruntime -Isigchainlib -Itools/cpp-define-generator  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -std=gnu++2a -gdwarf-4 -std=gnu++17 -fno-omit-frame-pointer -fno-rtti -fstrict-aliasing -fvisibility=protected -Wa,--noexecstack -Wno-invalid-offsetof -Wno-invalid-partial-specialization
In file included from runtime/debugger.cc:37:
libartbase/base/strlcpy.h:31:22: error: static declaration of 'strlcpy' follows non-static declaration
static inline size_t strlcpy(char* dst, const char* src, size_t size) {
                      ^
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:150:8: note: previous definition is here
__NTH (strlcpy (char *__restrict __dest, const char *__restrict __src,
        ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:26:
libdexfile/dex/class_iterator.h:44:35: warning: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' is deprecated [-Wdeprecated-declarations]
class ClassIterator : public std::iterator<std::forward_iterator_tag, ClassIteratorData> {
                                   ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:26:
libdexfile/dex/class_iterator.h:46:27: warning: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' is deprecated [-Wdeprecated-declarations]
   using value_type = std::iterator<std::forward_iterator_tag, ClassIteratorData>::value_type;
                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:26:
libdexfile/dex/class_iterator.h:47:32: warning: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' is deprecated [-Wdeprecated-declarations]
   using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::ClassIteratorData>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:61:14: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
         std::iterator<std::forward_iterator_tag, DexInstructionPcPair> {
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:63:27: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
   using value_type = std::iterator<std::forward_iterator_tag, DexInstructionPcPair>::value_type;
                           ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:26:
In file included from libdexfile/dex/code_item_accessors-inl.h:24:
In file included from libdexfile/dex/dex_file-inl.h:28:
libdexfile/dex/dex_instruction_iterator.h:64:32: warning: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' is deprecated [-Wdeprecated-declarations]
   using difference_type = std::iterator<std::forward_iterator_tag, value_type>::difference_type;
                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, art::DexInstructionPcPair>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:80:
In file included from runtime/stack.h:30:
In file included from runtime/stack_map.h:25:
In file included from libartbase/base/bit_table.h:32:
libartbase/base/stl_util.h:190:31: warning: 'iterator<std::forward_iterator_tag, unsigned long, unsigned long, unsigned long, unsigned long>' is deprecated [-Wdeprecated-declarations]
class CountIter : public std::iterator<std::forward_iterator_tag, size_t, size_t, size_t, size_t> {
                               ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, unsigned long, unsigned long, unsigned long, unsigned long>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:80:
In file included from runtime/stack.h:30:
In file included from runtime/stack_map.h:25:
In file included from libartbase/base/bit_table.h:32:
libartbase/base/stl_util.h:327:38: warning: 'iterator<std::forward_iterator_tag, std::basic_string_view<char>>' is deprecated [-Wdeprecated-declarations]
struct SplitStringIter : public std::iterator<std::forward_iterator_tag, std::string_view> {
                                      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::forward_iterator_tag, std::basic_string_view<char>>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:80:
In file included from runtime/stack.h:30:
In file included from runtime/stack_map.h:25:
libartbase/base/bit_table.h:156:38: warning: 'iterator<std::random_access_iterator_tag, art::InlineInfo, int, void, void>' is deprecated [-Wdeprecated-declarations]
   class const_iterator : public std::iterator<std::random_access_iterator_tag,
                                      ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:162:27: note: in instantiation of member class 'art::BitTable<art::InlineInfo>::const_iterator' requested here
                              __void_t<typename _Iterator::iterator_category,
                                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: during template argument deduction for class template partial specialization '__iterator_traits<_Iterator>' [with _Iterator = art::BitTable<art::InlineInfo>::const_iterator]
     : public __iterator_traits<_Iterator> { };
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: in instantiation of template class 'std::__iterator_traits<art::BitTable<art::InlineInfo>::const_iterator>' requested here
libartbase/base/iteration_range.h:31:41: note: in instantiation of template class 'std::iterator_traits<art::BitTable<art::InlineInfo>::const_iterator>' requested here
   using difference_type = typename std::iterator_traits<Iter>::difference_type;
                                         ^
libartbase/base/bit_table.h:227:30: note: in instantiation of template class 'art::IterationRange<art::BitTable<art::InlineInfo>::const_iterator>' requested here
class BitTableRange : public IterationRange<typename BitTable<Accessor>::const_iterator> {
                              ^
runtime/stack_map.h:402:29: note: in instantiation of template class 'art::BitTableRange<art::InlineInfo>' requested here
   BitTableRange<InlineInfo> GetInlineInfosOf(StackMap stack_map) const {
                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::InlineInfo, int, void, void>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/debugger.cc:80:
In file included from runtime/stack.h:30:
In file included from runtime/stack_map.h:25:
libartbase/base/bit_table.h:156:38: warning: 'iterator<std::random_access_iterator_tag, art::StackMap, int, void, void>' is deprecated [-Wdeprecated-declarations]
   class const_iterator : public std::iterator<std::random_access_iterator_tag,
                                      ^
runtime/stack_map.h:415:29: note: in instantiation of member class 'art::BitTable<art::StackMap>::const_iterator' requested here
     for (StackMap stack_map : stack_maps_) {
                             ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::StackMap, int, void, void>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
12 warnings and 1 error generated.
make[2]: *** [debian/libart.mk:533: runtime/debugger.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:33:
In file included from runtime/gc_root-inl.h:25:
In file included from runtime/read_barrier-inl.h:23:
In file included from runtime/gc/collector/concurrent_copying-inl.h:25:
In file included from runtime/gc/space/region_space-inl.h:21:
In file included from runtime/mirror/object-inl.h:26:
In file included from runtime/mirror/class-inl.h:24:
In file included from libartbase/base/array_slice.h:24:
In file included from libartbase/base/length_prefixed_array.h:26:
libartbase/base/stride_iterator.h:27:36: warning: 'iterator<std::random_access_iterator_tag, art::ArtField>' is deprecated [-Wdeprecated-declarations]
class StrideIterator : public std::iterator<std::random_access_iterator_tag, T> {
                                    ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:162:27: note: in instantiation of template class 'art::StrideIterator<art::ArtField>' requested here
                              __void_t<typename _Iterator::iterator_category,
                                                ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: during template argument deduction for class template partial specialization '__iterator_traits<_Iterator>' [with _Iterator = art::StrideIterator<art::ArtField>]
     : public __iterator_traits<_Iterator> { };
              ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:178:14: note: in instantiation of template class 'std::__iterator_traits<art::StrideIterator<art::ArtField>>' requested here
libartbase/base/iteration_range.h:31:41: note: in instantiation of template class 'std::iterator_traits<art::StrideIterator<art::ArtField>>' requested here
   using difference_type = typename std::iterator_traits<Iter>::difference_type;
                                         ^
runtime/mirror/class-inl.h:986:56: note: in instantiation of template class 'art::IterationRange<art::StrideIterator<art::ArtField>>' requested here
inline IterationRange<StrideIterator<ArtField>> Class::GetIFields() {
                                                        ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::ArtField>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
In file included from runtime/dex/dex_file_annotations.cc:23:
In file included from runtime/art_field-inl.h:24:
In file included from runtime/class_linker-inl.h:24:
In file included from runtime/art_method-inl.h:33:
In file included from runtime/gc_root-inl.h:25:
In file included from runtime/read_barrier-inl.h:23:
In file included from runtime/gc/collector/concurrent_copying-inl.h:25:
In file included from runtime/gc/space/region_space-inl.h:21:
In file included from runtime/mirror/object-inl.h:26:
In file included from runtime/mirror/class-inl.h:24:
In file included from libartbase/base/array_slice.h:24:
In file included from libartbase/base/length_prefixed_array.h:26:
libartbase/base/stride_iterator.h:30:21: warning: 'iterator<std::random_access_iterator_tag, art::ArtField>' is deprecated [-Wdeprecated-declarations]
       typename std::iterator<std::random_access_iterator_tag, T>::difference_type;
                     ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_iterator_base_types.h:127:12: note: 'iterator<std::random_access_iterator_tag, art::ArtField>' has been explicitly marked deprecated here
     struct _GLIBCXX17_DEPRECATED iterator
            ^
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/x86_64-linux-gnu/c++/13/bits/c++config.h:121:34: note: expanded from macro '_GLIBCXX17_DEPRECATED'
# define _GLIBCXX17_DEPRECATED [[__deprecated__]]
                                  ^
8 warnings generated.
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 "INSTALL=install --strip-program=true" --file=debian/libart.mk returned exit code 2
make[1]: *** [debian/rules:70: debian/out/libart.so] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:85: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202405/

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large from AWS, using sbuild and a
reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.


More information about the Android-tools-devel mailing list