[Android-tools-devel] Bug#975747: android-platform-build: FTBFS: ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::RemoteMaps::GetMapsFile[abi:cxx11]() const'
Lucas Nussbaum
lucas at debian.org
Wed Nov 25 19:57:47 GMT 2020
Source: android-platform-build
Version: 1:8.1.0+r23-5
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201125 ftbfs-bullseye
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> g++ tools/zipalign/ZipAlign.cpp tools/zipalign/ZipEntry.cpp tools/zipalign/ZipFile.cpp -o zipalign -g -O2 -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -I/usr/include/android -Wl,-z,relro -Wl,-z,now -fPIC -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -lpthread -lzopfli -lz -L/usr/lib/x86_64-linux-gnu/android -lutils -llog -landroidfw
> In file included from tools/zipalign/ZipFile.h:24,
> from tools/zipalign/ZipAlign.cpp:20:
> /usr/include/android/utils/Vector.h:399:80: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 399 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_construct(void* storage, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:409:90: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 409 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:414:91: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 414 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_splat(void* dest, const void* item, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:419:98: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 419 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:424:99: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 424 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const {
> | ^~~~~
> In file included from tools/zipalign/ZipFile.h:24,
> from tools/zipalign/ZipFile.cpp:26:
> /usr/include/android/utils/Vector.h:399:80: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 399 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_construct(void* storage, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:409:90: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 409 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:414:91: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 414 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_splat(void* dest, const void* item, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:419:98: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 419 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const {
> | ^~~~~
> /usr/include/android/utils/Vector.h:424:99: warning: ‘cfi’ attribute directive ignored [-Wattributes]
> 424 | UTILS_VECTOR_NO_CFI void Vector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const {
> | ^~~~~
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::RemoteMaps::GetMapsFile[abi:cxx11]() const'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Elf::SetCachingEnabled(bool)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Unwinder::SetDexFiles(unwindstack::DexFiles*, unwindstack::ArchEnum)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::DexFiles::DexFiles(std::shared_ptr<unwindstack::Memory>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Regs::RemoteGet(int)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::MemoryOfflineBuffer::Reset(unsigned char const*, unsigned long, unsigned long)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `vtable for unwindstack::Maps'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::MemoryOfflineBuffer::MemoryOfflineBuffer(unsigned char const*, unsigned long, unsigned long)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Memory::CreateProcessMemory(int)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Regs::CurrentArch()'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `OpenArchive(char const*, void**)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `StartIteration(void*, void**, ZipString const*, ZipString const*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `CloseArchive(void*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `ExtractEntryToFile(void*, ZipEntry*, int)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Elf::GetRelPc(unsigned long, unwindstack::MapInfo const*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `GetFileDescriptor(void*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Maps::Find(unsigned long)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `vtable for unwindstack::RemoteMaps'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Elf::GetFunctionName(unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned long*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::MapInfo::GetElf(std::shared_ptr<unwindstack::Memory> const&, unwindstack::ArchEnum)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::JitDebug::JitDebug(std::shared_ptr<unwindstack::Memory>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `ExtractToMemory(void*, ZipEntry*, unsigned char*, unsigned int)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `typeinfo for unwindstack::RemoteMaps'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::MemoryRemote::Read(unsigned long, void*, unsigned long)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `android::base::LogMessage::LogMessage(char const*, unsigned int, android::base::LogId, android::base::LogSeverity, int)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Regs::CreateFromLocal()'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Unwinder::SetJitDebug(unwindstack::JitDebug*, unwindstack::ArchEnum)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Maps::Add(unsigned long, unsigned long, unsigned long, unsigned long, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Regs::CreateFromUcontext(unwindstack::ArchEnum, void*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `vtable for unwindstack::MemoryRemote'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libandroidfw.so: undefined reference to `FindEntry(void*, ZipString const&, ZipEntry*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::MapInfo::GetLoadBias(std::shared_ptr<unwindstack::Memory> const&)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `AsmGetRegs'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Maps::Parse()'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::Unwinder::Unwind(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*)'
> /usr/bin/ld: /usr/lib/x86_64-linux-gnu/android/libbacktrace.so.0: undefined reference to `unwindstack::MapInfo::~MapInfo()'
> collect2: error: ld returned 1 exit status
The full build log is available from:
http://qa-logs.debian.net/2020/11/25/android-platform-build_8.1.0+r23-5_unstable.log
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!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Android-tools-devel
mailing list