[Android-tools-devel] Bug#1012890: android-platform-frameworks-base: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:07:29 BST 2022


Package: src:android-platform-frameworks-base
Version: 1:10.0.0+r36-5
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm release]

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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/android-platform-frameworks-base_10.0.0+r36-5_unstable_gcc12.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=user42
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SCHROOT_ALIAS_NAME=unstable
SCHROOT_CHROOT_NAME=sid-amd64-sbuild
SCHROOT_COMMAND=env
SCHROOT_GID=1001
SCHROOT_GROUP=user42
SCHROOT_SESSION_ID=sid-amd64-sbuild-9386af08-84ee-41b4-b860-e54818f000cf
SCHROOT_UID=1001
SCHROOT_USER=user42
SHELL=/bin/sh
USER=user42

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage --sanitize-env -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package android-platform-frameworks-base
dpkg-buildpackage: info: source version 1:10.0.0+r36-5
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Roger Shimizu <rosh at debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --with bash-completion
   dh_clean
 debian/rules binary
dh binary --with bash-completion
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_build-arch
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_build --buildsystem=makefile -- -f debian/libandroidfw.mk
	make -j8 -f debian/libandroidfw.mk
make[2]: Entering directory '/<<PKGBUILDDIR>>'
mkdir --parents debian/out
clang++ libs/androidfw/ApkAssets.cpp libs/androidfw/Asset.cpp libs/androidfw/AssetDir.cpp libs/androidfw/AssetManager.cpp libs/androidfw/AssetManager2.cpp libs/androidfw/AttributeResolution.cpp libs/androidfw/ChunkIterator.cpp libs/androidfw/ConfigDescription.cpp libs/androidfw/Idmap.cpp libs/androidfw/LoadedArsc.cpp libs/androidfw/Locale.cpp libs/androidfw/LocaleData.cpp libs/androidfw/misc.cpp libs/androidfw/ObbFile.cpp libs/androidfw/PosixUtils.cpp libs/androidfw/ResourceTypes.cpp libs/androidfw/ResourceUtils.cpp libs/androidfw/StreamingZipInflater.cpp libs/androidfw/TypeWrappers.cpp libs/androidfw/Util.cpp libs/androidfw/ZipFileRO.cpp libs/androidfw/ZipUtils.cpp -o debian/out/libandroidfw.so.0 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -DSTATIC_ANDROIDFW_FOR_TOOLS -std=gnu++17 -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -fno-strict-aliasing -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith -no-canonical-prefixes -DNDEBUG -UDEBUG -fno-exceptions -Wno-multichar -O2 -fno-strict-aliasing -Ilibs/androidfw/include -I/usr/include/android  -Wl,-z,relro -fPIC -shared -Wl,-soname,libandroidfw.so.0 -Wl,-rpath=/usr/lib/x86_64-linux-gnu/android -lz -L/usr/lib/x86_64-linux-gnu/android -lziparchive -lutils -llog -lbase
libs/androidfw/AssetManager2.cpp:1380:30: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'const int' [-Wsign-compare]
        for (size_t e = 0; e < type->entry_count; e++) {
                           ~ ^ ~~~~~~~~~~~~~~~~~
libs/androidfw/AssetManager2.cpp:1489:21: warning: comparison of integers of different signs: 'int' and 'std::array::size_type' (aka 'unsigned long') [-Wsign-compare]
  for (int p = 0; p < packages_.size(); p++) {
                  ~ ^ ~~~~~~~~~~~~~~~~
libs/androidfw/AssetManager2.cpp:1495:23: warning: comparison of integers of different signs: 'int' and 'std::array::size_type' (aka 'unsigned long') [-Wsign-compare]
    for (int t = 0; t < package->types.size(); t++) {
                    ~ ^ ~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
libs/androidfw/ResourceTypes.cpp:7411:13: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
            || value.dataType <= Res_value::TYPE_LAST_INT) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libs/androidfw/ResourceTypes.cpp:7406:13: warning: overlapping comparisons always evaluate to true [-Wtautological-overlap-compare]
            || value.dataType <= Res_value::TYPE_LAST_COLOR_INT) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
libs/androidfw/Util.cpp:72:50: error: no template named 'function' in namespace 'std'
    const StringPiece& str, char sep, const std::function<char(char)>& f) {
                                            ~~~~~^
1 error generated.
make[2]: *** [debian/libandroidfw.mk:39: build] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 -f debian/libandroidfw.mk returned exit code 2
make[1]: *** [debian/rules:29: debian/out/libandroidfw.so] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:35: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Android-tools-devel mailing list