[Android-tools-devel] Bug#880244: android-platform-build: FTBFS: Vector.h:251:64: error: no matching function for call to 'android::Vector<TYPE>::operator=(const android::VectorImpl&) const'

Lucas Nussbaum lucas at debian.org
Mon Oct 30 19:20:02 UTC 2017


Source: android-platform-build
Version: 1:7.0.0+r33-1
Severity: serious
Tags: buster sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20171030 qa-ftbfs
Justification: FTBFS on amd64

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=/<<BUILDDIR>>/android-platform-build-7.0.0+r33=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DNDEBUG -I/usr/include/android -Wl,-z,relro -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:0,
>                  from tools/zipalign/ZipAlign.cpp:20:
> /usr/include/android/utils/Vector.h: In member function 'const android::Vector<T>& android::Vector<TYPE>::operator=(const android::Vector<TYPE>&) const':
> /usr/include/android/utils/Vector.h:251:64: error: no matching function for call to 'android::Vector<TYPE>::operator=(const android::VectorImpl&) const'
>      VectorImpl::operator = (static_cast<const VectorImpl&>(rhs));
>                                                                 ^
> In file included from /usr/include/android/utils/Vector.h:26:0,
>                  from tools/zipalign/ZipFile.h:24,
>                  from tools/zipalign/ZipAlign.cpp:20:
> /usr/include/android/utils/VectorImpl.h:56:29: note: candidate: android::VectorImpl& android::VectorImpl::operator=(const android::VectorImpl&) <near match>
>              VectorImpl&     operator = (const VectorImpl& rhs);
>                              ^~~~~~~~
> /usr/include/android/utils/VectorImpl.h:56:29: note:   passing 'const android::Vector<TYPE>*' as 'this' argument discards qualifiers
> In file included from tools/zipalign/ZipFile.h:24:0,
>                  from tools/zipalign/ZipFile.cpp:26:
> /usr/include/android/utils/Vector.h: In member function 'const android::Vector<T>& android::Vector<TYPE>::operator=(const android::Vector<TYPE>&) const':
> /usr/include/android/utils/Vector.h:251:64: error: no matching function for call to 'android::Vector<TYPE>::operator=(const android::VectorImpl&) const'
>      VectorImpl::operator = (static_cast<const VectorImpl&>(rhs));
>                                                                 ^
> In file included from /usr/include/android/utils/Vector.h:26:0,
>                  from tools/zipalign/ZipFile.h:24,
>                  from tools/zipalign/ZipFile.cpp:26:
> /usr/include/android/utils/VectorImpl.h:56:29: note: candidate: android::VectorImpl& android::VectorImpl::operator=(const android::VectorImpl&) <near match>
>              VectorImpl&     operator = (const VectorImpl& rhs);
>                              ^~~~~~~~
> /usr/include/android/utils/VectorImpl.h:56:29: note:   passing 'const android::Vector<TYPE>*' as 'this' argument discards qualifiers
> debian/zipalign.mk:10: recipe for target 'build' failed
> make[2]: *** [build] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2017/10/30/android-platform-build_7.0.0+r33-1_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