[Android-tools-devel] Bug#853310: android-platform-build: ftbfs with GCC-7

Matthias Klose doko at debian.org
Tue Jan 31 09:29:38 UTC 2017


Package: src:android-platform-build
Version: 1:7.0.0+r1-2
Severity: normal
Tags: sid buster
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-7

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-7/g++-7, but succeeds to build with gcc-6/g++-6. The
severity of this report may be raised before the buster release.
There is no need to fix this issue in time for the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc7-20170126/android-platform-build_7.0.0+r1-2_unstable_gcc7.log
The last lines of the build log are at the end of this report.

To build with GCC 7, either set CC=gcc-7 CXX=g++-7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-7/porting_to.html

[...]
dpkg-source: info: building android-platform-build using existing ./android-platform-build_7.0.0+r1.orig.tar.xz
dpkg-source: info: building android-platform-build in android-platform-build_7.0.0+r1-2.debian.tar.xz
dpkg-source: info: building android-platform-build in android-platform-build_7.0.0+r1-2.dsc
 debian/rules build
dh build --with javahelper
   dh_testdir
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   jh_linkjars
   debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/<<BUILDDIR>>/android-platform-build-7.0.0+r1'
make -f debian/zipalign.mk
make[2]: Entering directory '/<<BUILDDIR>>/android-platform-build-7.0.0+r1'
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+r1=. -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
make[2]: Leaving directory '/<<BUILDDIR>>/android-platform-build-7.0.0+r1'
debian/rules:20: recipe for target 'zipalign' failed
make[1]: *** [zipalign] Error 2
make[1]: Leaving directory '/<<BUILDDIR>>/android-platform-build-7.0.0+r1'
debian/rules:32: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2



More information about the Android-tools-devel mailing list